summaryrefslogtreecommitdiffstats
path: root/src/MainWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/MainWindow.h')
-rw-r--r--src/MainWindow.h57
1 files changed, 29 insertions, 28 deletions
diff --git a/src/MainWindow.h b/src/MainWindow.h
index d00e141..773c1ec 100644
--- a/src/MainWindow.h
+++ b/src/MainWindow.h
@@ -58,7 +58,7 @@ class MainWindow : public MainWindowBase
bool saveasSourceFileDialog(TQAction *chosenEncodingAction = NULL);
void saveAsOtherEncoding(TQAction *chosenEncodingAction);
///-- void callIndenter();
-///-- void updateSourceView();
+ void updateSourceView();
void turnHighlightOnOff(bool turnOn);
void setWhiteSpaceVisibility(bool visible);
void sourceCodeChangedHelperSlot();
@@ -75,12 +75,12 @@ class MainWindow : public MainWindowBase
void clearRecentlyOpenedList();
void showAboutDialog();
void setStatusBarCursorPosInfo(int line, int column);
-///--
+
private:
-///-- TQString loadFile(TQString filePath);
+ TQString loadFile(const TQString &filePath);
///-- TQString openFileDialog(TQString dialogHeaderStr, TQString startPath, TQString fileMaskStr);
-///-- void updateWindowTitle();
-///-- void loadLastOpenedFile();
+ void updateWindowTitle();
+ void loadLastOpenedFile();
void saveSettings();
bool maybeSave();
void createEncodingMenu();
@@ -94,41 +94,42 @@ class MainWindow : public MainWindowBase
///-- void changeEvent(TQEvent *event);
///-- void dragEnterEvent(TQDragEnterEvent *event);
///-- void dropEvent(TQDropEvent *event);
-///--
+
TQextScintilla *m_qSciSourceCodeEditor;
UiGuiSettings *m_settings;
-///--
- TQString m_currentEncoding;
-///-- TQString _sourceFileContent;
-///-- TQString _sourceFormattedContent;
-///-- TQString _sourceViewContent;
+
+ TQString m_currentEncoding;
+ TQString m_sourceFileContent;
+ TQString m_sourceFormattedContent;
+ TQString m_sourceViewContent;
///-- UiGuiHighlighter *m_highlighter;
///-- TQScrollBar *m_textEditVScrollBar;
- AboutDialog *m_aboutDialog;
+ AboutDialog *m_aboutDialog;
///-- AboutDialogGraphicsView *_aboutDialogGraphicsView;
///-- UiGuiSettingsDialog *_settingsDialog;
int m_actionClearRecentlyOpenedListId;
///-- int _textEditLastScrollPos;
///-- int _currentIndenterID;
- int m_oldLinesNumber;
-///-- bool _loadLastSourceCodeFileOnStartup;
-///-- TQString _currentSourceFile;
-///-- TQString _currentSourceFileExtension;
-///-- TQString _savedSourceContent;
- TQActionGroup *m_encodingActionGroup;
- TQActionGroup *m_saveEncodedActionGroup;
- TQActionGroup *m_highlighterActionGroup;
- TQTranslator *m_uiGuiTranslator;
- TQTranslator *m_qTranslator;
-///--
- bool m_sourceCodeChanged;
+ int m_oldLinesNumber;
+ bool m_loadLastSourceCodeFileOnStartup;
+ TQString m_currentSourceFile;
+ TQString m_currentSourceFileExtension;
+ TQString m_savedSourceContent;
+ TQActionGroup *m_encodingActionGroup;
+ TQActionGroup *m_saveEncodedActionGroup;
+ TQActionGroup *m_highlighterActionGroup;
+ TQTranslator *m_uiGuiTranslator;
+ TQTranslator *m_qTranslator;
+
+ bool m_sourceCodeChanged;
///-- bool _indentSettingsChanged;
-///-- bool _previewToggled;
- TQStringList m_encodingsList;
+ bool m_previewToggled;
+ bool m_documentModified;
+ TQStringList m_encodingsList;
- ToolBarWidget *m_toolBarWidget;
+ ToolBarWidget *m_toolBarWidget;
///-- IndentHandler *_indentHandler;
- TQLabel *m_textEditLineColumnInfoLabel;
+ TQLabel *m_textEditLineColumnInfoLabel;
};
#endif // MAINWINDOW_H