summaryrefslogtreecommitdiffstats
path: root/src/MainWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/MainWindow.h')
-rwxr-xr-xsrc/MainWindow.h70
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