2015-04-02 18:00:50 -04:00
|
|
|
/**
|
|
|
|
* Wrapper around wxAuiNotebook
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TABCONTAINER_H
|
|
|
|
#define TABCONTAINER_H
|
|
|
|
|
2015-04-07 17:08:28 -04:00
|
|
|
#include "../wx_common.h"
|
2015-04-02 18:00:50 -04:00
|
|
|
|
|
|
|
#include <wx/aui/aui.h>
|
2015-04-10 15:11:15 -04:00
|
|
|
#include <wx/filename.h>
|
2015-04-02 18:00:50 -04:00
|
|
|
#include "EditPane.h"
|
|
|
|
|
2015-04-10 15:11:15 -04:00
|
|
|
|
2015-04-24 16:55:10 -04:00
|
|
|
static long tab_style = wxBORDER_NONE | wxAUI_NB_TAB_SPLIT |wxAUI_NB_TAB_MOVE
|
|
|
|
| wxAUI_NB_SCROLL_BUTTONS | wxAUI_NB_WINDOWLIST_BUTTON
|
|
|
|
| wxAUI_NB_CLOSE_ON_ACTIVE_TAB | wxAUI_NB_MIDDLE_CLICK_CLOSE | wxAUI_NB_TOP;
|
2015-04-02 18:00:50 -04:00
|
|
|
|
|
|
|
class TabContainer: public wxAuiNotebook
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabContainer(
|
|
|
|
wxWindow *parent,
|
|
|
|
wxWindowID id=wxID_ANY,
|
|
|
|
const wxPoint &pos=wxDefaultPosition,
|
|
|
|
const wxSize &size=wxDefaultSize,
|
|
|
|
long style=tab_style
|
|
|
|
);
|
|
|
|
~TabContainer();
|
|
|
|
void AddTab();
|
|
|
|
void AddTab(wxString filePath);
|
2015-04-09 13:27:30 -04:00
|
|
|
EditPane *GetCurrentEditor();
|
2015-04-02 18:00:50 -04:00
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* TABCONTAINER_H */
|
|
|
|
|