From 5fa736197b0b111d7d1eb3d7622499375f3f17f9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 5 May 2023 20:20:32 +0900 Subject: Added logic to save file and handling encoding Signed-off-by: Michele Calgaro --- src/MainWindow.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/MainWindow.h') diff --git a/src/MainWindow.h b/src/MainWindow.h index 4d2fe2f..022f967 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -21,7 +21,9 @@ #define MAINWINDOW_H #include "MainWindowBase.h" + #include "tqobjdefs.h" +#include "tqvaluelist.h" /// class UiGuiSettingsDialog; @@ -79,7 +81,6 @@ class MainWindow : public MainWindowBase private: TQString loadFile(const TQString &filePath); -///-- TQString openFileDialog(TQString dialogHeaderStr, TQString startPath, TQString fileMaskStr); void updateWindowTitle(); void loadLastOpenedFile(); void saveSettings(); @@ -121,6 +122,8 @@ class MainWindow : public MainWindowBase TQActionGroup *m_encodingActionGroup; TQActionGroup *m_saveEncodedActionGroup; TQActionGroup *m_highlighterActionGroup; + TQValueList m_openEncodingActions; + TQValueList m_saveEncodingActions; TQTranslator *m_uiGuiTranslator; TQTranslator *m_qTranslator; @@ -128,7 +131,6 @@ class MainWindow : public MainWindowBase ///-- bool _indentSettingsChanged; bool m_previewToggled; bool m_documentModified; - TQStringList m_encodingsList; TQStringList m_recentlyOpenedList; ToolBarWidget *m_toolBarWidget; -- cgit v1.2.1