summaryrefslogtreecommitdiffstats
path: root/kturtle/src/dialogs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kturtle/src/dialogs.cpp')
-rw-r--r--kturtle/src/dialogs.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/kturtle/src/dialogs.cpp b/kturtle/src/dialogs.cpp
index fcc6322d..9b693c1d 100644
--- a/kturtle/src/dialogs.cpp
+++ b/kturtle/src/dialogs.cpp
@@ -25,8 +25,8 @@
// BEGIN class ErrorMessage dialog
-ErrorMessage::ErrorMessage (TQWidget *parent)
- : KDialogBase (parent, "errorDialog", false, 0, KDialogBase::Close | KDialogBase::Help | KDialogBase::User1, KDialogBase::Close, true, i18n("Help on &Error") )
+ErrorMessage::ErrorMessage (TQWidget *tqparent)
+ : KDialogBase (tqparent, "errorDialog", false, 0, KDialogBase::Close | KDialogBase::Help | KDialogBase::User1, KDialogBase::Close, true, i18n("Help on &Error") )
{
connect( this, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT( showHelpOnError() ) );
connect( this, TQT_SIGNAL( helpClicked() ), this, TQT_SLOT( errorMessageHelp() ) );
@@ -140,8 +140,8 @@ void ErrorMessage::errorMessageHelp()
// BEGIN class ColorPicker dialog
-ColorPicker::ColorPicker(TQWidget *parent)
- : KDialogBase(parent, "colorpicker", false, i18n("Color Picker"), KDialogBase::Close | KDialogBase::Help | KDialogBase::User1, KDialogBase::Close, true )
+ColorPicker::ColorPicker(TQWidget *tqparent)
+ : KDialogBase(tqparent, "colorpicker", false, i18n("Color Picker"), KDialogBase::Close | KDialogBase::Help | KDialogBase::User1, KDialogBase::Close, true )
{
// connect to help
connect( this, TQT_SIGNAL( helpClicked() ), TQT_SLOT( slotColorPickerHelp() ) );
@@ -149,7 +149,7 @@ ColorPicker::ColorPicker(TQWidget *parent)
// for toggling convenience
connect( this, TQT_SIGNAL( finished() ), TQT_SLOT( slotEmitVisibility() ) );
- // Create the top level page and its layout
+ // Create the top level page and its tqlayout
BaseWidget = new TQWidget(this);
setMainWidget(BaseWidget);
@@ -157,57 +157,57 @@ ColorPicker::ColorPicker(TQWidget *parent)
setButtonText( KDialogBase::User1, i18n("Insert Color Code at Cursor") );
connect( this, TQT_SIGNAL( user1Clicked() ), TQT_SLOT( slotEmitColorCode() ) );
- TQVBoxLayout *vlayout = new TQVBoxLayout(BaseWidget);
+ TQVBoxLayout *vtqlayout = new TQVBoxLayout(BaseWidget);
- vlayout->addSpacing(5); // spacing on top
+ vtqlayout->addSpacing(5); // spacing on top
// the palette and value selector go into a H-box
- TQHBoxLayout *h1layout = new TQHBoxLayout(BaseWidget);
- vlayout->addLayout(h1layout);
+ TQHBoxLayout *h1tqlayout = new TQHBoxLayout(BaseWidget);
+ vtqlayout->addLayout(h1tqlayout);
- h1layout->addSpacing(10); // space on the left border
+ h1tqlayout->addSpacing(10); // space on the left border
hsSelector = new KHSSelector(BaseWidget); // the color (SH) selector
hsSelector->setMinimumSize(300, 150);
- h1layout->addWidget(hsSelector);
+ h1tqlayout->addWidget(hsSelector);
connect( hsSelector, TQT_SIGNAL( valueChanged(int, int) ), TQT_SLOT( slotSelectorChanged(int, int) ) );
- h1layout->addSpacing(5); // space in between
+ h1tqlayout->addSpacing(5); // space in between
valuePal = new KValueSelector(BaseWidget); // the darkness (V) pal
valuePal->setFixedWidth(30);
- h1layout->addWidget(valuePal);
+ h1tqlayout->addWidget(valuePal);
connect( valuePal, TQT_SIGNAL( valueChanged(int) ), TQT_SLOT( slotPalChanged(int) ) );
- vlayout->addSpacing(15); // space in between the top and the bottom widgets
+ vtqlayout->addSpacing(15); // space in between the top and the bottom widgets
// the patch and the codegenerator also go into a H-box
- TQHBoxLayout *h2layout = new TQHBoxLayout(BaseWidget);
- vlayout->addLayout(h2layout);
+ TQHBoxLayout *h2tqlayout = new TQHBoxLayout(BaseWidget);
+ vtqlayout->addLayout(h2tqlayout);
- h2layout->addSpacing(10); // space on the left border
+ h2tqlayout->addSpacing(10); // space on the left border
patch = new KColorPatch(BaseWidget); // the patch (color previewer)
patch->setFixedSize(50, 50);
- h2layout->addWidget(patch);
+ h2tqlayout->addWidget(patch);
- h2layout->addSpacing(10); // space in between
+ h2tqlayout->addSpacing(10); // space in between
// the label and the codegenerator go in a V-box
- TQVBoxLayout *v2layout = new TQVBoxLayout(BaseWidget);
- h2layout->addLayout(v2layout);
+ TQVBoxLayout *v2tqlayout = new TQVBoxLayout(BaseWidget);
+ h2tqlayout->addLayout(v2tqlayout);
copyable = new TQLabel(i18n("Color code:"), BaseWidget); // tha label
- v2layout->addWidget(copyable);
+ v2tqlayout->addWidget(copyable);
colorcode = new TQLineEdit(BaseWidget); // the code generator
colorcode->setReadOnly(true);
- v2layout->addWidget(colorcode);
+ v2tqlayout->addWidget(colorcode);
connect( colorcode, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( slotReselect() ) );
- h2layout->addSpacing(5); // spacing on the right border
+ h2tqlayout->addSpacing(5); // spacing on the right border
- vlayout->addSpacing(10); // spacing on the bottom
+ vtqlayout->addSpacing(10); // spacing on the bottom
h = g = b = 0; // start with red
s = v = r = 255;
@@ -228,7 +228,7 @@ void ColorPicker::updatePal()
valuePal->setSaturation(s);
valuePal->setValue(v);
valuePal->updateContents();
- valuePal->repaint(false);
+ valuePal->tqrepaint(false);
}
void ColorPicker::updatePatch()
@@ -239,7 +239,7 @@ void ColorPicker::updatePatch()
void ColorPicker::updateColorCode()
{
color.getRgb(&r, &g, &b);
- colorcode->setText( TQString("%1, %2, %3").arg(r).arg(g).arg(b) );
+ colorcode->setText( TQString("%1, %2, %3").tqarg(r).tqarg(g).tqarg(b) );
colorcode->selectAll();
}
@@ -297,8 +297,8 @@ void ColorPicker::slotColorPickerHelp()
// BEGIN class RestartOrBack dialog
-RestartOrBack::RestartOrBack (TQWidget *parent)
- : KDialogBase (parent, "rbDialog", true, 0, KDialogBase::User1 | KDialogBase::User2, KDialogBase::User2, false, i18n("&Restart"), i18n("&Back") )
+RestartOrBack::RestartOrBack (TQWidget *tqparent)
+ : KDialogBase (tqparent, "rbDialog", true, 0, KDialogBase::User1 | KDialogBase::User2, KDialogBase::User2, false, i18n("&Restart"), i18n("&Back") )
{
setPlainCaption( i18n("Finished Execution") );
setButtonWhatsThis( KDialogBase::User1, i18n("Click here to restart the current logo program.") );