* 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:
rakshasa
2006-08-07 16:31:55 +00:00
parent 0b45062eb3
commit ba28df3ff2
24 changed files with 310 additions and 342 deletions
+7 -1
View File
@@ -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;
};
}