From 5f5e7c5455d52826b0bd50f64fcffb7695ce970d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 29 Jun 2013 12:56:53 +0200 Subject: Initial TQt conversion --- src/entrywidget.h | 78 +++++++++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 39 deletions(-) (limited to 'src/entrywidget.h') 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 -#include -#include -#include +#include +#include +#include +#include #include @@ -31,13 +31,13 @@ #include #include -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 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 m_idToSuggestion; + TQCheckBox *m_checkBoxEnableAll; + TQPushButton *m_pushButtonRefetch; + TQListView *m_listViewWarnings; + TQTabWidget *m_tabWidget; KBibTeX::EntryWidgetSource *m_sourcePage; - QValueList m_internalEntryWidgets; - QWidget *m_lastPage; - QTimer *m_updateWarningsTimer; - QDialog *m_dlgParent; + TQValueList 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: -- cgit v1.2.3