Back to index

Public Member Functions | Public Attributes | Private Attributes
qt_enum_command_rep Class Reference

Ad-hoc command to be used with enum widgets. More...

Inheritance diagram for qt_enum_command_rep:
Inheritance graph
Collaboration diagram for qt_enum_command_rep:
Collaboration graph

List of all members.

Public Member Functions

 qt_enum_command_rep (QComboBox *w, command c)
void apply ()
tm_ostreamprint (tm_ostream &out)
virtual void apply (object args)

Public Attributes

int ref_count

Private Attributes

QPointer< QComboBox > qwid
command cmd

Detailed Description

Ad-hoc command to be used with enum widgets.

The command associated with a qt_ui_element::enum_widget has one parameter. For the reason to be of this class, see

See also:
qt_toggle_command_rep .
qt_ui_element, , qt_ui_element_rep::as_qwidget, qt_ui_element_rep::enum_widget

Definition at line 915 of file qt_ui_element.cpp.

Constructor & Destructor Documentation

qt_enum_command_rep::qt_enum_command_rep ( QComboBox *  w,
command  c 
) [inline]

Definition at line 920 of file qt_ui_element.cpp.

: qwid(w), cmd(c) {}

Member Function Documentation

void command_rep::apply ( object  args) [virtual, inherited]

Reimplemented in object_command_rep.

Definition at line 20 of file command.cpp.

  (void) args;
  apply ();

Here is the call graph for this function:

void qt_enum_command_rep::apply ( ) [inline, virtual]

Implements command_rep.

Definition at line 921 of file qt_ui_element.cpp.

    if (qwid)
      cmd (list_object (object (from_qstring(qwid->currentText()))));

Here is the call graph for this function:

tm_ostream& qt_enum_command_rep::print ( tm_ostream out) [inline, virtual]

Reimplemented from command_rep.

Definition at line 925 of file qt_ui_element.cpp.

    return out << "Enum"; }

Member Data Documentation

Definition at line 917 of file qt_ui_element.cpp.

QPointer<QComboBox> qt_enum_command_rep::qwid [private]

Definition at line 916 of file qt_ui_element.cpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.

The documentation for this class was generated from the following file: