Power System Platform  2026w34a-beta
Loading...
Searching...
No Matches
ElementsToolBar.h
1#ifndef ELEMENTSTOOLBAR_H
2#define ELEMENTSTOOLBAR_H
3
4#include <wx/frame.h>
5#include <wx/toolbar.h>
6
7class MainFrame;
8
13class ElementsToolBar : public wxFrame
14{
15public:
16 ElementsToolBar(MainFrame* parent, bool vertical = true);
17 virtual ~ElementsToolBar();
18
19 void EnableTools(bool enable);
20 wxToolBar* GetToolBar() { return m_toolBar; }
21
22protected:
23 void InitToolBar(bool vertical = true);
24 void OnToolClicked(wxCommandEvent& event);
25 void OnClose(wxCloseEvent& event);
26
27private:
28 MainFrame* m_mainFrame = nullptr;
29 wxToolBar* m_toolBar = nullptr;
30};
31
32#endif // ELEMENTSTOOLBAR_H
Floating vertical toolbar for inserting circuit elements.
Main frame of the program. This class manage the ribbon menu and the notebook behavior.
Definition MainFrame.h:71