mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 23:22:31 +00:00
* UI refactoring, added display::Frame and started cleaning up the
code. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@747 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -43,16 +43,10 @@
|
||||
|
||||
namespace display {
|
||||
|
||||
WindowInput::WindowInput(input::TextInput* input) :
|
||||
Window(new Canvas, false, 1),
|
||||
m_input(input),
|
||||
m_focus(false) {
|
||||
}
|
||||
|
||||
void
|
||||
WindowInput::redraw() {
|
||||
m_canvas->erase();
|
||||
m_canvas->print(0, 0, "> %s", m_input->c_str());
|
||||
m_canvas->print(0, 0, "> %s", m_input != NULL ? m_input->c_str() : "<NULL>");
|
||||
|
||||
if (m_focus)
|
||||
m_canvas->set_attr(m_input->get_pos() + 2, 0, 1, A_REVERSE, COLOR_PAIR(0));
|
||||
|
||||
Reference in New Issue
Block a user