mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 03:32:29 +00:00
* Allow Frame's to be located in both rows and columns. Improved min
height/width for windows. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@748 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -37,6 +37,8 @@
|
||||
#ifndef RTORRENT_DISPLAY_WINDOW_INPUT_H
|
||||
#define RTORRENT_DISPLAY_WINDOW_INPUT_H
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "window.h"
|
||||
|
||||
namespace input {
|
||||
@@ -47,11 +49,17 @@ namespace display {
|
||||
|
||||
class WindowInput : public Window {
|
||||
public:
|
||||
WindowInput() : Window(new Canvas, false, 1), m_input(NULL), m_focus(false) {}
|
||||
WindowInput() :
|
||||
Window(new Canvas, flag_width_dynamic, 0, 1),
|
||||
m_input(NULL),
|
||||
m_focus(false) {}
|
||||
|
||||
input::TextInput* input() { return m_input; }
|
||||
void set_input(input::TextInput* input) { m_input = input; }
|
||||
|
||||
const std::string& title() const { return m_title; }
|
||||
void set_title(const std::string& str) { m_title = str; }
|
||||
|
||||
bool focus() const { return m_focus; }
|
||||
void set_focus(bool f) { mark_dirty(); m_focus = f; }
|
||||
|
||||
@@ -59,6 +67,8 @@ public:
|
||||
|
||||
private:
|
||||
input::TextInput* m_input;
|
||||
std::string m_title;
|
||||
|
||||
bool m_focus;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user