diff options
author | Timothy Pearson <[email protected]> | 2011-12-21 14:07:05 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-21 14:07:05 -0600 |
commit | c18386d69b76ef0218b5f0a08ca773fa824322b6 (patch) | |
tree | 0bea571897791e4a9ae01e42d0923c3c7baf0bda /src/gui/configuration/NotationConfigurationPage.cpp | |
parent | 97f1c43c867725d49f3943a68ef08d7e71767e99 (diff) | |
download | rosegarden-c18386d69b76ef0218b5f0a08ca773fa824322b6.tar.gz rosegarden-c18386d69b76ef0218b5f0a08ca773fa824322b6.zip |
Rename obsolete tq methods to standard names
Diffstat (limited to 'src/gui/configuration/NotationConfigurationPage.cpp')
-rw-r--r-- | src/gui/configuration/NotationConfigurationPage.cpp | 148 |
1 files changed, 74 insertions, 74 deletions
diff --git a/src/gui/configuration/NotationConfigurationPage.cpp b/src/gui/configuration/NotationConfigurationPage.cpp index 7bf857a..a9d26c3 100644 --- a/src/gui/configuration/NotationConfigurationPage.cpp +++ b/src/gui/configuration/NotationConfigurationPage.cpp @@ -74,31 +74,31 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, m_cfg->setGroup(NotationViewConfigGroup); TQFrame *frame; - TQGridLayout *tqlayout; + TQGridLayout *layout; frame = new TQFrame(m_tabWidget); - tqlayout = new TQGridLayout(frame, 9, 3, 10, 5); + layout = new TQGridLayout(frame, 9, 3, 10, 5); int row = 0; - tqlayout->setRowSpacing(row, 15); + layout->setRowSpacing(row, 15); ++row; - tqlayout->addWidget(new TQLabel(i18n("Default tqlayout mode"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Default layout mode"), frame), row, 0); m_layoutMode = new KComboBox(frame); m_layoutMode->setEditable(false); - m_layoutMode->insertItem(i18n("Linear tqlayout")); - m_layoutMode->insertItem(i18n("Continuous page tqlayout")); - m_layoutMode->insertItem(i18n("Multiple page tqlayout")); + m_layoutMode->insertItem(i18n("Linear layout")); + m_layoutMode->insertItem(i18n("Continuous page layout")); + m_layoutMode->insertItem(i18n("Multiple page layout")); int defaultLayoutMode = m_cfg->readNumEntry("layoutmode", 0); if (defaultLayoutMode >= 0 && defaultLayoutMode <= 2) { m_layoutMode->setCurrentItem(defaultLayoutMode); } - tqlayout->addMultiCellWidget(m_layoutMode, row, row, 1, 2); + layout->addMultiCellWidget(m_layoutMode, row, row, 1, 2); ++row; - tqlayout->addWidget(new TQLabel(i18n("Default spacing"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Default spacing"), frame), row, 0); m_spacing = new KComboBox(frame); m_spacing->setEditable(false); @@ -118,11 +118,11 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, } } - tqlayout->addMultiCellWidget(m_spacing, row, row, 1, 2); + layout->addMultiCellWidget(m_spacing, row, row, 1, 2); ++row; - tqlayout->addWidget(new TQLabel(i18n("Default duration factor"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Default duration factor"), frame), row, 0); m_proportion = new KComboBox(frame); m_proportion->setEditable(false); @@ -146,10 +146,10 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, } } - tqlayout->addMultiCellWidget(m_proportion, row, row, 1, 2); + layout->addMultiCellWidget(m_proportion, row, row, 1, 2); ++row; - tqlayout->addWidget(new TQLabel(i18n("Show track headers (linear tqlayout only)"), + layout->addWidget(new TQLabel(i18n("Show track headers (linear layout only)"), frame), row, 0); m_showTrackHeaders = new KComboBox(frame); @@ -167,76 +167,76 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, "\"When needed\" means \"when staves are too many to all fit" " in the current window\""))); - tqlayout->addMultiCellWidget(m_showTrackHeaders, row, row, 1, 2); + layout->addMultiCellWidget(m_showTrackHeaders, row, row, 1, 2); ++row; - tqlayout->setRowSpacing(row, 20); + layout->setRowSpacing(row, 20); ++row; - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel (i18n("Show non-notation events as question marks"), frame), row, row, 0, 1); m_showUnknowns = new TQCheckBox(frame); bool defaultShowUnknowns = m_cfg->readBoolEntry("showunknowns", false); m_showUnknowns->setChecked(defaultShowUnknowns); - tqlayout->addWidget(m_showUnknowns, row, 2); + layout->addWidget(m_showUnknowns, row, 2); ++row; - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel (i18n("Show notation-quantized notes in a different color"), frame), row, row, 0, 1); m_colourQuantize = new TQCheckBox(frame); bool defaultColourQuantize = m_cfg->readBoolEntry("colourquantize", false); m_colourQuantize->setChecked(defaultColourQuantize); - tqlayout->addWidget(m_colourQuantize, row, 2); + layout->addWidget(m_colourQuantize, row, 2); ++row; - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel (i18n("Show \"invisible\" events in grey"), frame), row, row, 0, 1); m_showInvisibles = new TQCheckBox(frame); bool defaultShowInvisibles = m_cfg->readBoolEntry("showinvisibles", true); m_showInvisibles->setChecked(defaultShowInvisibles); - tqlayout->addWidget(m_showInvisibles, row, 2); + layout->addWidget(m_showInvisibles, row, 2); ++row; - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel (i18n("Show notes outside suggested playable range in red"), frame), row, row, 0, 1); m_showRanges = new TQCheckBox(frame); bool defaultShowRanges = m_cfg->readBoolEntry("showranges", true); m_showRanges->setChecked(defaultShowRanges); - tqlayout->addWidget(m_showRanges, row, 2); + layout->addWidget(m_showRanges, row, 2); ++row; - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel (i18n("Highlight superimposed notes with a halo effect"), frame), row, row, 0, 1); m_showCollisions = new TQCheckBox(frame); bool defaultShowCollisions = m_cfg->readBoolEntry("showcollisions", true); m_showCollisions->setChecked(defaultShowCollisions); - tqlayout->addWidget(m_showCollisions, row, 2); + layout->addWidget(m_showCollisions, row, 2); ++row; - tqlayout->setRowSpacing(row, 20); + layout->setRowSpacing(row, 20); ++row; - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel (i18n("When recording MIDI, split-and-tie long notes at barlines"), frame), row, row, 0, 1); m_splitAndTie = new TQCheckBox(frame); bool defaultSplitAndTie = m_cfg->readBoolEntry("quantizemakeviable", false); m_splitAndTie->setChecked(defaultSplitAndTie); - tqlayout->addWidget(m_splitAndTie, row, 2); + layout->addWidget(m_splitAndTie, row, 2); ++row; - tqlayout->setRowStretch(row, 10); + layout->setRowStretch(row, 10); addTab(frame, i18n("Layout")); @@ -244,18 +244,18 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, frame = new TQFrame(m_tabWidget); - tqlayout = new TQGridLayout(frame, 6, 3, 10, 5); + layout = new TQGridLayout(frame, 6, 3, 10, 5); row = 0; - tqlayout->setRowSpacing(row, 15); + layout->setRowSpacing(row, 15); ++row; - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel(i18n("Default note style for new notes"), frame), row, row, 0, 1); - tqlayout->setColStretch(2, 10); + layout->setColStretch(2, 10); m_noteStyle = new KComboBox(frame); m_noteStyle->setEditable(false); @@ -277,13 +277,13 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, } } - tqlayout->addWidget(m_noteStyle, row, 2); + layout->addWidget(m_noteStyle, row, 2); ++row; - tqlayout->setRowSpacing(row, 20); + layout->setRowSpacing(row, 20); ++row; - tqlayout->addWidget + layout->addWidget (new TQLabel(i18n("When inserting notes..."), frame), row, 0); int defaultInsertType = m_cfg->readNumEntry("inserttype", 0); @@ -295,36 +295,36 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, m_insertType->insertItem(i18n("Ignore existing durations")); m_insertType->setCurrentItem(defaultInsertType); - tqlayout->addMultiCellWidget(m_insertType, row, row, 1, 2); + layout->addMultiCellWidget(m_insertType, row, row, 1, 2); ++row; bool autoBeam = m_cfg->readBoolEntry("autobeam", true); - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel (i18n("Auto-beam on insert when appropriate"), frame), row, row, 0, 1); m_autoBeam = new TQCheckBox(frame); m_autoBeam->setChecked(autoBeam); - tqlayout->addMultiCellWidget(m_autoBeam, row, row, 2, 2); + layout->addMultiCellWidget(m_autoBeam, row, row, 2, 2); ++row; bool collapse = m_cfg->readBoolEntry("collapse", false); - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel (i18n("Collapse rests after erase"), frame), row, row, 0, 1); m_collapseRests = new TQCheckBox(frame); m_collapseRests->setChecked(collapse); - tqlayout->addMultiCellWidget(m_collapseRests, row, row, 2, 2); + layout->addMultiCellWidget(m_collapseRests, row, row, 2, 2); ++row; - tqlayout->setRowSpacing(row, 20); + layout->setRowSpacing(row, 20); ++row; - tqlayout->addWidget + layout->addWidget (new TQLabel(i18n("Default paste type"), frame), row, 0); m_pasteType = new KComboBox(frame); @@ -342,24 +342,24 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, } m_pasteType->setCurrentItem(defaultPasteType); - tqlayout->addMultiCellWidget(m_pasteType, row, row, 1, 2); + layout->addMultiCellWidget(m_pasteType, row, row, 1, 2); ++row; - tqlayout->setRowStretch(row, 10); + layout->setRowStretch(row, 10); addTab(frame, i18n("Editing")); frame = new TQFrame(m_tabWidget); - tqlayout = new TQGridLayout(frame, 4, 2, 10, 5); + layout = new TQGridLayout(frame, 4, 2, 10, 5); row = 0; - tqlayout->setRowSpacing(row, 15); + layout->setRowSpacing(row, 15); ++row; - tqlayout->addWidget(new TQLabel(i18n("Accidentals in one octave..."), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Accidentals in one octave..."), frame), row, 0); m_accOctavePolicy = new KComboBox(frame); m_accOctavePolicy->insertItem(i18n("Affect only that octave")); m_accOctavePolicy->insertItem(i18n("Require cautionaries in other octaves")); @@ -368,10 +368,10 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, if (accOctaveMode >= 0 && accOctaveMode < 3) { m_accOctavePolicy->setCurrentItem(accOctaveMode); } - tqlayout->addWidget(m_accOctavePolicy, row, 1); + layout->addWidget(m_accOctavePolicy, row, 1); ++row; - tqlayout->addWidget(new TQLabel(i18n("Accidentals in one bar..."), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Accidentals in one bar..."), frame), row, 0); m_accBarPolicy = new KComboBox(frame); m_accBarPolicy->insertItem(i18n("Affect only that bar")); m_accBarPolicy->insertItem(i18n("Require cautionary resets in following bar")); @@ -380,10 +380,10 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, if (accBarMode >= 0 && accBarMode < 3) { m_accBarPolicy->setCurrentItem(accBarMode); } - tqlayout->addWidget(m_accBarPolicy, row, 1); + layout->addWidget(m_accBarPolicy, row, 1); ++row; - tqlayout->addWidget(new TQLabel(i18n("Key signature cancellation style"), frame), row, 0); + layout->addWidget(new TQLabel(i18n("Key signature cancellation style"), frame), row, 0); m_keySigCancelMode = new KComboBox(frame); m_keySigCancelMode->insertItem(i18n("Cancel only when entering C major or A minor")); m_keySigCancelMode->insertItem(i18n("Cancel whenever removing sharps or flats")); @@ -392,10 +392,10 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, if (cancelMode >= 0 && cancelMode < 3) { m_keySigCancelMode->setCurrentItem(cancelMode); } - tqlayout->addWidget(m_keySigCancelMode, row, 1); + layout->addWidget(m_keySigCancelMode, row, 1); ++row; - tqlayout->setRowStretch(row, 10); + layout->setRowStretch(row, 10); addTab(frame, i18n("Accidentals")); @@ -431,25 +431,25 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, // TQFrame *mainFrame = new TQFrame(m_tabWidget); frame = new TQFrame(m_tabWidget); - tqlayout = new TQGridLayout(frame, 2, 4, 10, 5); + layout = new TQGridLayout(frame, 2, 4, 10, 5); // frame = new TQFrame(noteFontBox); -// tqlayout = new TQGridLayout(frame, 5, 2, 10, 5); +// layout = new TQGridLayout(frame, 5, 2, 10, 5); m_viewButton = 0; - tqlayout->addWidget(new TQLabel(i18n("Notation font"), frame), 0, 0); + layout->addWidget(new TQLabel(i18n("Notation font"), frame), 0, 0); m_font = new KComboBox(frame); #ifdef HAVE_XFT m_viewButton = new TQPushButton(i18n("View"), frame); - tqlayout->addMultiCellWidget(m_font, row, row, 1, 2); - tqlayout->addWidget(m_viewButton, row, 3); + layout->addMultiCellWidget(m_font, row, row, 1, 2); + layout->addWidget(m_viewButton, row, 3); TQObject::connect(m_viewButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotViewButtonPressed())); #else - tqlayout->addMultiCellWidget(m_font, row, row, 1, 3); + layout->addMultiCellWidget(m_font, row, row, 1, 3); #endif m_font->setEditable(false); TQObject::connect(m_font, TQT_SIGNAL(activated(int)), @@ -499,70 +499,70 @@ NotationConfigurationPage::NotationConfigurationPage(KConfig *cfg, subLayout->setColStretch(1, 10); - tqlayout->addMultiCellWidget(subFrame, + layout->addMultiCellWidget(subFrame, row, row, 0, 3); ++row; - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel(i18n("Font size for single-staff views"), frame), row, row, 0, 1); m_singleStaffSize = new KComboBox(frame); m_singleStaffSize->setEditable(false); - tqlayout->addMultiCellWidget(m_singleStaffSize, row, row, 2, 2); + layout->addMultiCellWidget(m_singleStaffSize, row, row, 2, 2); ++row; - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel(i18n("Font size for multi-staff views"), frame), row, row, 0, 1); m_multiStaffSize = new KComboBox(frame); m_multiStaffSize->setEditable(false); - tqlayout->addMultiCellWidget(m_multiStaffSize, row, row, 2, 2); + layout->addMultiCellWidget(m_multiStaffSize, row, row, 2, 2); ++row; - tqlayout->addMultiCellWidget + layout->addMultiCellWidget (new TQLabel(i18n("Font size for printing (pt)"), frame), row, row, 0, 1); m_printingSize = new KComboBox(frame); m_printingSize->setEditable(false); - tqlayout->addMultiCellWidget(m_printingSize, row, row, 2, 2); + layout->addMultiCellWidget(m_printingSize, row, row, 2, 2); ++row; slotPopulateFontCombo(false); - tqlayout->setRowSpacing(row, 15); + layout->setRowSpacing(row, 15); ++row; TQFont defaultTextFont(NotePixmapFactory::defaultSerifFontFamily), defaultSansFont(NotePixmapFactory::defaultSansSerifFontFamily), defaultTimeSigFont(NotePixmapFactory::defaultTimeSigFontFamily); - tqlayout->addWidget + layout->addWidget (new TQLabel(i18n("Text font"), frame), row, 0); m_textFont = new KFontRequester(frame); TQFont textFont = m_cfg->readFontEntry("textfont", &defaultTextFont); m_textFont->setFont(textFont); - tqlayout->addMultiCellWidget(m_textFont, row, row, 1, 3); + layout->addMultiCellWidget(m_textFont, row, row, 1, 3); ++row; - tqlayout->addWidget + layout->addWidget (new TQLabel(i18n("Sans-serif font"), frame), row, 0); m_sansFont = new KFontRequester(frame); TQFont sansFont = m_cfg->readFontEntry("sansfont", &defaultSansFont); m_sansFont->setFont(sansFont); - tqlayout->addMultiCellWidget(m_sansFont, row, row, 1, 3); + layout->addMultiCellWidget(m_sansFont, row, row, 1, 3); ++row; /*!!! No -- not much point in having the time sig font here: it's only * used if the time sig characters are not found in the notation font, * and our default notation font has all the characters we need - tqlayout->addWidget + layout->addWidget (new TQLabel(i18n("Time Signature font"), frame), row, 0); m_timeSigFont = new KFontRequester(frame); TQFont timeSigFont = m_cfg->readFontEntry("timesigfont", &defaultTimeSigFont); m_timeSigFont->setFont(timeSigFont); - tqlayout->addMultiCellWidget(m_timeSigFont, row, row, 1, 3); + layout->addMultiCellWidget(m_timeSigFont, row, row, 1, 3); ++row; */ |