From ae3256947f8ac390d0efa271f9721b3ac92f2999 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 7 Nov 2022 11:31:26 +0900 Subject: Added toolbar GUI. The logic of each button has not been implemented yet. Signed-off-by: Michele Calgaro --- src/MainWindow.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/MainWindow.h') diff --git a/src/MainWindow.h b/src/MainWindow.h index 663d161..103b26c 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -29,11 +29,8 @@ /// class AboutDialog; /// class AboutDialogGraphicsView; /// class UiGuiHighlighter; -/// class IndentHandler; -/// namespace Ui -/// { -/// class ToolBarWidget; -/// } +/// class IndentHandler +class ToolBarWidget; /// /// class TQLabel; /// class TQScrollBar; @@ -72,7 +69,7 @@ class MainWindow : public MainWindowBase ///-- void sourceCodeChangedHelperSlot(); ///-- void sourceCodeChangedSlot(); ///-- void indentSettingsChangedSlot(); -///-- void previewTurnedOnOff(bool turnOn); + void previewTurnedOnOff(bool turnOn); void exportToPDF(); void exportToHTML(); ///-- void languageChanged(int languageIndex); @@ -95,7 +92,7 @@ class MainWindow : public MainWindowBase ///-- void createHighlighterMenu(); ///-- bool initApplicationLanguage(); void initMainWindow(); -///-- void initToolBar(); + void initToolBar(); ///-- void initTextEditor(); ///-- void initSyntaxHighlighter(); ///-- void initIndenter(); @@ -135,7 +132,7 @@ class MainWindow : public MainWindowBase ///-- bool _previewToggled; ///-- TQStringList _encodingsList; ///-- -///-- Ui::ToolBarWidget *_toolBarWidget; + ToolBarWidget *m_toolBarWidget; ///-- IndentHandler *_indentHandler; ///-- TQLabel *_textEditLineColumnInfoLabel; }; -- cgit v1.2.1