summaryrefslogtreecommitdiffstats
path: root/src/gui/general/EditViewBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/general/EditViewBase.cpp')
-rw-r--r--src/gui/general/EditViewBase.cpp120
1 files changed, 60 insertions, 60 deletions
diff --git a/src/gui/general/EditViewBase.cpp b/src/gui/general/EditViewBase.cpp
index 0193beb..84bdef0 100644
--- a/src/gui/general/EditViewBase.cpp
+++ b/src/gui/general/EditViewBase.cpp
@@ -24,7 +24,7 @@
#include "EditViewBase.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <klocale.h>
@@ -56,15 +56,15 @@
#include <kstdaccel.h>
#include <kstdaction.h>
#include <kxmlguiclient.h>
-#include <qaccel.h>
-#include <qcanvas.h>
-#include <qdialog.h>
-#include <qframe.h>
-#include <qiconset.h>
-#include <qobject.h>
-#include <qpixmap.h>
-#include <qstring.h>
-#include <qwidget.h>
+#include <tqaccel.h>
+#include <tqcanvas.h>
+#include <tqdialog.h>
+#include <tqframe.h>
+#include <tqiconset.h>
+#include <tqobject.h>
+#include <tqpixmap.h>
+#include <tqstring.h>
+#include <tqwidget.h>
namespace Rosegarden
@@ -77,7 +77,7 @@ const unsigned int EditViewBase::NbLayoutRows = 6;
EditViewBase::EditViewBase(RosegardenGUIDoc *doc,
std::vector<Segment *> segments,
unsigned int cols,
- QWidget *parent, const char *name) :
+ TQWidget *parent, const char *name) :
KDockMainWindow(parent, name),
m_viewNumber( -1),
m_viewLocalPropertyPrefix(makeViewLocalPropertyPrefix()),
@@ -100,7 +100,7 @@ EditViewBase::EditViewBase(RosegardenGUIDoc *doc,
m_timeSigNotifier(new EditViewTimeSigNotifier(doc))
{
- QPixmap dummyPixmap; // any icon will do
+ TQPixmap dummyPixmap; // any icon will do
m_mainDockWidget = createDockWidget("Rosegarden EditView DockWidget", dummyPixmap,
0L, "editview_dock_widget");
// allow others to dock to the left and right sides only
@@ -110,8 +110,8 @@ EditViewBase::EditViewBase(RosegardenGUIDoc *doc,
setView(m_mainDockWidget); // central widget in a KDE mainwindow
setMainDockWidget(m_mainDockWidget); // master dockwidget
- m_centralFrame = new QFrame(m_mainDockWidget, "centralframe");
- m_grid = new QGridLayout(m_centralFrame, NbLayoutRows, cols);
+ m_centralFrame = new TQFrame(m_mainDockWidget, "centralframe");
+ m_grid = new TQGridLayout(m_centralFrame, NbLayoutRows, cols);
m_mainDockWidget->setWidget(m_centralFrame);
@@ -119,17 +119,17 @@ EditViewBase::EditViewBase(RosegardenGUIDoc *doc,
m_doc->attachEditView(this);
- QObject::connect
- (getCommandHistory(), SIGNAL(commandExecuted()),
- this, SLOT(update()));
+ TQObject::connect
+ (getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ this, TQT_SLOT(update()));
- QObject::connect
- (getCommandHistory(), SIGNAL(commandExecuted()),
- this, SLOT(slotTestClipboard()));
+ TQObject::connect
+ (getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ this, TQT_SLOT(slotTestClipboard()));
// create accelerators
//
- m_accelerators = new QAccel(this);
+ m_accelerators = new TQAccel(this);
}
EditViewBase::~EditViewBase()
@@ -152,39 +152,39 @@ void EditViewBase::readOptions()
getToggleAction("options_show_toolbar")->setChecked(!toolBar()->isHidden());
}
-void EditViewBase::setupActions(QString rcFileName, bool haveClipboard)
+void EditViewBase::setupActions(TQString rcFileName, bool haveClipboard)
{
setRCFileName(rcFileName);
// Actions all edit views will have
- KStdAction::showToolbar(this, SLOT(slotToggleToolBar()),
+ KStdAction::showToolbar(this, TQT_SLOT(slotToggleToolBar()),
actionCollection(), "options_show_toolbar");
- KStdAction::showStatusbar(this, SLOT(slotToggleStatusBar()),
+ KStdAction::showStatusbar(this, TQT_SLOT(slotToggleStatusBar()),
actionCollection(), "options_show_statusbar");
KStdAction::preferences(this,
- SLOT(slotConfigure()),
+ TQT_SLOT(slotConfigure()),
actionCollection());
KStdAction::keyBindings(this,
- SLOT(slotEditKeys()),
+ TQT_SLOT(slotEditKeys()),
actionCollection());
KStdAction::configureToolbars(this,
- SLOT(slotEditToolbars()),
+ TQT_SLOT(slotEditToolbars()),
actionCollection());
// File menu
- KStdAction::save (this, SIGNAL(saveFile()), actionCollection());
- KStdAction::close(this, SLOT(slotCloseWindow()), actionCollection());
+ KStdAction::save (this, TQT_SIGNAL(saveFile()), actionCollection());
+ KStdAction::close(this, TQT_SLOT(slotCloseWindow()), actionCollection());
if (haveClipboard) {
- KStdAction::cut (this, SLOT(slotEditCut()), actionCollection());
- KStdAction::copy (this, SLOT(slotEditCopy()), actionCollection());
- KStdAction::paste (this, SLOT(slotEditPaste()), actionCollection());
+ KStdAction::cut (this, TQT_SLOT(slotEditCut()), actionCollection());
+ KStdAction::copy (this, TQT_SLOT(slotEditCopy()), actionCollection());
+ KStdAction::paste (this, TQT_SLOT(slotEditPaste()), actionCollection());
}
new KToolBarPopupAction(i18n("Und&o"),
@@ -199,38 +199,38 @@ void EditViewBase::setupActions(QString rcFileName, bool haveClipboard)
actionCollection(),
KStdAction::stdName(KStdAction::Redo));
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- QCanvasPixmap pixmap(pixmapDir + "/toolbar/matrix.png");
- QIconSet icon = QIconSet(pixmap);
+ TQCanvasPixmap pixmap(pixmapDir + "/toolbar/matrix.png");
+ TQIconSet icon = TQIconSet(pixmap);
new KAction(i18n("Open in Matri&x Editor"), icon, 0, this,
- SLOT(slotOpenInMatrix()), actionCollection(),
+ TQT_SLOT(slotOpenInMatrix()), actionCollection(),
"open_in_matrix");
pixmap.load(pixmapDir + "/toolbar/matrix-percussion.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Open in &Percussion Matrix Editor"), icon, 0, this,
- SLOT(slotOpenInPercussionMatrix()), actionCollection(),
+ TQT_SLOT(slotOpenInPercussionMatrix()), actionCollection(),
"open_in_percussion_matrix");
pixmap.load(pixmapDir + "/toolbar/notation.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Open in &Notation Editor"), icon, 0, this,
- SLOT(slotOpenInNotation()), actionCollection(),
+ TQT_SLOT(slotOpenInNotation()), actionCollection(),
"open_in_notation");
pixmap.load(pixmapDir + "/toolbar/eventlist.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Open in &Event List Editor"), icon, 0, this,
- SLOT(slotOpenInEventList()), actionCollection(),
+ TQT_SLOT(slotOpenInEventList()), actionCollection(),
"open_in_event_list");
new KAction(i18n("Set Segment Start Time..."), 0, this,
- SLOT(slotSetSegmentStartTime()), actionCollection(),
+ TQT_SLOT(slotSetSegmentStartTime()), actionCollection(),
"set_segment_start");
new KAction(i18n("Set Segment Duration..."), 0, this,
- SLOT(slotSetSegmentDuration()), actionCollection(),
+ TQT_SLOT(slotSetSegmentDuration()), actionCollection(),
"set_segment_duration");
// add undo and redo to edit menu and toolbar
@@ -256,8 +256,8 @@ void EditViewBase::slotEditToolbars()
{
KEditToolbar dlg(actionCollection(), getRCFileName());
- connect(&dlg, SIGNAL(newToolbarConfig()),
- SLOT(slotUpdateToolbars()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()),
+ TQT_SLOT(slotUpdateToolbars()));
dlg.exec();
}
@@ -308,7 +308,7 @@ EditViewBase::makeViewLocalPropertyPrefix()
return buffer;
}
-void EditViewBase::paintEvent(QPaintEvent* e)
+void EditViewBase::paintEvent(TQPaintEvent* e)
{
// It is possible for this function to be called re-entrantly,
// because a re-layout procedure may deliberately ask the event
@@ -322,13 +322,13 @@ void EditViewBase::paintEvent(QPaintEvent* e)
if (e) {
if (m_havePendingPaintEvent) {
if (m_pendingPaintEvent) {
- QRect r = m_pendingPaintEvent->rect().unite(e->rect());
- *m_pendingPaintEvent = QPaintEvent(r);
+ TQRect r = m_pendingPaintEvent->rect().unite(e->rect());
+ *m_pendingPaintEvent = TQPaintEvent(r);
} else {
- m_pendingPaintEvent = new QPaintEvent(*e);
+ m_pendingPaintEvent = new TQPaintEvent(*e);
}
} else {
- m_pendingPaintEvent = new QPaintEvent(*e);
+ m_pendingPaintEvent = new TQPaintEvent(*e);
}
}
m_havePendingPaintEvent = true;
@@ -438,7 +438,7 @@ void EditViewBase::paintEvent(QPaintEvent* e)
*/
}
-void EditViewBase::closeEvent(QCloseEvent* e)
+void EditViewBase::closeEvent(TQCloseEvent* e)
{
RG_DEBUG << "EditViewBase::closeEvent()\n";
@@ -492,7 +492,7 @@ void EditViewBase::slotToggleStatusBar()
statusBar()->show();
}
-void EditViewBase::slotStatusMsg(const QString &text)
+void EditViewBase::slotStatusMsg(const TQString &text)
{
///////////////////////////////////////////////////////////////////
// change status message permanently
@@ -500,7 +500,7 @@ void EditViewBase::slotStatusMsg(const QString &text)
statusBar()->changeItem(text, ID_STATUS_MSG);
}
-void EditViewBase::slotStatusHelpMsg(const QString &text)
+void EditViewBase::slotStatusHelpMsg(const TQString &text)
{
///////////////////////////////////////////////////////////////////
// change status message of whole statusbar temporary (text, msec)
@@ -550,8 +550,8 @@ bool EditViewBase::getSegmentsOnlyRestsAndClefs()
}
-void EditViewBase::toggleWidget(QWidget* widget,
- const QString& toggleActionName)
+void EditViewBase::toggleWidget(TQWidget* widget,
+ const TQString& toggleActionName)
{
KToggleAction* toggleAction = getToggleAction(toggleActionName);
@@ -602,7 +602,7 @@ EditViewBase::slotToggleSolo()
}
void
-EditViewBase::slotStateChanged(const QString& s,
+EditViewBase::slotStateChanged(const TQString& s,
bool noReverse)
{
RG_DEBUG << "EditViewBase::slotStateChanged " << s << ", " << noReverse << endl;
@@ -620,7 +620,7 @@ EditViewBase::slotSetSegmentStartTime()
&getDocument()->getComposition(),
s->getStartTime(), false);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
SegmentReconfigureCommand *command =
new SegmentReconfigureCommand(i18n("Set Segment Start Time"));
@@ -646,7 +646,7 @@ EditViewBase::slotSetSegmentDuration()
s->getStartTime(),
s->getEndMarkerTime() - s->getStartTime(), false);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
SegmentReconfigureCommand *command =
new SegmentReconfigureCommand(i18n("Set Segment Duration"));
@@ -702,7 +702,7 @@ MultiViewCommandHistory* EditViewBase::getCommandHistory()
return getDocument()->getCommandHistory();
}
-KToggleAction* EditViewBase::getToggleAction(const QString& actionName)
+KToggleAction* EditViewBase::getToggleAction(const TQString& actionName)
{
return dynamic_cast<KToggleAction*>(actionCollection()->action(actionName));
}