summaryrefslogtreecommitdiffstats
path: root/src/gui/configuration/GeneralConfigurationPage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/configuration/GeneralConfigurationPage.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-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/configuration/GeneralConfigurationPage.cpp')
-rw-r--r--src/gui/configuration/GeneralConfigurationPage.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/src/gui/configuration/GeneralConfigurationPage.cpp b/src/gui/configuration/GeneralConfigurationPage.cpp
index 22915ed..d6c850e 100644
--- a/src/gui/configuration/GeneralConfigurationPage.cpp
+++ b/src/gui/configuration/GeneralConfigurationPage.cpp
@@ -39,19 +39,19 @@
#include <kconfig.h>
#include <kfiledialog.h>
#include <kmessagebox.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qfileinfo.h>
-#include <qframe.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
-#include <qstring.h>
-#include <qtabwidget.h>
-#include <qvbox.h>
-#include <qwidget.h>
-#include <qlayout.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqfileinfo.h>
+#include <tqframe.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqspinbox.h>
+#include <tqstring.h>
+#include <tqtabwidget.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
+#include <tqlayout.h>
namespace Rosegarden
@@ -59,7 +59,7 @@ namespace Rosegarden
GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc,
KConfig *cfg,
- QWidget *parent, const char *name)
+ TQWidget *parent, const char *name)
: TabbedConfigurationPage(cfg, parent, name),
m_doc(doc),
m_client(0),
@@ -68,23 +68,23 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc,
{
m_cfg->setGroup(GeneralOptionsConfigGroup);
- QFrame *frame;
- QGridLayout *layout;
- QLabel *label = 0;
+ TQFrame *frame;
+ TQGridLayout *layout;
+ TQLabel *label = 0;
int row = 0;
//
// "Behavior" tab
//
- frame = new QFrame(m_tabWidget);
- layout = new QGridLayout(frame,
+ frame = new TQFrame(m_tabWidget);
+ layout = new TQGridLayout(frame,
6, 2, // nbrow, nbcol
10, 5);
layout->setRowSpacing(row, 15);
++row;
- layout->addWidget(new QLabel(i18n("Double-click opens segment in"),
+ layout->addWidget(new TQLabel(i18n("Double-click opens segment in"),
frame), row, 0);
m_client = new KComboBox(frame);
@@ -96,17 +96,17 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc,
layout->addMultiCellWidget(m_client, row, row, 1, 2);
++row;
- layout->addWidget(new QLabel(i18n("Number of count-in measures when recording"),
+ layout->addWidget(new TQLabel(i18n("Number of count-in measures when recording"),
frame), row, 0);
- m_countIn = new QSpinBox(frame);
+ m_countIn = new TQSpinBox(frame);
m_countIn->setValue(m_cfg->readUnsignedNumEntry("countinbars", 0));
m_countIn->setMaxValue(10);
m_countIn->setMinValue(0);
layout->addMultiCellWidget(m_countIn, row, row, 1, 2);
++row;
- layout->addWidget(new QLabel(i18n("Auto-save interval"), frame), row, 0);
+ layout->addWidget(new TQLabel(i18n("Auto-save interval"), frame), row, 0);
m_autoSave = new KComboBox(frame);
m_autoSave->insertItem(i18n("Every 30 seconds"));
@@ -137,10 +137,10 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc,
#ifdef HAVE_LIBJACK
m_cfg->setGroup(SequencerOptionsConfigGroup);
- label = new QLabel(i18n("Use JACK transport"), frame);
+ label = new TQLabel(i18n("Use JACK transport"), frame);
layout->addWidget(label, row, 0);
- m_jackTransport = new QCheckBox(frame);
+ m_jackTransport = new TQCheckBox(frame);
layout->addMultiCellWidget(m_jackTransport, row, row, 1, 2);
// m_jackTransport->insertItem(i18n("Ignore JACK transport"));
@@ -168,9 +168,9 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc,
layout->setRowSpacing(row, 20);
++row;
- layout->addWidget(new QLabel(i18n("Sequencer status"), frame), row, 0);
+ layout->addWidget(new TQLabel(i18n("Sequencer status"), frame), row, 0);
- QString status(i18n("Unknown"));
+ TQString status(i18n("Unknown"));
SequenceManager *mgr = doc->getSequenceManager();
if (mgr) {
int driverStatus = mgr->getSoundDriverStatus() & (AUDIO_OK | MIDI_OK);
@@ -190,12 +190,12 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc,
}
}
- layout->addWidget(new QLabel(status, frame), row, 1);
+ layout->addWidget(new TQLabel(status, frame), row, 1);
- QPushButton *showStatusButton = new QPushButton(i18n("Details..."),
+ TQPushButton *showStatusButton = new TQPushButton(i18n("Details..."),
frame);
- QObject::connect(showStatusButton, SIGNAL(clicked()),
- this, SLOT(slotShowStatus()));
+ TQObject::connect(showStatusButton, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotShowStatus()));
layout->addWidget(showStatusButton, row, 2, Qt::AlignRight);
++row;
@@ -206,8 +206,8 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc,
//
// "Appearance" tab
//
- frame = new QFrame(m_tabWidget);
- layout = new QGridLayout(frame,
+ frame = new TQFrame(m_tabWidget);
+ layout = new TQGridLayout(frame,
7, 4, // nbrow, nbcol -- one extra row improves layout
10, 5);
@@ -216,7 +216,7 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc,
layout->setRowSpacing(row, 15);
++row;
- layout->addWidget(new QLabel(i18n("Side-bar parameter box layout"),
+ layout->addWidget(new TQLabel(i18n("Side-bar parameter box layout"),
frame), row, 0);
m_sidebarStyle = new KComboBox(frame);
@@ -230,7 +230,7 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc,
layout->addMultiCellWidget(m_sidebarStyle, row, row, 1, 3);
++row;
- layout->addWidget(new QLabel(i18n("Note name style"),
+ layout->addWidget(new TQLabel(i18n("Note name style"),
frame), row, 0);
m_nameStyle = new KComboBox(frame);
@@ -240,24 +240,24 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc,
layout->addMultiCellWidget(m_nameStyle, row, row, 1, 3);
++row;
/*
- layout->addWidget(new QLabel(i18n("Show tool context help in status bar"), frame), row, 0);
+ layout->addWidget(new TQLabel(i18n("Show tool context help in status bar"), frame), row, 0);
- m_toolContextHelp = new QCheckBox(frame);
+ m_toolContextHelp = new TQCheckBox(frame);
layout->addWidget(m_toolContextHelp, row, 1);
m_toolContextHelp->setChecked(m_cfg->readBoolEntry
("toolcontexthelp", true));
++row;
*/
- layout->addWidget(new QLabel(i18n("Show textured background on"), frame), row, 0);
+ layout->addWidget(new TQLabel(i18n("Show textured background on"), frame), row, 0);
- m_backgroundTextures = new QCheckBox(i18n("Main window"), frame);
+ m_backgroundTextures = new TQCheckBox(i18n("Main window"), frame);
layout->addWidget(m_backgroundTextures, row, 1);
- m_matrixBackgroundTextures = new QCheckBox(i18n("Matrix"), frame);
+ m_matrixBackgroundTextures = new TQCheckBox(i18n("Matrix"), frame);
layout->addWidget(m_matrixBackgroundTextures, row, 2);
- m_notationBackgroundTextures = new QCheckBox(i18n("Notation"), frame);
+ m_notationBackgroundTextures = new TQCheckBox(i18n("Notation"), frame);
layout->addWidget(m_notationBackgroundTextures, row, 3);
m_backgroundTextures->setChecked(m_cfg->readBoolEntry
@@ -272,7 +272,7 @@ GeneralConfigurationPage::GeneralConfigurationPage(RosegardenGUIDoc *doc,
m_cfg->setGroup(GeneralOptionsConfigGroup);
++row;
- layout->addWidget(new QLabel(i18n("Use bundled Klearlook theme"), frame), row, 0);
+ layout->addWidget(new TQLabel(i18n("Use bundled Klearlook theme"), frame), row, 0);
m_globalStyle = new KComboBox(frame);
m_globalStyle->insertItem(i18n("Never"));
m_globalStyle->insertItem(i18n("When not running under KDE"));