#include <ndk++.h>
Inheritance diagram for NDK_XX::ListItemData:

Public Methods | |
| ListItemData (const string &txt, int id=-1,int style=Control::tabstop|Control::notify,int state=0, void *data=0) | |
| ListItemData & | operator= (const ListItem &lha) |
| ListItemData & | operator= (const ListItemData &lha) |
| void | set_text (const string &txt) |
| string | get_text () const |
| void | set_ctrl_id (int id) |
| int | get_ctrl_id () const |
| void | set_styles (int style) |
| int | get_style () const |
| void | set_states (int state) |
| int | get_state () const |
| int | set_state (int s, bool on=true) |
| set/unset a state bit | |
| void | set_user_data (void *data) |
| void * | get_user_data () const |
| void | set_check (bool new_state=true) |
| set/unset check mark | |
| bool | is_checked () const |
| is this item selected? | |
| void | set_default (bool t_or_f=true) |
| bool | is_default () const |
| virtual int | action () |
| virtual int | driver (int key) |
Protected Attributes | |
| string | text |
| int | ctrl_id |
| int | field_style |
| int | field_state |
| bool | default_choice |
| void * | user_data |
Friends | |
| class | ListBox |
|
||||||||||||||||||||||||
|
ListItemData Constructor
Definition at line 796 of file ndk++.h.
00801 {
00802 viewport->deleteln();
|
|
|
Reimplemented in NDK_XX::MenuItemData, NDK_XX::ExitCmd, NDK_XX::PopUpMenu, ShowTestDialogCmd, and ShowTabbedDialogCmd. Definition at line 840 of file ndk++.h.
00840 : |
|
|
Definition at line 841 of file ndk++.h.
00842 {
|
|
|
Definition at line 813 of file ndk++.h. Referenced by NDK_XX::ListItem::operator=(), and operator=().
00821 : public ListItem
|
|
|
Definition at line 819 of file ndk++.h. Referenced by NDK_XX::ListItem::operator=(), and operator=().
00821 : public ListItem
|
|
|
Definition at line 816 of file ndk++.h. Referenced by NDK_XX::ListItem::operator=(), and operator=().
00821 : public ListItem
|
|
|
Definition at line 809 of file ndk++.h. Referenced by NDK_XX::ListItem::operator=(), and operator=().
00811 {return FALSE;}
|
|
|
Definition at line 825 of file ndk++.h. Referenced by NDK_XX::ListItem::operator=(), and operator=().
00840 : |
|
|
is this item selected?
Definition at line 834 of file ndk++.h. References NDK_XX::Control::title. Referenced by NDK_XX::PushButton::action().
00840 : |
|
|
Definition at line 839 of file ndk++.h. Referenced by NDK_XX::ListItem::operator=(), and operator=().
00840 : |
|
|
Definition at line 468 of file ndk++.cc. References get_ctrl_id(), get_state(), get_style(), get_text(), get_user_data(), is_default(), set_ctrl_id(), set_default(), set_states(), set_styles(), set_text(), and set_user_data().
00469 {
00470 set_text(rha.get_text());
00471 set_ctrl_id(rha.get_ctrl_id());
00472 set_styles(rha.get_style());
00473 set_states(rha.get_state());
00474 set_default(rha.is_default());
00475 set_user_data(rha.get_user_data());
00476 return *this;
00477 }
|
|
|
Definition at line 457 of file ndk++.cc. References NDK_XX::Control::get_state(), NDK_XX::Control::get_style(), NDK_XX::Button::is_default(), set_default(), set_states(), and set_styles().
00458 {
00459 set_styles(rha.get_style());
00460 set_states(rha.get_state());
00461 set_default(rha.is_default());
00462 return *this;
00463 }
|
|
|
set/unset check mark
Definition at line 828 of file ndk++.h. References NDK_XX::Control::notify, NDK_XX::Control::tabstop, and NDK_XX::Control::title.
00840 : |
|
|
Definition at line 812 of file ndk++.h. Referenced by operator=().
00821 : public ListItem
|
|
|
Definition at line 838 of file ndk++.h. Referenced by NDK_XX::ListBox::add_item(), and operator=().
00840 : |
|
||||||||||||
|
set/unset a state bit
Definition at line 482 of file ndk++.cc. References field_state. Referenced by NDK_XX::PushButton::action().
00483 {
00484 int old_state=field_state;
00485 if (on) field_state|=s;
00486 else field_state&=~s;
00487 return old_state;
00488 }
|
|
|
Definition at line 818 of file ndk++.h. Referenced by operator=().
00821 : public ListItem
|
|
|
Definition at line 815 of file ndk++.h. Referenced by operator=().
00821 : public ListItem
|
|
|
Definition at line 808 of file ndk++.h. Referenced by operator=().
00808 {return 1;};
|
|
|
Definition at line 824 of file ndk++.h. Referenced by operator=().
00840 : |
|
|
|
|
|
Definition at line 845 of file ndk++.h. Referenced by NDK_XX::Button::is_default(). |
|
|
Definition at line 848 of file ndk++.h. Referenced by NDK_XX::PropDlgPushButton::PropDlgPushButton(). |
|
|
Definition at line 847 of file ndk++.h. Referenced by NDK_XX::Button::is_default(), NDK_XX::PropDlgPushButton::PropDlgPushButton(), and set_state(). |
|
|
Definition at line 846 of file ndk++.h. Referenced by NDK_XX::Button::is_default(). |
|
|
Definition at line 844 of file ndk++.h. Referenced by NDK_XX::Button::is_default(), and NDK_XX::MenuBar::move_down(). |
|
|
Definition at line 849 of file ndk++.h. Referenced by NDK_XX::Button::is_default(), and NDK_XX::PropDlgPushButton::PropDlgPushButton(). |
1.2.17