21#ifndef __ANTARES_TOOLBOX_COMPONENT_MAPNOTEBOOK_H__
22#define __ANTARES_TOOLBOX_COMPONENT_MAPNOTEBOOK_H__
25#include <wx/textctrl.h>
26#include <antares/logs/logs.h>
55 bool remove(
Page* page);
62 wxTextCtrl((wxWindow*)parent,
65 wxPoint(pageToRename->pBoundingBox.x, pageToRename->pBoundingBox.y),
66 pageToRename->pBoundingBox.GetSize(),
69 pNotebook(&(parent->pNotebook))
74 void OnTextEnter(wxCommandEvent& evt);
81 Move(pPage->pBoundingBox.x, pPage->pBoundingBox.y);
82 SetSize(pPage->pBoundingBox.GetSize());
110 tabButton(std::string imagePath,
113 const char* hoverImagePath =
nullptr);
115 void drawButton(wxDC& dc,
int x,
int y);
116 void onMouseUp(wxMouseEvent&);
119 void onClick(wxMouseEvent&, BtnType t);
123 wxBitmap* buttonImage =
nullptr;
124 wxBitmap* hoverImage =
nullptr;
125 wxRect* pBoundingBox =
nullptr;
126 MapTabs* parentTabFrame =
nullptr;
128 bool drawHover =
false;
133 int remainingRightTabs;
134 tabButton* rightTabScroll;
135 tabButton* leftTabScroll;
136 tabButton* addPageButton;
144 delete rightTabScroll;
145 delete leftTabScroll;
146 delete addPageButton;
149 void onDraw(wxPaintEvent&);
150 void drawOrientationTop(wxDC& dc);
159 void drawItemTop(wxDC& dc,
Page* page,
int& pos, Notebook::Alignment align);
161 void onMouseMove(wxMouseEvent&);
169 DECLARE_EVENT_TABLE()
173 wxRect closePageBoundingBox;
Definition mapnotebook.h:97
void onMouseUp(wxMouseEvent &)
Click up.
Definition mapnotebook.cpp:440
Yuni::Event< void(int &, int &)> onMouseMotion
Event: adding a page.
Definition mapnotebook.h:167
void doSizing(wxDC &dc)
compute the offset and draw tab scrolling button if tabs don't fit in the window \
Definition mapnotebook.cpp:292
Definition mapnotebook.h:59
MapNotebook.
Definition mapnotebook.h:35
Yuni::Event< void(Page &)> onPageDelete
Event: Page deletion.
Definition mapnotebook.h:188
void onMapLayerChanged(const wxString *text)
remove a page by its name
Definition mapnotebook.cpp:86
Yuni::Event onAddPage
Event: adding a page.
Definition mapnotebook.h:179
MapNotebook(wxWindow *parent, Notebook::Orientation orientation=orLeft)
Default constructor.
Definition mapnotebook.cpp:49
const wxString & caption() const
Get the caption of the page.
Definition notebook.hxx:38
Definition notebook.h:339
Notebook.
Definition notebook.h:38
Orientation orientation() const
Get the orientation of the notebook.
Definition notebook.hxx:113
virtual void onMouseLeave()
The mouse has leaved.
Definition panel.h:73