diff options
Diffstat (limited to 'src/documentwidget.h')
-rw-r--r-- | src/documentwidget.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/documentwidget.h b/src/documentwidget.h index cc6e344..abdd570 100644 --- a/src/documentwidget.h +++ b/src/documentwidget.h @@ -20,7 +20,7 @@ #ifndef KBIBTEXDOCUMENTWIDGET_H #define KBIBTEXDOCUMENTWIDGET_H -#include <qtabwidget.h> +#include <ntqtabwidget.h> #include <kdirwatch.h> @@ -28,11 +28,11 @@ #include <file.h> #include <settings.h> -class QIODevice; -class QProgressDialog; -class QListViewItem; -class QWidget; -class QSplitter; +class TQIODevice; +class TQProgressDialog; +class TQListViewItem; +class TQWidget; +class TQSplitter; class KPopupMenu; class KActionMenu; @@ -49,20 +49,20 @@ namespace KBibTeX class SideBar; class WebQuery; - class DocumentWidget : public QTabWidget + class DocumentWidget : public TQTabWidget { Q_OBJECT public: - DocumentWidget( bool isReadOnly, QWidget *parent = 0, const char *name = 0 ); + DocumentWidget( bool isReadOnly, TQWidget *parent = 0, const char *name = 0 ); ~DocumentWidget(); - bool open( const QString &fileName, bool mergeOnly = FALSE ); - bool open( QIODevice *iodevice, bool mergeOnly = FALSE, const QString &label = QString::null, BibTeX::FileImporter *importer = NULL ); - bool save( const QString &fileName, QStringList *errorLog = NULL ); - bool save( QIODevice *iodevice, BibTeX::File::FileFormat format = BibTeX::File::formatBibTeX, const QString &label = QString::null, QStringList *errorLog = NULL ); + bool open( const TQString &fileName, bool mergeOnly = FALSE ); + bool open( TQIODevice *iodevice, bool mergeOnly = FALSE, const TQString &label = TQString::null, BibTeX::FileImporter *importer = NULL ); + bool save( const TQString &fileName, TQStringList *errorLog = NULL ); + bool save( TQIODevice *iodevice, BibTeX::File::FileFormat format = BibTeX::File::formatBibTeX, const TQString &label = TQString::null, TQStringList *errorLog = NULL ); - bool newElement( const QString& elementType ); - void searchWebsites( const QString& searchURL, bool includeAuthor ); + bool newElement( const TQString& elementType ); + void searchWebsites( const TQString& searchURL, bool includeAuthor ); void updateViews(); void showStatistics(); @@ -113,23 +113,23 @@ namespace KBibTeX KLineEdit *m_lineEditNewKeyword; bool m_isReadOnly; - QSplitter *m_horSplitter; - QSplitter *m_vertSplitter; - QWidget *m_container; + TQSplitter *m_horSplitter; + TQSplitter *m_vertSplitter; + TQWidget *m_container; SearchBar *m_searchBar; DocumentListView *m_listViewElements; KTextEdit * m_preview; DocumentSourceView *m_sourceView; SideBar* m_sideBar; BibTeX::File *m_bibtexfile; - QString m_filename; - QProgressDialog *m_progressDialog; + TQString m_filename; + TQProgressDialog *m_progressDialog; int m_newElementCounter; EditMode m_editMode; KActionMenu *m_viewDocumentActionMenu; KActionMenu *m_assignKeywordsActionMenu; - QStringList m_viewDocumentActionMenuURLs; - QMap<int, QString> m_assignKeywordsActionMenuURLs; + TQStringList m_viewDocumentActionMenuURLs; + TQMap<int, TQString> m_assignKeywordsActionMenuURLs; KActionMenu *m_searchWebsitesActionMenu; KAction *m_actionEditCut; KAction *m_actionEditCopy; @@ -143,26 +143,26 @@ namespace KBibTeX void setupGUI(); - void startProgress( const QString &label, QObject *progressFrom ); - void endProgress( QObject *progressFrom ); + void startProgress( const TQString &label, TQObject *progressFrom ); + void endProgress( TQObject *progressFrom ); - void searchWebsites( BibTeX::Element *element, const QString& searchURL, bool includeAuthor ); + void searchWebsites( BibTeX::Element *element, const TQString& searchURL, bool includeAuthor ); bool editElementDialog( BibTeX::Element *element ); void updateFromGUI(); - QString nextNewEntry(); + TQString nextNewEntry(); KURL::List getEntryURLs( BibTeX::Entry *entry ); - BibTeX::FileImporter *fileImporterFactory( const QString &fileName ); + BibTeX::FileImporter *fileImporterFactory( const TQString &fileName ); private slots: void slotShowProgress( int current, int total ); void slotSelectionChanged(); - void slotPreviewElement( QListViewItem * item = NULL ); - void slotTabChanged( QWidget *tab ); + void slotPreviewElement( TQListViewItem * item = NULL ); + void slotTabChanged( TQWidget *tab ); void slotModified(); - void slotFileGotDirty( const QString& path ); + void slotFileGotDirty( const TQString& path ); void slotRefreshDirtyFile(); void slotViewDocument( int id ); void slotAssignKeywords( int id ); |