Aggiunti alcuni indispensabili const
git-svn-id: svn://10.65.10.50/trunk@2887 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3e89ac4552
commit
7d49ee9d9f
@ -276,18 +276,17 @@ class TDropDownList : public TObject
|
||||
|
||||
static void ddl_str_eh (XI_OBJ* itf, XI_EVENT* xiev);
|
||||
|
||||
public:
|
||||
|
||||
public:
|
||||
const int selected() const { return _selected; }
|
||||
void select_by_initial(char c);
|
||||
void select_by_ofs(int n);
|
||||
void open();
|
||||
void close();
|
||||
bool is_open() { return _open; }
|
||||
bool displayed() { return _displayed; }
|
||||
bool is_open() const { return _open; }
|
||||
bool displayed() const { return _displayed; }
|
||||
|
||||
const char* item(int i) { return _values.get(i); }
|
||||
int items() const { return _values.items(); }
|
||||
int items() const { return _values.items(); }
|
||||
long row2rec(int) const;
|
||||
int rec2row(long rec) const;
|
||||
void select(int i, bool force = FALSE);
|
||||
@ -302,14 +301,14 @@ class TListbox_control : public TField_control
|
||||
friend class TDropDownList;
|
||||
TDropDownList* _ddl;
|
||||
TToken_string _values;
|
||||
void drop_down();
|
||||
|
||||
protected:
|
||||
private:
|
||||
void drop_down();
|
||||
|
||||
protected: // TTField_control
|
||||
virtual bool event_handler(XI_OBJ* itf, XI_EVENT* xiev);
|
||||
|
||||
public:
|
||||
|
||||
void set_values(const char* c);
|
||||
int items() const { return _values.items(); }
|
||||
void select(int i) { _ddl->select(i); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user