20 #include "kmainwindowiface.h"
22 #include <dcopclient.h>
23 #include <kapplication.h>
24 #include <kdcopactionproxy.h>
25 #include <kdcoppropertyproxy.h>
26 #include <kmainwindow.h>
28 #include <tqclipboard.h>
34 m_MainWindow = mainWindow;
41 delete m_dcopActionProxy;
42 delete m_dcopPropertyProxy;
47 delete m_dcopActionProxy;
49 QCStringList tmp_actions;
50 TQValueList<KAction *> lst = m_dcopActionProxy->
actions();
51 TQValueList<KAction *>::ConstIterator it = lst.begin();
52 TQValueList<KAction *>::ConstIterator end = lst.end();
53 for (; it != end; ++it )
54 if ((*it)->isPlugged())
55 tmp_actions.
append( (TQCString)(*it)->name() );
60 delete m_dcopActionProxy;
73 delete m_dcopActionProxy;
86 delete m_dcopActionProxy;
99 delete m_dcopActionProxy;
111 delete m_dcopActionProxy;
116 return tmp_Action->toolTip().utf8();
119 return "Error no such object!";
134 return (
int) m_MainWindow->winId();
138 TQClipboard *clipboard = TQApplication::clipboard();
139 clipboard->setPixmap(TQPixmap::grabWidget(m_MainWindow));
141 void KMainWindowInterface::hide()
143 m_MainWindow->
hide();
145 void KMainWindowInterface::maximize()
147 m_MainWindow->showMaximized();
149 void KMainWindowInterface::minimize()
151 m_MainWindow->showMinimized();
153 void KMainWindowInterface::resize(
int newX,
int newY)
155 m_MainWindow->resize(newX, newY);
157 void KMainWindowInterface::move(
int newX,
int newY)
159 m_MainWindow->move(newX, newY);
161 void KMainWindowInterface::setGeometry(
int newX,
int newY,
int newWidth,
int newHeight)
163 m_MainWindow->setGeometry(newX, newY, newWidth, newHeight);
165 void KMainWindowInterface::raise()
167 m_MainWindow->raise();
169 void KMainWindowInterface::lower()
171 m_MainWindow->lower();
173 void KMainWindowInterface::restore()
175 m_MainWindow->showNormal();
177 void KMainWindowInterface::close()
179 m_MainWindow->close();
181 void KMainWindowInterface::show()
183 m_MainWindow->
show();
185 QCStringList KMainWindowInterface::functionsDynamic()
189 bool KMainWindowInterface::processDynamic(
const TQCString &fun,
const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)