Back to index

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

Ad-hoc command to be used to simulate keypresses. More...

Inheritance diagram for qt_key_command_rep:
Inheritance graph
Collaboration diagram for qt_key_command_rep:
Collaboration graph

List of all members.

Public Member Functions

 qt_key_command_rep (string ks_)
void apply ()
tm_ostreamprint (tm_ostream &out)
virtual void apply (object args)

Public Attributes

int ref_count

Private Attributes

string ks

Detailed Description

Ad-hoc command to be used to simulate keypresses.

See also:
qt_ui_element, , qt_ui_element_rep::as_qaction

Definition at line 446 of file qt_ui_element.cpp.

Constructor & Destructor Documentation

Definition at line 450 of file qt_ui_element.cpp.

: ks(ks_) { }

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_key_command_rep::apply ( ) [inline, virtual]

Implements command_rep.

Definition at line 452 of file qt_ui_element.cpp.

  if (N(ks)) { 
    QTMWidget *w = qobject_cast<QTMWidget*>(qApp->focusWidget());
      if (w && w->tm_widget()) {
        if (DEBUG_QT) cout << "shortcut: " << ks << LF;
        the_gui -> process_keypress (w->tm_widget(), ks, texmacs_time());

Here is the call graph for this function:

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

Reimplemented from command_rep.

Definition at line 462 of file qt_ui_element.cpp.

{ return out << "qt_key_command_rep"; }

Member Data Documentation

Definition at line 447 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: