kdeui Library API Documentation

kmainwindowiface.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2001 Ian Reinhart Geiser <geiseri@yahoo.com>
00003 
00004    This program is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this program; see the file COPYING.  If not, write to
00016    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017    Boston, MA 02111-1307, USA.
00018 */
00019 
00020 #ifndef KWINDOW_INTERFACE_H
00021 #define KWINDOW_INTERFACE_H
00022 
00023 #include <dcopobject.h>
00024 #include <qstringlist.h>
00025 #include <qcstring.h>
00026 #include <dcopref.h>
00027 
00028 
00029 
00030 class KDCOPActionProxy;
00031 class KDCOPPropertyProxy;
00032 class KMainWindow;
00033 
00040 class KMainWindowInterface : virtual public DCOPObject
00041 {
00042 K_DCOP
00043 
00044 public:
00050     KMainWindowInterface( KMainWindow * mainWindow );
00055     ~KMainWindowInterface();
00056     
00057     QCStringList functionsDynamic();
00058     bool processDynamic(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData);
00059 
00060 
00061 k_dcop:
00066     QCStringList actions();
00067 
00074     bool activateAction( QCString action);
00075 
00082     bool disableAction( QCString action);
00083 
00090     bool enableAction( QCString action);
00091 
00098     bool actionIsEnabled( QCString action);
00099 
00106     QCString actionToolTip( QCString action);
00107 
00114     DCOPRef action( const QCString &name );
00115 
00119         QMap<QCString,DCOPRef> actionMap();
00126     int getWinID();
00131     void grabWindowToClipBoard();
00132 //  bool isHidden();
00133     void hide();
00134 //  bool isMaximized();
00135     void maximize();
00136 //  bool isMinimized();
00137     void minimize();
00138 //  int width();
00139 //  int height();
00140     void resize(int newWidth, int newHeight);
00141 //  int Xpos();
00142 //  int Ypos();
00143     void move(int newX, int newY);
00144     void setGeometry(int newX, int newY, int newWidth, int newHeight);
00145     void raise();
00146     void lower();
00147     void restore();
00148     void show();
00149 
00150 //  QCStringList getQTProperties();
00151 
00152 private:
00153     KMainWindow *m_MainWindow;
00154     KDCOPActionProxy *m_dcopActionProxy;
00155     KDCOPPropertyProxy *m_dcopPropertyProxy;
00156 };
00157 
00158 #endif
00159 
00160 
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 27 22:15:04 2005 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001