mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 14:42:30 +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:
+11
-5
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user