diff options
author | Michele Calgaro <[email protected]> | 2022-07-16 15:44:05 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-07-16 15:44:05 +0900 |
commit | a30a266067d9d952edc91305bef757557c03717e (patch) | |
tree | 7bcabd84594f751001c66b16f3c42a8d459b7773 /src/MainWindow.h | |
parent | d017bd37253ae35b29d82e3277b9adcbb4517dd0 (diff) | |
download | universal-indent-gui-tqt-a30a266067d9d952edc91305bef757557c03717e.tar.gz universal-indent-gui-tqt-a30a266067d9d952edc91305bef757557c03717e.zip |
Raw Qt->TQt conversion using tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/MainWindow.h')
-rwxr-xr-x | src/MainWindow.h | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/src/MainWindow.h b/src/MainWindow.h index 4de1450..5006f77 100755 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -20,7 +20,7 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H -#include <tqmainwindow.h> +#include <tntqmainwindow.h> #include "UiGuiSettings.h" @@ -35,33 +35,33 @@ namespace Ui { class MainWindowUi; } -class QLabel; -class QScrollBar; -class QActionGroup; -class QTranslator; +class TQLabel; +class TQScrollBar; +class TQActionGroup; +class TQTranslator; class QsciScintilla; -class MainWindow : public QMainWindow +class MainWindow : public TQMainWindow { Q_OBJECT public: //! Constructor - MainWindow(QString file2OpenOnStart = "", QWidget *parent = NULL); + MainWindow(TQString file2OpenOnStart = "", TQWidget *parent = NULL); ~MainWindow() { _settings.clear(); } protected: - void closeEvent( QCloseEvent *event ); - bool eventFilter(QObject *obj, QEvent *event); + void closeEvent( TQCloseEvent *event ); + bool eventFilter(TQObject *obj, TQEvent *event); private slots: - void openSourceFileDialog(QString fileName = ""); - bool saveasSourceFileDialog(QAction *chosenEncodingAction = NULL); - void saveAsOtherEncoding(QAction *chosenEncodingAction); + void openSourceFileDialog(TQString fileName = ""); + bool saveasSourceFileDialog(TQAction *chosenEncodingAction = NULL); + void saveAsOtherEncoding(TQAction *chosenEncodingAction); bool saveSourceFile(); void callIndenter(); void updateSourceView(); @@ -74,10 +74,10 @@ private slots: void exportToPDF(); void exportToHTML(); void languageChanged(int languageIndex); - void encodingChanged(QAction *encodingAction); + void encodingChanged(TQAction *encodingAction); void numberOfLinesChanged(); void updateRecentlyOpenedList(); - void openFileFromRecentlyOpenedList(QAction* recentlyOpenedAction); + void openFileFromRecentlyOpenedList(TQAction* recentlyOpenedAction); void clearRecentlyOpenedList(); void showAboutDialog(); void setStatusBarCursorPosInfo(int line, int column); @@ -85,8 +85,8 @@ private slots: private: Ui::MainWindowUi *_mainWindowForm; - QString loadFile(QString filePath); - QString openFileDialog(QString dialogHeaderStr, QString startPath, QString fileMaskStr); + TQString loadFile(TQString filePath); + TQString openFileDialog(TQString dialogHeaderStr, TQString startPath, TQString fileMaskStr); void updateWindowTitle(); void loadLastOpenedFile(); void saveSettings(); @@ -99,45 +99,45 @@ private: void initTextEditor(); void initSyntaxHighlighter(); void initIndenter(); - void changeEvent(QEvent *event); - void dragEnterEvent(QDragEnterEvent *event); - void dropEvent(QDropEvent *event); + void changeEvent(TQEvent *event); + void dragEnterEvent(TQDragEnterEvent *event); + void dropEvent(TQDropEvent *event); QsciScintilla *_qSciSourceCodeEditor; - QSharedPointer<UiGuiSettings> _settings; + TQSharedPointer<UiGuiSettings> _settings; - QString _currentEncoding; - QString _sourceFileContent; - QString _sourceFormattedContent; - QString _sourceViewContent; + TQString _currentEncoding; + TQString _sourceFileContent; + TQString _sourceFormattedContent; + TQString _sourceViewContent; UiGuiHighlighter *_highlighter; - QScrollBar *_textEditVScrollBar; + TQScrollBar *_textEditVScrollBar; AboutDialog *_aboutDialog; AboutDialogGraphicsView *_aboutDialogGraphicsView; UiGuiSettingsDialog *_settingsDialog; int _textEditLastScrollPos; int _currentIndenterID; bool _loadLastSourceCodeFileOnStartup; - QString _currentSourceFile; - QString _currentSourceFileExtension; - QString _savedSourceContent; - QActionGroup *_encodingActionGroup; - QActionGroup *_saveEncodedActionGroup; - QActionGroup *_highlighterActionGroup; - QTranslator *_uiGuiTranslator; - QTranslator *_qTTranslator; + TQString _currentSourceFile; + TQString _currentSourceFileExtension; + TQString _savedSourceContent; + TQActionGroup *_encodingActionGroup; + TQActionGroup *_saveEncodedActionGroup; + TQActionGroup *_highlighterActionGroup; + TQTranslator *_uiGuiTranslator; + TQTranslator *_qTTranslator; bool _isFirstRunOfThisVersion; bool _sourceCodeChanged; bool _scrollPositionChanged; bool _indentSettingsChanged; bool _previewToggled; - QStringList _encodingsList; + TQStringList _encodingsList; Ui::ToolBarWidget *_toolBarWidget; IndentHandler *_indentHandler; UpdateCheckDialog *_updateCheckDialog; - QLabel *_textEditLineColumnInfoLabel; + TQLabel *_textEditLineColumnInfoLabel; }; #endif // MAINWINDOW_H |