diff options
Diffstat (limited to 'src/IndentHandler.h')
| -rwxr-xr-x | src/IndentHandler.h | 178 |
1 files changed, 89 insertions, 89 deletions
diff --git a/src/IndentHandler.h b/src/IndentHandler.h index 3f20d82..7de1f26 100755 --- a/src/IndentHandler.h +++ b/src/IndentHandler.h @@ -20,44 +20,44 @@ #ifndef INDENTHANDLER_H #define INDENTHANDLER_H -#include <tqwidget.h> +#include <tntqwidget.h> class UiGuiErrorMessage; class UiGuiIniFileParser; -class QMenu; -class QVBoxLayout; -class QLabel; -class QSpinBox; -class QComboBox; -class QCheckBox; -class QLineEdit; -class QToolButton; -class QToolBox; +class TQMenu; +class TQVBoxLayout; +class TQLabel; +class TQSpinBox; +class TQComboBox; +class TQCheckBox; +class TQLineEdit; +class TQToolButton; +class TQToolBox; -class IndentHandler : public QWidget +class IndentHandler : public TQWidget { Q_OBJECT public: - IndentHandler(int indenterID, QWidget *mainWindow = NULL, QWidget *parent = NULL); + IndentHandler(int indenterID, TQWidget *mainWindow = NULL, TQWidget *parent = NULL); ~IndentHandler(); - QString generateShellScript(const QString &configFilename); - QString callIndenter(QString sourceCode, QString inputFileExtension); - bool loadConfigFile(QString filePathName); + TQString generateShellScript(const TQString &configFilename); + TQString callIndenter(TQString sourceCode, TQString inputFileExtension); + bool loadConfigFile(TQString filePathName); void resetToDefaultValues(); - QStringList getAvailableIndenters(); - QString getPossibleIndenterFileExtensions(); - QString getParameterString(); - QString getIndenterCfgFile(); - QString getManual(); + TQStringList getAvailableIndenters(); + TQString getPossibleIndenterFileExtensions(); + TQString getParameterString(); + TQString getIndenterCfgFile(); + TQString getManual(); void retranslateUi(); - QString getCurrentIndenterName(); - QMenu* getIndenterMenu(); - QList<QAction*> getIndenterMenuActions(); - void contextMenuEvent( QContextMenuEvent *event ); + TQString getCurrentIndenterName(); + TQMenu* getIndenterMenu(); + TQList<TQAction*> getIndenterMenuActions(); + void contextMenuEvent( TQContextMenuEvent *event ); void setParameterChangedCallback( void(*paramChangedCallback)(void) ); void setWindowClosedCallback( void(*winClosedCallback)(void) ); int getIndenterId(); @@ -67,9 +67,9 @@ signals: void selectedIndenterIndexChanged(int index); protected: - bool event( QEvent *event ); - void closeEvent(QCloseEvent *event); - void wheelEvent( QWheelEvent *event ); + bool event( TQEvent *event ); + void closeEvent(TQCloseEvent *event); + void wheelEvent( TQWheelEvent *event ); private slots: void setIndenter(int indenterID); @@ -82,102 +82,102 @@ private slots: void updateDrawing(); private: - QString callExecutableIndenter(QString sourceCode, QString inputFileExtension); - QString callJavaScriptIndenter(QString sourceCode); - void saveConfigFile(QString filePathName, QString parameterString); - void readIndentIniFile(QString iniFilePath); + TQString callExecutableIndenter(TQString sourceCode, TQString inputFileExtension); + TQString callJavaScriptIndenter(TQString sourceCode); + void saveConfigFile(TQString filePathName, TQString parameterString); + void readIndentIniFile(TQString iniFilePath); bool createIndenterCallString(); void initIndenterMenu(); //! Holds a reference to all created pages of the parameter categories toolbox and the pages boxlayout struct IndenterParameterCategoryPage { - QWidget *widget; - QVBoxLayout *vboxLayout; + TQWidget *widget; + TQVBoxLayout *vboxLayout; }; - QVector<IndenterParameterCategoryPage> _indenterParameterCategoryPages; + TQVector<IndenterParameterCategoryPage> _indenterParameterCategoryPages; //! Holds a reference to all checkboxes needed for boolean parameter setting and the parameters name struct ParamBoolean { - QString paramName; - QString trueString; - QString falseString; - QCheckBox *checkBox; + TQString paramName; + TQString trueString; + TQString falseString; + TQCheckBox *checkBox; }; - QVector<ParamBoolean> _paramBooleans; + TQVector<ParamBoolean> _paramBooleans; //! Holds a reference to all line edits needed for parameter setting and the parameters name struct ParamString { - QString paramName; - QString paramCallName; - QCheckBox *valueEnabledChkBox; - QLineEdit *lineEdit; - QLabel *label; + TQString paramName; + TQString paramCallName; + TQCheckBox *valueEnabledChkBox; + TQLineEdit *lineEdit; + TQLabel *label; }; - QVector<ParamString> _paramStrings; + TQVector<ParamString> _paramStrings; //! Hold a reference to all spin boxes needed for parameter setting and the parameters name struct ParamNumeric { - QString paramName; - QString paramCallName; - QCheckBox *valueEnabledChkBox; - QSpinBox *spinBox; - QLabel *label; + TQString paramName; + TQString paramCallName; + TQCheckBox *valueEnabledChkBox; + TQSpinBox *spinBox; + TQLabel *label; }; - QVector<ParamNumeric> _paramNumerics; + TQVector<ParamNumeric> _paramNumerics; //! Hold a reference to all combo boxes needed for parameter setting and the parameters name struct ParamMultiple { - QString paramName; - QString paramCallName; - QCheckBox *valueEnabledChkBox; - QComboBox *comboBox; - QStringList choicesStrings; - QStringList choicesStringsReadable; + TQString paramName; + TQString paramCallName; + TQCheckBox *valueEnabledChkBox; + TQComboBox *comboBox; + TQStringList choicesStrings; + TQStringList choicesStringsReadable; }; - QVector<ParamMultiple> _paramMultiples; + TQVector<ParamMultiple> _paramMultiples; - QComboBox *_indenterSelectionCombobox; - QToolButton *_indenterParameterHelpButton; + TQComboBox *_indenterSelectionCombobox; + TQToolButton *_indenterParameterHelpButton; //! Vertical layout box, into which the toolbox will be added - QVBoxLayout *_toolBoxContainerLayout; - QToolBox *_indenterParameterCategoriesToolBox; + TQVBoxLayout *_toolBoxContainerLayout; + TQToolBox *_indenterParameterCategoriesToolBox; UiGuiIniFileParser *_indenterSettings; - QStringList _indenterParameters; + TQStringList _indenterParameters; //! The indenters name in a descriptive form - QString _indenterName; + TQString _indenterName; //! The indenters file name (w/o extension), that is being called - QString _indenterFileName; - QString _indenterDirctoryStr; - QString _tempDirctoryStr; - QString _settingsDirctoryStr; - QStringList _indenterIniFileList; - QString _parameterOrder; - QString _globalConfigFilename; - QString _cfgFileParameterEnding; - QString _inputFileParameter; - QString _inputFileName; - QString _outputFileParameter; - QString _outputFileName; - QString _fileTypes; - QString _useCfgFileParameter; - QString _indenterShowHelpParameter; - QWidget *_mainWindow; + TQString _indenterFileName; + TQString _indenterDirctoryStr; + TQString _tempDirctoryStr; + TQString _settingsDirctoryStr; + TQStringList _indenterIniFileList; + TQString _parameterOrder; + TQString _globalConfigFilename; + TQString _cfgFileParameterEnding; + TQString _inputFileParameter; + TQString _inputFileName; + TQString _outputFileParameter; + TQString _outputFileName; + TQString _fileTypes; + TQString _useCfgFileParameter; + TQString _indenterShowHelpParameter; + TQWidget *_mainWindow; UiGuiErrorMessage *_errorMessageDialog; - QString _indenterExecutableCallString; - QString _indenterExecutableSuffix; - - QMenu *_menuIndenter; - QAction *_actionLoadIndenterConfigFile; - QAction *_actionSaveIndenterConfigFile; - QAction *_actionCreateShellScript; - QAction *_actionResetIndenterParameters; + TQString _indenterExecutableCallString; + TQString _indenterExecutableSuffix; + + TQMenu *_menuIndenter; + TQAction *_actionLoadIndenterConfigFile; + TQAction *_actionSaveIndenterConfigFile; + TQAction *_actionCreateShellScript; + TQAction *_actionResetIndenterParameters; //! Needed for the NPP plugin. void(*_parameterChangedCallback)(void); //! Needed for the NPP plugin. void(*_windowClosedCallback)(void); //TODO: This function should go into a string helper/tool class/file. - QString encodeToHTML(const QString &text); + TQString encodeToHTML(const TQString &text); }; #endif // INDENTHANDLER_H |
