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
7
class
MainFrame
;
8
13
class
ElementsToolBar
:
public
wxFrame
14
{
15
public
:
16
ElementsToolBar
(
MainFrame
* parent,
bool
vertical =
true
);
17
virtual
~ElementsToolBar
();
18
19
void
EnableTools(
bool
enable);
20
wxToolBar* GetToolBar() {
return
m_toolBar; }
21
22
protected
:
23
void
InitToolBar(
bool
vertical =
true
);
24
void
OnToolClicked(wxCommandEvent& event);
25
void
OnClose(wxCloseEvent& event);
26
27
private
:
28
MainFrame
* m_mainFrame =
nullptr
;
29
wxToolBar* m_toolBar =
nullptr
;
30
};
31
32
#endif
// ELEMENTSTOOLBAR_H
ElementsToolBar
Floating vertical toolbar for inserting circuit elements.
Definition
ElementsToolBar.h:14
MainFrame
Main frame of the program. This class manage the ribbon menu and the notebook behavior.
Definition
MainFrame.h:71
Project
forms
ElementsToolBar.h
Generated by
1.9.8