summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/TextEventDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/TextEventDialog.cpp')
-rw-r--r--src/gui/dialogs/TextEventDialog.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/src/gui/dialogs/TextEventDialog.cpp b/src/gui/dialogs/TextEventDialog.cpp
index ef02fbd..756edf0 100644
--- a/src/gui/dialogs/TextEventDialog.cpp
+++ b/src/gui/dialogs/TextEventDialog.cpp
@@ -50,11 +50,11 @@
namespace Rosegarden
{
-TextEventDialog::TextEventDialog(TQWidget *parent,
+TextEventDialog::TextEventDialog(TQWidget *tqparent,
NotePixmapFactory *npf,
Text defaultText,
int maxLength) :
- KDialogBase(parent, 0, true, i18n("Text"), Ok | Cancel | Help),
+ KDialogBase(tqparent, 0, true, i18n("Text"), Ok | Cancel | Help),
m_notePixmapFactory(npf),
m_styles(Text::getUserStyles()) /*,
//m_directives(Text::getLilyPondDirectives()) */
@@ -62,12 +62,12 @@ TextEventDialog::TextEventDialog(TQWidget *parent,
setHelp("nv-text");
TQVBox *vbox = makeVBoxMainWidget();
- TQGroupBox *entryBox = new QGroupBox
- (1, Horizontal, i18n("Specification"), vbox);
- TQGroupBox *exampleBox = new QGroupBox
- (1, Horizontal, i18n("Preview"), vbox);
+ TQGroupBox *entryBox = new TQGroupBox
+ (1, Qt::Horizontal, i18n("Specification"), vbox);
+ TQGroupBox *exampleBox = new TQGroupBox
+ (1, Qt::Horizontal, i18n("Preview"), vbox);
- TQGrid *entryGrid = new TQGrid(2, TQGrid::Horizontal, entryBox);
+ TQGrid *entryGrid = new TQGrid(2, Qt::Horizontal, entryBox);
new TQLabel(i18n("Text: "), entryGrid);
m_text = new TQLineEdit(entryGrid);
@@ -261,20 +261,20 @@ TextEventDialog::TextEventDialog(TQWidget *parent,
// not i18nable, because the directive exporter currently depends on the
// textual contents of these strings, not some more abstract associated
// type label
- m_lilyPondDirectiveCombo->insertItem(Text::Segno);
- m_lilyPondDirectiveCombo->insertItem(Text::Coda);
- m_lilyPondDirectiveCombo->insertItem(Text::Alternate1);
- m_lilyPondDirectiveCombo->insertItem(Text::Alternate2);
- m_lilyPondDirectiveCombo->insertItem(Text::BarDouble);
- m_lilyPondDirectiveCombo->insertItem(Text::BarEnd);
- m_lilyPondDirectiveCombo->insertItem(Text::BarDot);
- m_lilyPondDirectiveCombo->insertItem(Text::Gliss);
- m_lilyPondDirectiveCombo->insertItem(Text::Arpeggio);
- // m_lilyPondDirectiveCombo->insertItem(Text::ArpeggioUp);
- // m_lilyPondDirectiveCombo->insertItem(Text::ArpeggioDn);
- m_lilyPondDirectiveCombo->insertItem(Text::Tiny);
- m_lilyPondDirectiveCombo->insertItem(Text::Small);
- m_lilyPondDirectiveCombo->insertItem(Text::NormalSize);
+ m_lilyPondDirectiveCombo->insertItem(Text::Segno.c_str());
+ m_lilyPondDirectiveCombo->insertItem(Text::Coda.c_str());
+ m_lilyPondDirectiveCombo->insertItem(Text::Alternate1.c_str());
+ m_lilyPondDirectiveCombo->insertItem(Text::Alternate2.c_str());
+ m_lilyPondDirectiveCombo->insertItem(Text::BarDouble.c_str());
+ m_lilyPondDirectiveCombo->insertItem(Text::BarEnd.c_str());
+ m_lilyPondDirectiveCombo->insertItem(Text::BarDot.c_str());
+ m_lilyPondDirectiveCombo->insertItem(Text::Gliss.c_str());
+ m_lilyPondDirectiveCombo->insertItem(Text::Arpeggio.c_str());
+ // m_lilyPondDirectiveCombo->insertItem(Text::ArpeggioUp.c_str());
+ // m_lilyPondDirectiveCombo->insertItem(Text::ArpeggioDn.c_str());
+ m_lilyPondDirectiveCombo->insertItem(Text::Tiny.c_str());
+ m_lilyPondDirectiveCombo->insertItem(Text::Small.c_str());
+ m_lilyPondDirectiveCombo->insertItem(Text::NormalSize.c_str());
TQVBox *exampleVBox = new TQVBox(exampleBox);
@@ -282,18 +282,18 @@ TextEventDialog::TextEventDialog(TQWidget *parent,
int mapWidth = 200;
TQPixmap map(mapWidth, ls * 5 + 1);
- TQBitmap mask(mapWidth, ls * 5 + 1);
+ TQBitmap tqmask(mapWidth, ls * 5 + 1);
map.fill();
- mask.fill(Qt::color0);
+ tqmask.fill(TQt::color0);
TQPainter p, pm;
p.begin(&map);
- pm.begin(&mask);
+ pm.begin(&tqmask);
- p.setPen(Qt::black);
- pm.setPen(Qt::white);
+ p.setPen(TQt::black);
+ pm.setPen(TQt::white);
for (int i = 0; i < 5; ++i)
{
@@ -304,7 +304,7 @@ TextEventDialog::TextEventDialog(TQWidget *parent,
p.end();
pm.end();
- map.setMask(mask);
+ map.setMask(tqmask);
m_staffAboveLabel = new TQLabel("staff", exampleVBox);
m_staffAboveLabel->setPixmap(map);
@@ -392,7 +392,7 @@ TextEventDialog::slotTextChanged(const TQString &qtext)
Text rtext(text, type);
m_textExampleLabel->setPixmap
- (NotePixmapFactory::toQPixmap(m_notePixmapFactory->makeTextPixmap(rtext)));
+ (NotePixmapFactory::toTQPixmap(m_notePixmapFactory->makeTextPixmap(rtext)));
}
void
@@ -409,7 +409,7 @@ TextEventDialog::slotTypeChanged(const TQString &)
Text rtext(text, type);
m_textExampleLabel->setPixmap
- (NotePixmapFactory::toQPixmap(m_notePixmapFactory->makeTextPixmap(rtext)));
+ (NotePixmapFactory::toTQPixmap(m_notePixmapFactory->makeTextPixmap(rtext)));
//
// swap widgets in and out, depending on the current text type
@@ -417,7 +417,7 @@ TextEventDialog::slotTypeChanged(const TQString &)
if (type == Text::Dynamic) {
m_dynamicShortcutLabel->show();
m_dynamicShortcutCombo->show();
- slotDynamicShortcutChanged(text);
+ slotDynamicShortcutChanged(text.c_str());
} else {
m_dynamicShortcutLabel->hide();
m_dynamicShortcutCombo->hide();
@@ -426,7 +426,7 @@ TextEventDialog::slotTypeChanged(const TQString &)
if (type == Text::Direction) {
m_directionShortcutLabel->show();
m_directionShortcutCombo->show();
- slotDirectionShortcutChanged(text);
+ slotDirectionShortcutChanged(text.c_str());
} else {
m_directionShortcutLabel->hide();
m_directionShortcutCombo->hide();
@@ -435,7 +435,7 @@ TextEventDialog::slotTypeChanged(const TQString &)
if (type == Text::LocalDirection) {
m_localDirectionShortcutLabel->show();
m_localDirectionShortcutCombo->show();
- slotLocalDirectionShortcutChanged(text);
+ slotLocalDirectionShortcutChanged(text.c_str());
} else {
m_localDirectionShortcutLabel->hide();
m_localDirectionShortcutCombo->hide();
@@ -444,7 +444,7 @@ TextEventDialog::slotTypeChanged(const TQString &)
if (type == Text::Tempo) {
m_tempoShortcutLabel->show();
m_tempoShortcutCombo->show();
- slotTempoShortcutChanged(text);
+ slotTempoShortcutChanged(text.c_str());
} else {
m_tempoShortcutLabel->hide();
m_tempoShortcutCombo->hide();
@@ -453,7 +453,7 @@ TextEventDialog::slotTypeChanged(const TQString &)
if (type == Text::LocalTempo) {
m_localTempoShortcutLabel->show();
m_localTempoShortcutCombo->show();
- slotLocalTempoShortcutChanged(text);
+ slotLocalTempoShortcutChanged(text.c_str());
} else {
m_localTempoShortcutLabel->hide();
m_localTempoShortcutCombo->hide();
@@ -478,7 +478,7 @@ TextEventDialog::slotTypeChanged(const TQString &)
m_staffBelowLabel->show();
m_text->setReadOnly(true);
m_text->setEnabled(false);
- slotLilyPondDirectiveChanged(text);
+ slotLilyPondDirectiveChanged(text.c_str());
} else {
m_lilyPondDirectiveCombo->hide();
m_directiveLabel->hide();
@@ -537,7 +537,7 @@ void
TextEventDialog::slotDynamicShortcutChanged(const TQString &text)
{
if (text == "" || text == "Sample") {
- m_text->setText(strtoqstr(m_dynamicShortcutCombo->currentText()));
+ m_text->setText((m_dynamicShortcutCombo->currentText()));
} else {
m_text->setText(text);
}
@@ -547,7 +547,7 @@ void
TextEventDialog::slotDirectionShortcutChanged(const TQString &text)
{
if (text == "" || text == "Sample") {
- m_text->setText(strtoqstr(m_directionShortcutCombo->currentText()));
+ m_text->setText((m_directionShortcutCombo->currentText()));
} else {
m_text->setText(text);
}
@@ -557,7 +557,7 @@ void
TextEventDialog::slotLocalDirectionShortcutChanged(const TQString &text)
{
if (text == "" || text == "Sample") {
- m_text->setText(strtoqstr(m_localDirectionShortcutCombo->currentText()));
+ m_text->setText((m_localDirectionShortcutCombo->currentText()));
} else {
m_text->setText(text);
}
@@ -567,7 +567,7 @@ void
TextEventDialog::slotTempoShortcutChanged(const TQString &text)
{
if (text == "" || text == "Sample") {
- m_text->setText(strtoqstr(m_tempoShortcutCombo->currentText()));
+ m_text->setText((m_tempoShortcutCombo->currentText()));
} else {
m_text->setText(text);
}
@@ -577,7 +577,7 @@ void
TextEventDialog::slotLocalTempoShortcutChanged(const TQString &text)
{
if (text == "" || text == "Sample") {
- m_text->setText(strtoqstr(m_localTempoShortcutCombo->currentText()));
+ m_text->setText((m_localTempoShortcutCombo->currentText()));
} else {
m_text->setText(text);
}
@@ -586,7 +586,7 @@ TextEventDialog::slotLocalTempoShortcutChanged(const TQString &text)
void
TextEventDialog::slotLilyPondDirectiveChanged(const TQString &)
{
- m_text->setText(strtoqstr(m_lilyPondDirectiveCombo->currentText()));
+ m_text->setText((m_lilyPondDirectiveCombo->currentText()));
}
}