#include <kmainwindowiface.h>

Public Member Functions | |
KMainWindowInterface (KMainWindow *mainWindow) | |
~KMainWindowInterface () | |
QCStringList | functionsDynamic () |
bool | processDynamic (const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData) |
Detailed Description
DCOP interface to KMainWindow.
This is the main interface to the KMainWindow. This will provide a consistent DCOP interface to all KDE applications that use it.
Definition at line 40 of file kmainwindowiface.h.
Constructor & Destructor Documentation
KMainWindowInterface::KMainWindowInterface | ( | KMainWindow * | mainWindow | ) |
Construct a new interface object.
- Parameters:
-
mainWindow - The parent KMainWindow object that will provide us with the KAction objects.
Definition at line 32 of file kmainwindowiface.cpp.
Destructor Cleans up the dcop action proxy object.
Definition at line 40 of file kmainwindowiface.cpp.
Member Function Documentation
DCOPRef KMainWindowInterface::action | ( | const TQCString & | name | ) |
Returns a dcop reference to the selected KAction.
- Parameters:
-
name The name of the action. The names of valid actions can be found by calling actions().
- Returns:
- A DCOPRef for the kaction.
Definition at line 123 of file kmainwindowiface.cpp.
bool KMainWindowInterface::actionIsEnabled | ( | TQCString | action | ) |
Returns the status of the requested action.
- Parameters:
-
action The name of the action. The names of valid actions can be found by calling actions().
- Returns:
- The state of the action, true - enabled, false - disabled.
Definition at line 98 of file kmainwindowiface.cpp.
TQMap< TQCString, DCOPRef > KMainWindowInterface::actionMap | ( | ) |
Returns and action map.
Definition at line 128 of file kmainwindowiface.cpp.
QCStringList KMainWindowInterface::actions | ( | ) |
Return a list of actions available to the application's window.
- Returns:
- A QCStringList containing valid names actions.
Definition at line 46 of file kmainwindowiface.cpp.
TQCString KMainWindowInterface::actionToolTip | ( | TQCString | action | ) |
Returns the tool tip text of the requested action.
- Parameters:
-
action The name of the action to activate. The names of valid actions can be found by calling actions().
- Returns:
- A TQCString containing the text of the action's tool tip.
Definition at line 110 of file kmainwindowiface.cpp.
bool KMainWindowInterface::activateAction | ( | TQCString | action | ) |
Activates the requested action.
- Parameters:
-
action The name of the action to activate. The names of valid actions can be found by calling actions().
- Returns:
- The success of the operation.
Definition at line 59 of file kmainwindowiface.cpp.
bool KMainWindowInterface::disableAction | ( | TQCString | action | ) |
Disables the requested action.
- Parameters:
-
action The name of the action to disable. The names of valid actions can be found by calling actions().
- Returns:
- The success of the operation.
Definition at line 72 of file kmainwindowiface.cpp.
bool KMainWindowInterface::enableAction | ( | TQCString | action | ) |
Enables the requested action.
- Parameters:
-
action The name of the action to enable. The names of valid actions can be found by calling actions().
- Returns:
- The success of the operation.
Definition at line 85 of file kmainwindowiface.cpp.
int KMainWindowInterface::getWinID | ( | ) |
Returns the ID of the current main window.
This is useful for automated screen captures or other evil widget fun.
- Returns:
- A integer value of the main window's ID.
Definition at line 133 of file kmainwindowiface.cpp.
Copies a pixmap representation of the current main window to the clipboard.
Definition at line 137 of file kmainwindowiface.cpp.
The documentation for this class was generated from the following files: