20 #include "tdemainwindowiface.h"
22 #include <dcopclient.h>
23 #include <tdeapplication.h>
24 #include <kdcopactionproxy.h>
25 #include <kdcoppropertyproxy.h>
26 #include <tdemainwindow.h>
27 #include <tdeaction.h>
28 #include <tqclipboard.h>
35 m_MainWindow = mainWindow;
42 delete m_dcopActionProxy;
43 delete m_dcopPropertyProxy;
48 delete m_dcopActionProxy;
50 QCStringList tmp_actions;
51 TQValueList<TDEAction *> lst = m_dcopActionProxy->
actions();
52 TQValueList<TDEAction *>::ConstIterator it = lst.begin();
53 TQValueList<TDEAction *>::ConstIterator end = lst.end();
54 for (; it != end; ++it )
55 if ((*it)->isPlugged())
56 tmp_actions.
append( (TQCString)(*it)->name() );
61 delete m_dcopActionProxy;
74 delete m_dcopActionProxy;
87 delete m_dcopActionProxy;
100 delete m_dcopActionProxy;
112 delete m_dcopActionProxy;
117 return tmp_Action->
toolTip().utf8();
120 return "Error no such object!";
135 return (
int) m_MainWindow->winId();
139 TQClipboard *clipboard = TQApplication::clipboard();
140 clipboard->setPixmap(TQPixmap::grabWidget(m_MainWindow));
142 void TDEMainWindowInterface::hide()
144 m_MainWindow->
hide();
146 void TDEMainWindowInterface::maximize()
148 m_MainWindow->showMaximized();
150 void TDEMainWindowInterface::minimize()
152 m_MainWindow->showMinimized();
154 void TDEMainWindowInterface::resize(
int newX,
int newY)
156 m_MainWindow->resize(newX, newY);
158 void TDEMainWindowInterface::move(
int newX,
int newY)
160 m_MainWindow->move(newX, newY);
162 void TDEMainWindowInterface::setGeometry(
int newX,
int newY,
int newWidth,
int newHeight)
164 m_MainWindow->setGeometry(newX, newY, newWidth, newHeight);
166 void TDEMainWindowInterface::raise()
168 m_MainWindow->raise();
170 void TDEMainWindowInterface::lower()
172 m_MainWindow->lower();
174 void TDEMainWindowInterface::restore()
176 m_MainWindow->showNormal();
178 void TDEMainWindowInterface::close()
180 m_MainWindow->close();
182 void TDEMainWindowInterface::show()
184 m_MainWindow->
show();
186 void TDEMainWindowInterface::setActiveWindow()
188 m_MainWindow->setActiveWindow();
190 void TDEMainWindowInterface::setActiveWindowFocused()
193 m_MainWindow->raise();
194 m_MainWindow->setActiveWindow();
199 QCStringList TDEMainWindowInterface::functionsDynamic()
203 bool TDEMainWindowInterface::processDynamic(
const TQCString &fun,
const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)