* 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
+11 -5
View File
@@ -70,7 +70,7 @@ public:
using base_type::empty;
using base_type::size;
static const size_type focus_invalid = ~size_type();
static const size_type entry_invalid = ~size_type();
ElementMenu();
~ElementMenu();
@@ -85,15 +85,21 @@ public:
const slot_type& slotSelect = slot_type(),
const slot_type& slotFocus = slot_type());
void focus_next();
void focus_prev();
void entry_next();
void entry_prev();
void focus_select();
void entry_select();
// Does not trigger the callback.
void set_entry(size_type idx);
private:
inline void focus_entry(size_type idx);
inline void unfocus_entry(size_type idx);
WindowText* m_window;
size_type m_focus;
size_type m_entry;
};
}