lsnes/include/platform/wxwidgets/window_status.hpp

39 lines
926 B
C++
Raw Normal View History

2012-01-06 17:28:01 +02:00
#ifndef _plat_wxwidgets__window_status__hpp__included__
#define _plat_wxwidgets__window_status__hpp__included__
#include <wx/string.h>
#include <wx/wx.h>
#include "platform/wxwidgets/textrender.hpp"
2012-01-06 17:28:01 +02:00
class wxwin_status : public wxFrame
{
public:
class panel : public wxPanel
{
public:
panel(wxWindow* _parent, wxWindow* tfocus, unsigned lines);
bool AcceptsFocus () const;
void on_focus(wxFocusEvent& e);
2012-01-06 17:28:01 +02:00
void on_paint(wxPaintEvent& e);
void on_erase(wxEraseEvent& e);
2012-01-06 17:28:01 +02:00
bool dirty;
2012-01-18 20:56:54 +02:00
wxWindow* parent;
wxWindow* tfocuswin;
//-1: memory watch only, 0: Both, 1: Status only.
void set_watch_flag(int f) { watch_flag = f; }
private:
text_framebuffer statusvars;
text_framebuffer memorywatches;
int watch_flag;
size_t previous_size;
2012-01-06 17:28:01 +02:00
};
wxwin_status(int flag, const std::string& title);
2012-01-06 17:28:01 +02:00
~wxwin_status();
bool ShouldPreventAppExit() const;
void notify_update() throw();
panel* spanel;
};
#endif