diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/general/EditViewBase.h | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/general/EditViewBase.h')
-rw-r--r-- | src/gui/general/EditViewBase.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/gui/general/EditViewBase.h b/src/gui/general/EditViewBase.h index 03784cb..f263795 100644 --- a/src/gui/general/EditViewBase.h +++ b/src/gui/general/EditViewBase.h @@ -28,17 +28,17 @@ #include <set> #include <string> #include <kdockwidget.h> -#include <qstring.h> +#include <tqstring.h> #include <vector> #include "base/Event.h" -class QWidget; -class QPaintEvent; -class QGridLayout; -class QFrame; -class QCloseEvent; -class QAccel; +class TQWidget; +class TQPaintEvent; +class TQGridLayout; +class TQFrame; +class TQCloseEvent; +class TQAccel; class KToggleAction; class KConfig; class KCommand; @@ -72,7 +72,7 @@ public: EditViewBase(RosegardenGUIDoc *doc, std::vector<Segment *> segments, unsigned int cols, - QWidget *parent, + TQWidget *parent, const char *name = 0); virtual ~EditViewBase(); @@ -114,7 +114,7 @@ public: /** * Return our local accelerator object */ - QAccel* getAccelerators() { return m_accelerators; } + TQAccel* getAccelerators() { return m_accelerators; } /** * Return a string unique to this view (amongst views currently @@ -208,7 +208,7 @@ public slots: * * @param text the text that is displayed in the statusbar */ - virtual void slotStatusMsg(const QString &text); + virtual void slotStatusMsg(const TQString &text); /** * Changes the status message of the whole statusbar for two @@ -218,7 +218,7 @@ public slots: * * @param text the text that is displayed in the statusbar */ - virtual void slotStatusHelpMsg(const QString &text); + virtual void slotStatusHelpMsg(const TQString &text); /** * A command has happened; check the clipboard in case we @@ -231,7 +231,7 @@ public slots: */ virtual void slotToggleSolo(); - void slotStateChanged(const QString&, bool noReverse); + void slotStateChanged(const TQString&, bool noReverse); virtual void slotOpenInMatrix(); virtual void slotOpenInPercussionMatrix(); @@ -257,12 +257,12 @@ protected: virtual void windowActivationChange(bool); - virtual void paintEvent(QPaintEvent* e); + virtual void paintEvent(TQPaintEvent* e); /** * @see #setInCtor */ - virtual void closeEvent(QCloseEvent* e); + virtual void closeEvent(TQCloseEvent* e); /** * ignore close events while we're in ctor @@ -290,7 +290,7 @@ protected: /** * create menus and toolbars */ - virtual void setupActions(QString rcFileName, bool haveClipboard = true); + virtual void setupActions(TQString rcFileName, bool haveClipboard = true); /** * setup status bar @@ -320,7 +320,7 @@ protected slots: virtual void slotUpdateToolbars(); protected: - QWidget* getCentralWidget() { return m_centralFrame; } + TQWidget* getCentralWidget() { return m_centralFrame; } void initSegmentRefreshStatusIds(); @@ -334,16 +334,16 @@ protected: bool getSegmentsOnlyRestsAndClefs(); /// Convenience function around actionCollection()->action() - KToggleAction* getToggleAction(const QString& actionName); + KToggleAction* getToggleAction(const TQString& actionName); /** * Make a widget visible depending on the state of a * KToggleAction */ - virtual void toggleWidget(QWidget* widget, const QString& toggleActionName); + virtual void toggleWidget(TQWidget* widget, const TQString& toggleActionName); - void setRCFileName(QString s) { m_rcFileName = s; } - QString getRCFileName() { return m_rcFileName; } + void setRCFileName(TQString s) { m_rcFileName = s; } + TQString getRCFileName() { return m_rcFileName; } /** * Set the page index of the config dialog which corresponds to @@ -353,7 +353,7 @@ protected: int getConfigDialogPageIndex() { return m_configDialogPageIndex; } //--------------- Data members --------------------------------- - QString m_rcFileName; + TQString m_rcFileName; static std::set<int> m_viewNumberPool; std::string makeViewLocalPropertyPrefix(); @@ -370,18 +370,18 @@ protected: EditToolBox* m_toolBox; KDockWidget *m_mainDockWidget; - QFrame *m_centralFrame; - QGridLayout *m_grid; + TQFrame *m_centralFrame; + TQGridLayout *m_grid; unsigned int m_mainCol; unsigned int m_compositionRefreshStatusId; bool m_needUpdate; - QPaintEvent *m_pendingPaintEvent; + TQPaintEvent *m_pendingPaintEvent; bool m_havePendingPaintEvent; static bool m_inPaintEvent; // true if _any_ edit view is in a paint event - QAccel *m_accelerators; + TQAccel *m_accelerators; int m_configDialogPageIndex; |