summaryrefslogtreecommitdiffstats
path: root/src/entrywidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entrywidget.h')
-rw-r--r--src/entrywidget.h78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/entrywidget.h b/src/entrywidget.h
index 10dfd13..3d9ad2f 100644
--- a/src/entrywidget.h
+++ b/src/entrywidget.h
@@ -20,10 +20,10 @@
#ifndef KBIBTEXENTRYWIDGET_H
#define KBIBTEXENTRYWIDGET_H
-#include <qwidget.h>
-#include <qdialog.h>
-#include <qvaluelist.h>
-#include <qmap.h>
+#include <ntqwidget.h>
+#include <ntqdialog.h>
+#include <ntqvaluelist.h>
+#include <ntqmap.h>
#include <kdialogbase.h>
@@ -31,13 +31,13 @@
#include <entrywidgetsource.h>
#include <webquery.h>
-class QComboBox;
-class QLineEdit;
-class QCheckBox;
-class QTabWidget;
-class QString;
-class QTimer;
-class QListView;
+class TQComboBox;
+class TQLineEdit;
+class TQCheckBox;
+class TQTabWidget;
+class TQString;
+class TQTimer;
+class TQListView;
class KConfig;
@@ -46,7 +46,7 @@ namespace KBibTeX
class EntryWidgetTab;
class WebQueryArXiv;
- class EntryWidget : public QWidget
+ class EntryWidget : public TQWidget
{
Q_OBJECT
@@ -55,11 +55,11 @@ namespace KBibTeX
public:
~EntryWidget();
- static QDialog::DialogCode execute( BibTeX::Entry *entry, BibTeX::File *bibtexfile, bool isReadOnly, bool isNew, QWidget *parent = 0, const char *name = 0 );
+ static TQDialog::DialogCode execute( BibTeX::Entry *entry, BibTeX::File *bibtexfile, bool isReadOnly, bool isNew, TQWidget *parent = 0, const char *name = 0 );
protected:
- EntryWidget( BibTeX::File *bibtexfile, bool isReadOnly, bool isNew, QDialog *parent, const char *name = 0 );
- void showEvent( QShowEvent * );
+ EntryWidget( BibTeX::File *bibtexfile, bool isReadOnly, bool isNew, TQDialog *parent, const char *name = 0 );
+ void showEvent( TQShowEvent * );
bool queryClose();
private slots:
@@ -70,8 +70,8 @@ namespace KBibTeX
void slotEnableAllFields();
void slotForceDefaultIdSuggestion();
void slotEntryTypeChanged();
- void slotCurrentPageChanged( QWidget* newPage );
- void warningsExecute( QListViewItem* item );
+ void slotCurrentPageChanged( TQWidget* newPage );
+ void warningsExecute( TQListViewItem* item );
void updateWarnings();
void insertIdSuggestion( int id );
void updateIdSuggestionsMenu();
@@ -83,34 +83,34 @@ namespace KBibTeX
void updateTabs( BibTeX::Entry::EntryType entryType, bool enableAll, bool isReadOnly );
private:
- EntryWidget( BibTeX::Entry *entry, BibTeX::File *bibtexfile, bool isReadOnly, bool isNew, QDialog *parent, const char *name = 0 );
+ EntryWidget( BibTeX::Entry *entry, BibTeX::File *bibtexfile, bool isReadOnly, bool isNew, TQDialog *parent, const char *name = 0 );
BibTeX::Entry *m_originalEntry;
BibTeX::File *m_bibtexfile;
bool m_isReadOnly;
bool m_isNew;
bool m_defaultIdSuggestionAvailable;
- QComboBox *m_comboBoxEntryType;
- QLineEdit *m_lineEditID;
- QPushButton *m_pushButtonForceDefaultIdSuggestion;
- QPushButton *m_pushButtonIdSuggestions;
- QPopupMenu *m_menuIdSuggestions;
- QMap<int, QString> m_idToSuggestion;
- QCheckBox *m_checkBoxEnableAll;
- QPushButton *m_pushButtonRefetch;
- QListView *m_listViewWarnings;
- QTabWidget *m_tabWidget;
+ TQComboBox *m_comboBoxEntryType;
+ TQLineEdit *m_lineEditID;
+ TQPushButton *m_pushButtonForceDefaultIdSuggestion;
+ TQPushButton *m_pushButtonIdSuggestions;
+ TQPopupMenu *m_menuIdSuggestions;
+ TQMap<int, TQString> m_idToSuggestion;
+ TQCheckBox *m_checkBoxEnableAll;
+ TQPushButton *m_pushButtonRefetch;
+ TQListView *m_listViewWarnings;
+ TQTabWidget *m_tabWidget;
KBibTeX::EntryWidgetSource *m_sourcePage;
- QValueList<KBibTeX::EntryWidgetTab*> m_internalEntryWidgets;
- QWidget *m_lastPage;
- QTimer *m_updateWarningsTimer;
- QDialog *m_dlgParent;
+ TQValueList<KBibTeX::EntryWidgetTab*> m_internalEntryWidgets;
+ TQWidget *m_lastPage;
+ TQTimer *m_updateWarningsTimer;
+ TQDialog *m_dlgParent;
WebQueryArXiv *m_wqa;
- QString m_oldId;
+ TQString m_oldId;
- void setupGUI( QWidget *parent, bool showWarnings = TRUE );
+ void setupGUI( TQWidget *parent, bool showWarnings = TRUE );
void addTabWidgets();
- void addTabWidget( EntryWidgetTab *widget, const QString& title );
+ void addTabWidget( EntryWidgetTab *widget, const TQString& title );
void setupEntryTypes();
void updateGUI();
void internalApply( BibTeX::Entry *entry );
@@ -123,7 +123,7 @@ namespace KBibTeX
{
Q_OBJECT
public:
- EntryWidgetDialog( QWidget *parent = 0, const char *name = 0, bool modal = true, const QString &caption = QString::null, int buttonMask = Ok | Apply | Cancel ) : KDialogBase( parent, name, modal, caption, buttonMask ) {/* nothing */};
+ EntryWidgetDialog( TQWidget *parent = 0, const char *name = 0, bool modal = true, const TQString &caption = TQString::null, int buttonMask = Ok | Apply | Cancel ) : KDialogBase( parent, name, modal, caption, buttonMask ) {/* nothing */};
~EntryWidgetDialog() {/* nothing */};
void setMainWidget( EntryWidget *widget )
{
@@ -132,7 +132,7 @@ namespace KBibTeX
};
protected:
- void closeEvent( QCloseEvent * e )
+ void closeEvent( TQCloseEvent * e )
{
if ( m_widget->queryClose() ) e->accept();
else e->ignore();
@@ -141,12 +141,12 @@ namespace KBibTeX
protected slots:
void slotCancel()
{
- if ( m_widget->queryClose() ) QDialog::done( Cancel );
+ if ( m_widget->queryClose() ) TQDialog::done( Cancel );
}
void slotClose()
{
- if ( m_widget->queryClose() ) QDialog::done( Cancel );
+ if ( m_widget->queryClose() ) TQDialog::done( Cancel );
}
private: