| 1 |
#ifndef DESIGNERCONTAINERPANEL_H |
| 2 |
#define DESIGNERCONTAINERPANEL_H |
| 3 |
|
| 4 |
#include "menu_bar.h" |
| 5 |
#include "tool_bar.h" |
| 6 |
#include <set> |
| 7 |
#include <wx/menu.h> |
| 8 |
#include <wx/panel.h> |
| 9 |
#include <wx/statusbr.h> |
| 10 |
|
| 11 |
class CaptionBar; |
| 12 |
class DesignerContainerPanel : public wxPanel |
| 13 |
{ |
| 14 |
wxPanel* m_mainPanel; |
| 15 |
int m_height; |
| 16 |
int m_width; |
| 17 |
std::set<wxObject*> m_windows; |
| 18 |
int m_topLevelType; |
| 19 |
CaptionBar* m_caption; |
| 20 |
|
| 21 |
protected: |
| 22 |
void DoConnectCharEvent(wxWindow* win); |
| 23 |
|
| 24 |
protected: |
| 25 |
void OnLeftDown(wxMouseEvent& e); |
| 26 |
void OnRightDown(wxMouseEvent& e); |
| 27 |
void OnSize(wxSizeEvent& event); |
| 28 |
|
| 29 |
public: |
| 30 |
DesignerContainerPanel(wxWindow* parent); |
| 31 |
virtual ~DesignerContainerPanel(); |
| 32 |
|
| 33 |
void AddMainView(wxPanel* panel); |
| 34 |
wxPanel* GetMainPanel() const { return m_mainPanel; } |
| 35 |
void SetToolbar(ToolBar* tb); |
| 36 |
void SetMenuBar(MenuBar* mb); |
| 37 |
void EnableCaption(const wxString& caption, const wxString& style, const wxBitmap& icon); |
| 38 |
void SetStatusBar(wxStatusBar* mb); |
| 39 |
void CalcBestSize(int winType); |
| 40 |
}; |
| 41 |
|
| 42 |
#endif // DESIGNERCONTAINERPANEL_H |