Debian Codegraph @

CodeFormatter/codeformatterdlg.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // copyright : (C) 2008 by Eran Ifrah
5 // file name : codeformatterdlg.h
6 //
7 // -------------------------------------------------------------------------
8 // A
9 // _____ _ _ _ _
10 // / __ \ | | | | (_) |
11 // | / \/ ___ __| | ___| | _| |_ ___
12 // | | / _ \ / _ |/ _ \ | | | __/ _ )
13 // | \__/\ (_) | (_| | __/ |___| | || __/
14 // \____/\___/ \__,_|\___\_____/_|\__\___|
15 //
16 // F i l e
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 //////////////////////////////////////////////////////////////////////////////
24 //////////////////////////////////////////////////////////////////////////////
25 #ifndef __CODEFORMATTERDLG__
26 #define __CODEFORMATTERDLG__
27
28 #include "CodeFormatterManager.hpp"
29 #include "FormatterPage.hpp"
30 #include "codeformatterdlgbase.h"
31
32 class IManager;
33 class CodeFormatter;
34
35 class CodeFormatterDlg : public CodeFormatterBaseDlg
36 {
37 bool m_isDirty = false;
38 CodeFormatterManager& m_formatter_manager;
39 FormatterPage* m_page = nullptr;
40
41 protected:
42 void OnSelectFileTypes(wxCommandEvent& event);
43 void OnRevert(wxCommandEvent& event);
44 void OnSelectionChanged(wxDataViewEvent& event);
45 void OnSelectionChanging(wxDataViewEvent& event);
46 void OnOK(wxCommandEvent& e);
47 void InitDialog();
48
49 public:
50 CodeFormatterDlg(wxWindow* parent, CodeFormatterManager& mgr);
51 virtual ~CodeFormatterDlg();
52 };
53
54 #endif // __CODEFORMATTERDLG__