mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 12:42:31 +00:00
Adding active/disabled status on windows so it's easier to show/hide
them while keeping the order. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@284 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+10
-5
@@ -10,19 +10,23 @@ class Canvas;
|
||||
class Window {
|
||||
public:
|
||||
Window(Canvas* c = NULL, bool d = false, int h = 1) :
|
||||
m_canvas(c), m_dynamic(d), m_minHeight(h) {}
|
||||
m_canvas(c), m_active(true), m_dynamic(d), m_minHeight(h) {}
|
||||
|
||||
virtual ~Window();
|
||||
|
||||
bool is_dynamic() { return m_dynamic; }
|
||||
bool is_dirty() { return m_lastDraw == 0; }
|
||||
bool is_active() { return m_active; }
|
||||
bool is_dynamic() { return m_dynamic; }
|
||||
bool is_dirty() { return m_lastDraw == 0; }
|
||||
|
||||
int get_min_height() { return m_minHeight; }
|
||||
int get_min_height() { return m_minHeight; }
|
||||
|
||||
bool get_active() { return m_active; }
|
||||
void set_active(bool a) { m_active = a; }
|
||||
|
||||
void refresh();
|
||||
void resize(int x, int y, int w, int h);
|
||||
|
||||
void mark_dirty() { m_lastDraw = 0; }
|
||||
void mark_dirty() { m_lastDraw = 0; }
|
||||
|
||||
virtual void redraw() = 0;
|
||||
|
||||
@@ -32,6 +36,7 @@ protected:
|
||||
|
||||
Canvas* m_canvas;
|
||||
|
||||
bool m_active;
|
||||
bool m_dynamic;
|
||||
int m_minHeight;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user