mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 06:32:31 +00:00
* Fixed download menu.
* Use bold when ElementMenu loses focus. * Added an exit slot to ElementBase and bind to that from withing the subclasses. * Moved peer info to ElementPeerList, accessed by the right arrow. Download info will be moved to a seperate Element. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@752 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -48,7 +48,9 @@ namespace ui {
|
||||
|
||||
class ElementBase {
|
||||
public:
|
||||
ElementBase() : m_frame(NULL) {}
|
||||
typedef sigc::slot0<void> slot_type;
|
||||
|
||||
ElementBase() : m_frame(NULL), m_focus(false) {}
|
||||
virtual ~ElementBase() {}
|
||||
|
||||
bool is_active() const { return m_frame != NULL; }
|
||||
@@ -58,10 +60,14 @@ public:
|
||||
virtual void activate(display::Frame* frame, bool focus = true) = 0;
|
||||
virtual void disable() = 0;
|
||||
|
||||
void slot_exit(const slot_type& s) { m_slotExit = s; }
|
||||
|
||||
protected:
|
||||
display::Frame* m_frame;
|
||||
bool m_focus;
|
||||
|
||||
input::Bindings m_bindings;
|
||||
slot_type m_slotExit;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user