summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/LilyPondOptionsDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/LilyPondOptionsDialog.cpp')
-rw-r--r--src/gui/dialogs/LilyPondOptionsDialog.cpp114
1 files changed, 57 insertions, 57 deletions
diff --git a/src/gui/dialogs/LilyPondOptionsDialog.cpp b/src/gui/dialogs/LilyPondOptionsDialog.cpp
index f693467..6af8f86 100644
--- a/src/gui/dialogs/LilyPondOptionsDialog.cpp
+++ b/src/gui/dialogs/LilyPondOptionsDialog.cpp
@@ -27,7 +27,7 @@
#include "document/io/LilyPondExporter.h"
#include "gui/configuration/HeadersConfigurationPage.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include "document/ConfigGroups.h"
@@ -39,25 +39,25 @@
#include <kdialogbase.h>
#include <kglobal.h>
#include <klocale.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qframe.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qstring.h>
-#include <qtabwidget.h>
-#include <qtooltip.h>
-#include <qvbox.h>
-#include <qwidget.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqframe.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqstring.h>
+#include <tqtabwidget.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
#include <iostream>
namespace Rosegarden
{
-LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
+LilyPondOptionsDialog::LilyPondOptionsDialog(TQWidget *parent,
RosegardenGUIDoc *doc,
- QString windowCaption,
- QString heading) :
+ TQString windowCaption,
+ TQString heading) :
KDialogBase(parent, 0, true,
(windowCaption = "" ? i18n("LilyPond Export/Preview") : windowCaption),
Apply | Ok | Cancel),
@@ -68,28 +68,28 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
KConfig *config = kapp->config();
config->setGroup(NotationViewConfigGroup);
- QVBox * mainbox = makeVBoxMainWidget();
+ TQVBox * mainbox = makeVBoxMainWidget();
//
// Arrange options in "General" and "Advanced" tabs.
//
- QTabWidget * tabWidget = new QTabWidget(mainbox);
+ TQTabWidget * tabWidget = new TQTabWidget(mainbox);
- QFrame *generalFrame;
- QFrame *advancedFrame;
- QGridLayout *generalGrid;
- QGridLayout *advancedGrid;
+ TQFrame *generalFrame;
+ TQFrame *advancedFrame;
+ TQGridLayout *generalGrid;
+ TQGridLayout *advancedGrid;
- generalFrame = new QFrame();
+ generalFrame = new TQFrame();
tabWidget->addTab(generalFrame, i18n("General options"));
- generalGrid = new QGridLayout(generalFrame, 1, 1, 5, 5);
+ generalGrid = new TQGridLayout(generalFrame, 1, 1, 5, 5);
- advancedFrame = new QFrame();
+ advancedFrame = new TQFrame();
tabWidget->addTab(advancedFrame, i18n("Advanced options"));
- advancedGrid = new QGridLayout(advancedFrame, 1, 1, 5, 5);
+ advancedGrid = new TQGridLayout(advancedFrame, 1, 1, 5, 5);
m_headersPage = new HeadersConfigurationPage(this, m_doc);
tabWidget->addTab(m_headersPage, i18n("Headers"));
@@ -101,15 +101,15 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
// LilyPond export: Basic options
//
- QGroupBox *basicOptionsBox = new QGroupBox
+ TQGroupBox *basicOptionsBox = new QGroupBox
(1, Horizontal,
i18n("Basic options"), generalFrame);
generalGrid->addWidget(basicOptionsBox, 0, 0);
- QFrame *frameBasic = new QFrame(basicOptionsBox);
- QGridLayout *layoutBasic = new QGridLayout(frameBasic, 3, 2, 10, 5);
+ TQFrame *frameBasic = new TQFrame(basicOptionsBox);
+ TQGridLayout *layoutBasic = new TQGridLayout(frameBasic, 3, 2, 10, 5);
- layoutBasic->addWidget(new QLabel(
+ layoutBasic->addWidget(new TQLabel(
i18n("Compatibility level"), frameBasic), 0, 0);
m_lilyLanguage = new KComboBox(frameBasic);
@@ -121,10 +121,10 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
m_lilyLanguage->setCurrentItem(config->readUnsignedNumEntry("lilylanguage", 0));
layoutBasic->addWidget(m_lilyLanguage, 0, 1);
- layoutBasic->addWidget(new QLabel(
+ layoutBasic->addWidget(new TQLabel(
i18n("Paper size"), frameBasic), 1, 0);
- QHBoxLayout *hboxPaper = new QHBoxLayout( frameBasic );
+ TQHBoxLayout *hboxPaper = new TQHBoxLayout( frameBasic );
m_lilyPaperSize = new KComboBox(frameBasic);
m_lilyPaperSize->insertItem(i18n("A3"));
m_lilyPaperSize->insertItem(i18n("A4"));
@@ -140,15 +140,15 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
m_lilyPaperSize->setCurrentItem(config->readUnsignedNumEntry
("lilypapersize", defaultPaperSize));
- m_lilyPaperLandscape = new QCheckBox(i18n("Landscape"), frameBasic);
+ m_lilyPaperLandscape = new TQCheckBox(i18n("Landscape"), frameBasic);
m_lilyPaperLandscape->setChecked(config->readBoolEntry("lilypaperlandscape", false));
hboxPaper->addWidget( m_lilyPaperSize );
- hboxPaper->addWidget( new QLabel( " ", frameBasic ) ); // fixed-size spacer
+ hboxPaper->addWidget( new TQLabel( " ", frameBasic ) ); // fixed-size spacer
hboxPaper->addWidget( m_lilyPaperLandscape );
layoutBasic->addLayout(hboxPaper, 1, 1);
- layoutBasic->addWidget(new QLabel(
+ layoutBasic->addWidget(new TQLabel(
i18n("Font size"), frameBasic), 2, 0);
m_lilyFontSize = new KComboBox(frameBasic);
@@ -164,15 +164,15 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
// LilyPond export: Staff level options
//
- QGroupBox *staffOptionsBox = new QGroupBox
+ TQGroupBox *staffOptionsBox = new QGroupBox
(1, Horizontal,
i18n("Staff level options"), generalFrame);
generalGrid->addWidget(staffOptionsBox, 1, 0);
- QFrame *frameStaff = new QFrame(staffOptionsBox);
- QGridLayout *layoutStaff = new QGridLayout(frameStaff, 2, 2, 10, 5);
+ TQFrame *frameStaff = new TQFrame(staffOptionsBox);
+ TQGridLayout *layoutStaff = new TQGridLayout(frameStaff, 2, 2, 10, 5);
- layoutStaff->addWidget(new QLabel(
+ layoutStaff->addWidget(new TQLabel(
i18n("Export content"), frameStaff), 0, 0);
m_lilyExportSelection = new KComboBox(frameStaff);
@@ -184,7 +184,7 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
layoutStaff->addWidget(m_lilyExportSelection, 0, 1);
- m_lilyExportStaffMerge = new QCheckBox(
+ m_lilyExportStaffMerge = new TQCheckBox(
i18n("Merge tracks that have the same name"), frameStaff);
m_lilyExportStaffMerge->setChecked(config->readBoolEntry("lilyexportstaffmerge", false));
layoutStaff->addMultiCellWidget(m_lilyExportStaffMerge, 1, 1, 0, 1);
@@ -193,13 +193,13 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
// LilyPond export: Notation options
//
- QGroupBox *notationOptionsBox = new QGroupBox
+ TQGroupBox *notationOptionsBox = new QGroupBox
(1, Horizontal,
i18n("Notation options"), generalFrame);
generalGrid->addWidget(notationOptionsBox, 2, 0);
- QFrame *frameNotation = new QFrame(notationOptionsBox);
- QGridLayout *layoutNotation = new QGridLayout(frameNotation, 4, 2, 10, 5);
+ TQFrame *frameNotation = new TQFrame(notationOptionsBox);
+ TQGridLayout *layoutNotation = new TQGridLayout(frameNotation, 4, 2, 10, 5);
m_lilyTempoMarks = new KComboBox( frameNotation );
m_lilyTempoMarks->insertItem(i18n("None"));
@@ -207,11 +207,11 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
m_lilyTempoMarks->insertItem(i18n("All"));
m_lilyTempoMarks->setCurrentItem(config->readUnsignedNumEntry("lilyexporttempomarks", 0));
- layoutNotation->addWidget( new QLabel(
+ layoutNotation->addWidget( new TQLabel(
i18n("Export tempo marks "), frameNotation), 0, 0 );
layoutNotation->addWidget(m_lilyTempoMarks, 0, 1);
- m_lilyExportLyrics = new QCheckBox(
+ m_lilyExportLyrics = new TQCheckBox(
i18n("Export lyrics"), frameNotation);
// default to lyric export == false because if you export the default
// empty "- - -" lyrics, crap results ensue, and people will know if they
@@ -221,14 +221,14 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
m_lilyExportLyrics->setChecked(config->readBoolEntry("lilyexportlyrics", true));
layoutNotation->addMultiCellWidget(m_lilyExportLyrics, 1, 1, 0, 1);
- m_lilyExportBeams = new QCheckBox(
+ m_lilyExportBeams = new TQCheckBox(
i18n("Export beamings"), frameNotation);
m_lilyExportBeams->setChecked(config->readBoolEntry("lilyexportbeamings", false));
layoutNotation->addMultiCellWidget(m_lilyExportBeams, 2, 2, 0, 1);
// recycle this for a new option to ignore the track brackets (so it is less
// obnoxious to print single parts where brackets are in place)
- m_lilyExportStaffGroup = new QCheckBox(
+ m_lilyExportStaffGroup = new TQCheckBox(
i18n("Export track staff brackets"), frameNotation);
m_lilyExportStaffGroup->setChecked(config->readBoolEntry("lilyexportstaffbrackets", true));
layoutNotation->addMultiCellWidget(m_lilyExportStaffGroup, 3, 3, 0, 1);
@@ -239,13 +239,13 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
// LilyPond export: Advanced options
//
- QGroupBox *advancedLayoutOptionsBox = new QGroupBox
+ TQGroupBox *advancedLayoutOptionsBox = new QGroupBox
(1, Horizontal,
i18n("Layout options"), advancedFrame);
advancedGrid->addWidget(advancedLayoutOptionsBox, 0, 0);
- QFrame *frameAdvancedLayout = new QFrame(advancedLayoutOptionsBox);
- QGridLayout *layoutAdvancedLayout = new QGridLayout(frameAdvancedLayout, 2, 2, 10, 5);
+ TQFrame *frameAdvancedLayout = new TQFrame(advancedLayoutOptionsBox);
+ TQGridLayout *layoutAdvancedLayout = new TQGridLayout(frameAdvancedLayout, 2, 2, 10, 5);
m_lilyLyricsHAlignment = new KComboBox( frameAdvancedLayout );
m_lilyLyricsHAlignment->insertItem(i18n("Left"));
@@ -253,29 +253,29 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
m_lilyLyricsHAlignment->insertItem(i18n("Right"));
m_lilyLyricsHAlignment->setCurrentItem(config->readUnsignedNumEntry("lilylyricshalignment", 0));
- layoutAdvancedLayout->addWidget(new QLabel(
+ layoutAdvancedLayout->addWidget(new TQLabel(
i18n("Lyrics alignment"), frameAdvancedLayout), 0, 0);
layoutAdvancedLayout->addWidget(m_lilyLyricsHAlignment, 0, 1);
- m_lilyRaggedBottom = new QCheckBox(
+ m_lilyRaggedBottom = new TQCheckBox(
i18n("Ragged bottom (systems will not be spread vertically across the page)"), frameAdvancedLayout);
m_lilyRaggedBottom->setChecked(config->readBoolEntry("lilyraggedbottom", false));
layoutAdvancedLayout->addMultiCellWidget(m_lilyRaggedBottom, 1, 2, 0, 1);
- QGroupBox *miscOptionsBox = new QGroupBox
+ TQGroupBox *miscOptionsBox = new QGroupBox
(1, Horizontal,
i18n("Miscellaneous options"), advancedFrame);
advancedGrid->addWidget(miscOptionsBox, 1, 0);
- QFrame *frameMisc = new QFrame(miscOptionsBox);
- QGridLayout *layoutMisc = new QGridLayout(frameMisc, 2, 2, 10, 5);
+ TQFrame *frameMisc = new TQFrame(miscOptionsBox);
+ TQGridLayout *layoutMisc = new TQGridLayout(frameMisc, 2, 2, 10, 5);
- m_lilyExportPointAndClick = new QCheckBox(
+ m_lilyExportPointAndClick = new TQCheckBox(
i18n("Enable \"point and click\" debugging"), frameMisc);
m_lilyExportPointAndClick->setChecked(config->readBoolEntry("lilyexportpointandclick", false));
layoutMisc->addMultiCellWidget(m_lilyExportPointAndClick, 0, 0, 0, 1);
- m_lilyExportMidi = new QCheckBox(
+ m_lilyExportMidi = new TQCheckBox(
i18n("Export \\midi block"), frameMisc);
m_lilyExportMidi->setChecked(config->readBoolEntry("lilyexportmidi", false));
layoutMisc->addMultiCellWidget(m_lilyExportMidi, 1, 1, 0, 1);
@@ -286,7 +286,7 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(QWidget *parent,
m_lilyMarkerMode->insertItem(i18n("Marker text"));
m_lilyMarkerMode->setCurrentItem(config->readUnsignedNumEntry("lilyexportmarkermode", 0));
- layoutMisc->addWidget( new QLabel(
+ layoutMisc->addWidget( new TQLabel(
i18n("Export markers"), frameMisc),2, 0 );
layoutMisc->addWidget(m_lilyMarkerMode, 2, 1);
@@ -327,7 +327,7 @@ LilyPondOptionsDialog::slotOk()
}
void
-LilyPondOptionsDialog::setDefaultLilyPondVersion(QString version)
+LilyPondOptionsDialog::setDefaultLilyPondVersion(TQString version)
{
KConfig *config = kapp->config();
config->setGroup(NotationViewConfigGroup);