2007-09-07 23:17:30 +02:00
|
|
|
#ifndef MY_NOTEBOOK_H
|
|
|
|
#define MY_NOTEBOOK_H
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/aui/auibook.h>
|
|
|
|
|
|
|
|
enum {
|
2007-09-08 00:25:30 +02:00
|
|
|
ID_MENU_CLOSE,
|
|
|
|
ID_MENU_CLOSE_ALL
|
2007-09-07 23:17:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
class MyNotebook : public wxAuiNotebook
|
|
|
|
{
|
2007-09-08 00:25:30 +02:00
|
|
|
public:
|
|
|
|
MyNotebook (
|
|
|
|
wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxPoint& position,
|
|
|
|
const wxSize& size,
|
|
|
|
int style );
|
|
|
|
void OnLeftDown ( wxMouseEvent& event );
|
|
|
|
void OnMiddleDown ( wxMouseEvent& event );
|
|
|
|
void OnRightDown ( wxMouseEvent& event );
|
|
|
|
void OnMenuClose ( wxCommandEvent& event );
|
|
|
|
void OnMenuCloseAll ( wxCommandEvent& event );
|
|
|
|
private:
|
2007-09-07 23:17:30 +02:00
|
|
|
int rightClickPage;
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|