• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

KMainWindowInterface Class Reference

DCOP interface to KMainWindow. More...

#include <kmainwindowiface.h>

Inheritance diagram for KMainWindowInterface:

Inheritance graph
[legend]

List of all members.


Public Member Functions

QCStringList functionsDynamic ()
 KMainWindowInterface (KMainWindow *mainWindow)
bool processDynamic (const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &replyData)
 ~KMainWindowInterface ()

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.

Author:
Ian Reinhart Geiser <geiseri@yahoo.com>

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 31 of file kmainwindowiface.cpp.

KMainWindowInterface::~KMainWindowInterface (  ) 

Destructor Cleans up the dcop action proxy object.

Definition at line 39 of file kmainwindowiface.cpp.


Member Function Documentation

DCOPRef KMainWindowInterface::action ( const QCString &  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 122 of file kmainwindowiface.cpp.

bool KMainWindowInterface::actionIsEnabled ( QCString  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 97 of file kmainwindowiface.cpp.

QMap< QCString, DCOPRef > KMainWindowInterface::actionMap (  ) 

Returns and action map.

Definition at line 127 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 45 of file kmainwindowiface.cpp.

QCString KMainWindowInterface::actionToolTip ( QCString  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 QCString containing the text of the action's tool tip.

Definition at line 109 of file kmainwindowiface.cpp.

bool KMainWindowInterface::activateAction ( QCString  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 58 of file kmainwindowiface.cpp.

void KMainWindowInterface::close (  ) 

Definition at line 177 of file kmainwindowiface.cpp.

bool KMainWindowInterface::disableAction ( QCString  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 71 of file kmainwindowiface.cpp.

bool KMainWindowInterface::enableAction ( QCString  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 84 of file kmainwindowiface.cpp.

QCStringList KMainWindowInterface::functionsDynamic (  ) 

Definition at line 185 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 132 of file kmainwindowiface.cpp.

void KMainWindowInterface::grabWindowToClipBoard (  ) 

Copies a pixmap representation of the current main window to the clipboard.

Definition at line 136 of file kmainwindowiface.cpp.

void KMainWindowInterface::hide (  ) 

Definition at line 141 of file kmainwindowiface.cpp.

void KMainWindowInterface::lower (  ) 

Definition at line 169 of file kmainwindowiface.cpp.

void KMainWindowInterface::maximize (  ) 

Definition at line 145 of file kmainwindowiface.cpp.

void KMainWindowInterface::minimize (  ) 

Definition at line 149 of file kmainwindowiface.cpp.

void KMainWindowInterface::move ( int  newX,
int  newY 
)

Definition at line 157 of file kmainwindowiface.cpp.

bool KMainWindowInterface::processDynamic ( const QCString &  fun,
const QByteArray &  data,
QCString &  replyType,
QByteArray &  replyData 
)

Definition at line 189 of file kmainwindowiface.cpp.

void KMainWindowInterface::raise (  ) 

Definition at line 165 of file kmainwindowiface.cpp.

void KMainWindowInterface::resize ( int  newWidth,
int  newHeight 
)

Definition at line 153 of file kmainwindowiface.cpp.

void KMainWindowInterface::restore (  ) 

Definition at line 173 of file kmainwindowiface.cpp.

void KMainWindowInterface::setGeometry ( int  newX,
int  newY,
int  newWidth,
int  newHeight 
)

Definition at line 161 of file kmainwindowiface.cpp.

void KMainWindowInterface::show ( void   ) 

Definition at line 181 of file kmainwindowiface.cpp.


The documentation for this class was generated from the following files:
  • kmainwindowiface.h
  • kmainwindowiface.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal