diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kommander/editor/mainwindow.h | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/editor/mainwindow.h')
-rw-r--r-- | kommander/editor/mainwindow.h | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/kommander/editor/mainwindow.h b/kommander/editor/mainwindow.h index 7a18438f..db685e55 100644 --- a/kommander/editor/mainwindow.h +++ b/kommander/editor/mainwindow.h @@ -25,9 +25,9 @@ #include <kparts/dockmainwindow.h> #include <kdockwidget.h> -#include <qmap.h> -#include <qguardedptr.h> -#include <qobjectlist.h> +#include <tqmap.h> +#include <tqguardedptr.h> +#include <tqobjectlist.h> class ActionEditor; class AssistProc; @@ -54,7 +54,7 @@ class ReplaceDialog; class Workspace; #if defined(Q_FULL_TEMPLATE_INSTANTIATION) -#include <qtoolbar.h> +#include <tqtoolbar.h> #else class QToolBar; #endif @@ -84,39 +84,39 @@ public: FormWindow *formWindow(); bool unregisterClient( FormWindow *w ); - QWidget *isAFormWindowChild( QObject *o ) const; - QWidget *isAToolBarChild( QObject *o ) const; + TQWidget *isAFormWindowChild( TQObject *o ) const; + TQWidget *isAToolBarChild( TQObject *o ) const; void insertFormWindow( FormWindow *fw ); - QWorkspace *qWorkspace() const; + TQWorkspace *qWorkspace() const; - void popupFormWindowMenu( const QPoint &gp, FormWindow *fw ); - void popupWidgetMenu( const QPoint &gp, FormWindow *fw, QWidget *w ); + void popupFormWindowMenu( const TQPoint &gp, FormWindow *fw ); + void popupWidgetMenu( const TQPoint &gp, FormWindow *fw, TQWidget *w ); - QPopupMenu *setupNormalHierarchyMenu( QWidget *parent ); - QPopupMenu *setupTabWidgetHierarchyMenu( QWidget *parent, const char *addSlot, const char *removeSlot ); + TQPopupMenu *setupNormalHierarchyMenu( TQWidget *parent ); + TQPopupMenu *setupTabWidgetHierarchyMenu( TQWidget *parent, const char *addSlot, const char *removeSlot ); - FormWindow *openFormWindow( const QString &fn, bool validFileName = TRUE, FormFile *ff = 0 ); + FormWindow *openFormWindow( const TQString &fn, bool validFileName = TRUE, FormFile *ff = 0 ); - void setGrid( const QPoint &p ); + void setGrid( const TQPoint &p ); void setShowGrid( bool b ); void setSnapGrid( bool b ); - QPoint grid() const { return grd; } + TQPoint grid() const { return grd; } bool showGrid() const { return sGrid; } bool snapGrid() const { return snGrid && sGrid; } - QString documentationPath() const; + TQString documentationPath() const; static MainWindow *self; void saveAllTemp(); - QString templatePath() const { return templPath; } + TQString templatePath() const { return templPath; } bool isPreviewing() const { return previewing; } FormWindow *activeForm() const { return lastActiveFormWindow; } - void setModified( bool b, QWidget *window ); + void setModified( bool b, TQWidget *window ); void updateWorkspace(); void formNameChanged( FormWindow *fw ); @@ -126,8 +126,8 @@ public: public slots: - void showProperties( QObject *w ); - void updateProperties( QObject *w ); + void showProperties( TQObject *w ); + void updateProperties( TQObject *w ); void showDialogHelp(); void slotActivePartChanged(KParts::Part * ); @@ -143,14 +143,14 @@ signals: void formWindowChanged(); protected: - bool eventFilter( QObject *o, QEvent *e ); - void closeEvent( QCloseEvent *e ); + bool eventFilter( TQObject *o, TQEvent *e ); + void closeEvent( TQCloseEvent *e ); public slots: void fileNew(); void fileClose(); void fileOpen(); - void fileOpen(const QString &filename); + void fileOpen(const TQString &filename); void fileOpenRecent(const KURL& name); bool fileSave(); bool fileSaveForm(); // not visible in menu, called from fileSave @@ -194,8 +194,8 @@ public slots: void runForm4(); private slots: - void activeWindowChanged( QWidget *w ); - void updateUndoRedo( bool, bool, const QString &, const QString & ); + void activeWindowChanged( TQWidget *w ); + void updateUndoRedo( bool, bool, const TQString &, const TQString & ); void toolSelected(); @@ -228,40 +228,40 @@ private: void setupMessageLog(); void setupPlugins(); - QWidget* previewFormInternal( QStyle* style = 0, QPalette* pal = 0 ); + TQWidget* previewFormInternal( TQStyle* style = 0, TQPalette* pal = 0 ); void writeConfig(); void readConfig(); - void setupRMBProperties( QValueList<int> &ids, QMap<QString, int> &props, QWidget *w ); - void handleRMBProperties( int id, QMap<QString, int> &props, QWidget *w ); - void setupRMBSpecialCommands( QValueList<int> &ids, QMap<QString, int> &commands, QWidget *w ); - void handleRMBSpecialCommands( int id, QMap<QString, int> &commands, QWidget *w ); - void setupRMBSpecialCommands( QValueList<int> &ids, QMap<QString, int> &commands, FormWindow *w ); - void handleRMBSpecialCommands( int id, QMap<QString, int> &commands, FormWindow *w ); - bool openEditor( QWidget *w, FormWindow *fw ); + void setupRMBProperties( TQValueList<int> &ids, TQMap<TQString, int> &props, TQWidget *w ); + void handleRMBProperties( int id, TQMap<TQString, int> &props, TQWidget *w ); + void setupRMBSpecialCommands( TQValueList<int> &ids, TQMap<TQString, int> &commands, TQWidget *w ); + void handleRMBSpecialCommands( int id, TQMap<TQString, int> &commands, TQWidget *w ); + void setupRMBSpecialCommands( TQValueList<int> &ids, TQMap<TQString, int> &commands, FormWindow *w ); + void handleRMBSpecialCommands( int id, TQMap<TQString, int> &commands, FormWindow *w ); + bool openEditor( TQWidget *w, FormWindow *fw ); void checkTempFiles(); - void addRecentlyOpened(const QString &fn); - QWidget *findRealForm( QWidget *w ); + void addRecentlyOpened(const TQString &fn); + TQWidget *findRealForm( TQWidget *w ); - QString whatsThisFrom( const QString &key ); + TQString whatsThisFrom( const TQString &key ); private: PropertyEditor *propertyEditor; HierarchyView *hierarchyView; Workspace *wspace; - QWidget *lastPressWidget; - QWorkspace *qworkspace; + TQWidget *lastPressWidget; + TQWorkspace *qworkspace; KMenuBar *menubar; FormWindow *lastActiveFormWindow; bool breakLayout, layoutChilds, layoutSelected; - QPoint grd; + TQPoint grd; bool sGrid, snGrid; bool restoreConfig; bool backPix; bool splashScreen; - QString docPath; + TQString docPath; KAction *actionEditUndo, *actionEditRedo, *actionEditCut, *actionEditCopy, *actionEditPaste, *actionEditDelete, *actionEditAdjustSize, @@ -275,42 +275,42 @@ private: KAction *actionEditFormSettings, *actionEditAccels; KRecentFilesAction* actionRecent; - QPopupMenu *rmbWidgets; - QPopupMenu *rmbFormWindow; - QPopupMenu *windowMenu, *fileMenu; + TQPopupMenu *rmbWidgets; + TQPopupMenu *rmbFormWindow; + TQPopupMenu *windowMenu, *fileMenu; - QToolBar *layoutToolBar; + TQToolBar *layoutToolBar; KToolBar *fileTb; Preferences *prefDia; - QMap<QString,QString> propertyDocumentation; + TQMap<TQString,TQString> propertyDocumentation; bool client; - QString templPath; + TQString templPath; ActionEditor *actionEditor; bool databaseAutoEdit; - QTimer *updateSlotsTimer; - QTimer *backupTimer; + TQTimer *updateSlotsTimer; + TQTimer *backupTimer; bool inDebugMode; - QObjectList debuggingForms; - QString lastOpenFilter; - QString menuHelpFile; + TQObjectList debuggingForms; + TQString lastOpenFilter; + TQString menuHelpFile; AssistProc *assistant; bool previewing; MessageLog* messageLog; // Paths of external Kommander tools for Editor - QStringList m_editorTools; - QString m_toolOutput; + TQStringList m_editorTools; + TQString m_toolOutput; KParts::PartManager *m_partManager; - QString m_fileName; - QString m_backupName; + TQString m_fileName; + TQString m_backupName; bool m_modified; public: - QString lastSaveFilter; + TQString lastSaveFilter; }; |