GnuCashew ~ GnuCash Enabled Web
GCW
ToolBar.h
Go to the documentation of this file.
1 #line 2 "src/Gui/Customer/ToolBar.h"
2 
3 
4 #ifndef __GUI_CUSTOMER_TOOLBAR_H___
5 #define __GUI_CUSTOMER_TOOLBAR_H___
6 
7 #include <Wt/WButtonGroup.h>
8 #include <Wt/WRadioButton.h>
9 #include <Wt/WCheckBox.h>
10 
11 namespace GCW {
12  namespace Gui {
13  namespace Customer {
14 
15 /*!
16 ** \brief Control Bar
17 **
18 ** Control Bar with buttons
19 **
20 */
21 class ToolBar
22 : public Wt::WContainerWidget
23 {
24  public:
25 
26  ToolBar();
27 
28  Wt::Signal<> & addClicked() { return m_addClicked; }
29  Wt::Signal<> m_addClicked;
30 
31 // int selectedMonth() const;
32 
33 // std::shared_ptr< Wt::WButtonGroup > buttonGroup () const { return m_group; }
34  auto disabledButton () const-> Wt::WCheckBox * { return m_disabled; }
35  auto showDisabled () const-> bool ;
36 
37  auto importClicked()-> Wt::Signal<> & { return m_importClicked; }
38  auto exportClicked()-> Wt::Signal<> & { return m_exportClicked; }
39 
40  private:
41 
42 // std::shared_ptr< Wt::WButtonGroup > m_group;
43  Wt::WCheckBox * m_disabled = nullptr;
44  Wt::WCheckBox * m_summary = nullptr;
45 
46  Wt::Signal<> m_importClicked;
47  Wt::Signal<> m_exportClicked;
48 
49 }; // endclass ToolBar
50 
51  } // endnamespace Customer {
52  } // endnamespace Gui {
53 } // endnamespace GCW {
54 
55 #endif // __GUI_CUSTOMER_TOOLBAR_H___
56 
57 
Wt::Signal m_exportClicked
Definition: ToolBar.h:47
Wt::WCheckBox * m_summary
Definition: ToolBar.h:44
auto disabledButton() const -> Wt::WCheckBox *
Definition: ToolBar.h:34
Wt::WCheckBox * m_disabled
Definition: ToolBar.h:43
Wt::Signal & addClicked()
Definition: ToolBar.h:28
auto exportClicked() -> Wt::Signal<> &
Definition: ToolBar.h:38
auto importClicked() -> Wt::Signal<> &
Definition: ToolBar.h:37
Wt::Signal m_importClicked
Definition: ToolBar.h:46
auto showDisabled() const -> bool
Definition: ToolBar.cpp:99
Definition: App.h:17
Definition: GncLock.h:6