summaryrefslogtreecommitdiffstats
path: root/src/IndentHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/IndentHandler.cpp')
-rw-r--r--src/IndentHandler.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/IndentHandler.cpp b/src/IndentHandler.cpp
index 6056f37..f7508e3 100644
--- a/src/IndentHandler.cpp
+++ b/src/IndentHandler.cpp
@@ -92,14 +92,14 @@ IndentHandler::IndentHandler(int indenterID, MainWindow *mainWindow, TQWidget *p
if (m_mainWindow)
{
- connect((TQObject*)m_mainWindow->actionLoadIndenterConfigFile, SIGNAL(activated()),
- this, SLOT(openConfigFileDialog()));
- connect((TQObject*)m_mainWindow->actionSaveIndenterConfigFile, SIGNAL(activated()),
- this, SLOT(saveasIndentCfgFileDialog()));
- connect((TQObject*)m_mainWindow->actionCreateShellScript, SIGNAL(activated()),
- this, SLOT(createIndenterCallShellScript()));
- connect((TQObject*)m_mainWindow->actionResetIndenterParameters, SIGNAL(activated()),
- this, SLOT(resetIndenterParameter()));
+ connect((TQObject*)m_mainWindow->actionLoadIndenterConfigFile, TQ_SIGNAL(activated()),
+ this, TQ_SLOT(openConfigFileDialog()));
+ connect((TQObject*)m_mainWindow->actionSaveIndenterConfigFile, TQ_SIGNAL(activated()),
+ this, TQ_SLOT(saveasIndentCfgFileDialog()));
+ connect((TQObject*)m_mainWindow->actionCreateShellScript, TQ_SIGNAL(activated()),
+ this, TQ_SLOT(createIndenterCallShellScript()));
+ connect((TQObject*)m_mainWindow->actionResetIndenterParameters, TQ_SIGNAL(activated()),
+ this, TQ_SLOT(resetIndenterParameter()));
}
// create vertical layout box, into which the toolbox will be added
@@ -115,13 +115,13 @@ IndentHandler::IndentHandler(int indenterID, MainWindow *mainWindow, TQWidget *p
// Create the indenter selection combo box.
m_indenterSelectionCombobox = new TQComboBox(this);
m_indenterSelectionCombobox->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum);
- connect(m_indenterSelectionCombobox, SIGNAL(activated(int)), this, SLOT(setIndenter(int)));
+ connect(m_indenterSelectionCombobox, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setIndenter(int)));
hboxLayout->addWidget(m_indenterSelectionCombobox);
// Create the indenter parameter help button.
m_indenterParameterHelpButton = new TQToolButton(this);
m_indenterParameterHelpButton->setIconSet(TQPixmap(TQString(APP_ICONS_PATH)+ "help.png"));
- connect(m_indenterParameterHelpButton, SIGNAL(clicked()), this, SLOT(showIndenterManual()));
+ connect(m_indenterParameterHelpButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(showIndenterManual()));
hboxLayout->addWidget(m_indenterParameterHelpButton);
// create a toolbox and set its resize behavior
@@ -331,7 +331,7 @@ TQString IndentHandler::callExecutableIndenter(const TQString &sourceCode, const
TQString parameterParameterFile;
TQProcess indentProcess;
- TQObject::connect(&indentProcess, SIGNAL(processExited()), this, SLOT(indenterProcessFinished()));
+ TQObject::connect(&indentProcess, TQ_SIGNAL(processExited()), this, TQ_SLOT(indenterProcessFinished()));
// Generate the parameter string that will be saved to the indenters config file
TQString parameterString = getParameterString();
@@ -701,12 +701,12 @@ bool IndentHandler::loadConfigFile(const TQString &filePathName)
}
// Disconnect and reconnect the signal, otherwise it is emitted each time the value is set
- disconnect(pNumeric.spinBox, SIGNAL(valueChanged(int)),
- this, SLOT(handleChangedIndenterSettings()));
+ disconnect(pNumeric.spinBox, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(handleChangedIndenterSettings()));
pNumeric.spinBox->setValue(paramValue);
pNumeric.valueEnabledChkBox->setChecked(found);
- connect(pNumeric.spinBox, SIGNAL(valueChanged(int)),
- this, SLOT(handleChangedIndenterSettings()));
+ connect(pNumeric.spinBox, TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(handleChangedIndenterSettings()));
}
// Search for name of each string parameter and set it.
@@ -1064,9 +1064,9 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
"/ValueDefault").toInt());
m_paramNumerics.append(paramNumeric);
- TQObject::connect(spinBox, SIGNAL(valueChanged(int)), this,
- SLOT(handleChangedIndenterSettings()));
- TQObject::connect(chkBox, SIGNAL(clicked()), this, SLOT(handleChangedIndenterSettings()));
+ TQObject::connect(spinBox, TQ_SIGNAL(valueChanged(int)), this,
+ TQ_SLOT(handleChangedIndenterSettings()));
+ TQObject::connect(chkBox, TQ_SIGNAL(clicked()), this, TQ_SLOT(handleChangedIndenterSettings()));
}
// edit type is boolean so create a checkbox
else if (editType == "boolean")
@@ -1104,7 +1104,7 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
"/ValueDefault").toBool());
m_paramBooleans.append(paramBoolean);
- TQObject::connect(chkBox, SIGNAL(clicked()), this, SLOT(handleChangedIndenterSettings()));
+ TQObject::connect(chkBox, TQ_SIGNAL(clicked()), this, TQ_SLOT(handleChangedIndenterSettings()));
}
// edit type is numeric so create a line edit with label
else if (editType == "string")
@@ -1159,9 +1159,9 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
"/ValueDefault").toString());
m_paramStrings.append(paramString);
- TQObject::connect(lineEdit, SIGNAL(returnPressed()), this,
- SLOT(handleChangedIndenterSettings()));
- TQObject::connect(chkBox, SIGNAL(clicked()), this, SLOT(handleChangedIndenterSettings()));
+ TQObject::connect(lineEdit, TQ_SIGNAL(returnPressed()), this,
+ TQ_SLOT(handleChangedIndenterSettings()));
+ TQObject::connect(chkBox, TQ_SIGNAL(clicked()), this, TQ_SLOT(handleChangedIndenterSettings()));
}
// edit type is multiple so create a combobox with label
else if (editType == "multiple")
@@ -1218,9 +1218,9 @@ void IndentHandler::readIndentIniFile(const TQString &iniFilePath)
"/ValueDefault").toInt());
m_paramMultiples.append(paramMultiple);
- TQObject::connect(comboBox, SIGNAL(activated(int)), this,
- SLOT(handleChangedIndenterSettings()));
- TQObject::connect(chkBox, SIGNAL(clicked()), this, SLOT(handleChangedIndenterSettings()));
+ TQObject::connect(comboBox, TQ_SIGNAL(activated(int)), this,
+ TQ_SLOT(handleChangedIndenterSettings()));
+ TQObject::connect(chkBox, TQ_SIGNAL(clicked()), this, TQ_SLOT(handleChangedIndenterSettings()));
}
}
}
@@ -1351,7 +1351,7 @@ TQString IndentHandler::getIndenterCfgFile()
bool IndentHandler::createIndenterCallString()
{
TQProcess indentProcess(this);
- TQObject::connect(&indentProcess, SIGNAL(processExited()), this, SLOT(indenterProcessFinished()));
+ TQObject::connect(&indentProcess, TQ_SIGNAL(processExited()), this, TQ_SLOT(indenterProcessFinished()));
if (m_indenterFileName.isEmpty())
{