Tyro/src/widgets/TabContainer.h

38 lines
756 B
C
Raw Normal View History

/**
* Wrapper around wxAuiNotebook
*/
#ifndef TABCONTAINER_H
#define TABCONTAINER_H
#include "../wx_common.h"
#include <wx/aui/aui.h>
2015-04-10 15:11:15 -04:00
#include <wx/filename.h>
#include "EditPane.h"
2015-04-10 15:11:15 -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;
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();
private:
};
#endif /* TABCONTAINER_H */