3 #include <q3popupmenu.h>
8 #include <kstdaction.h>
12 #include "dccManager.h"
13 #include "dccToplevel.h"
14 #include "displayMgr.h"
16 extern DisplayMgr
*displayMgr
;
18 #define DTL_WINDOW_ID 10
20 dccTopLevel::dccTopLevel(QWidget
*parent
, const char *name
)
21 : KMainWindow(parent
, name
, Qt::WDestructiveClose
)
23 m_mgr
= new dccManager(this, QByteArray(QObject::name()) + "_dccManager");
25 setCentralWidget(m_mgr
);
27 connect(m_mgr
, SIGNAL(changed(bool, QString
)), this, SIGNAL(changed(bool, QString
)));
29 Q3PopupMenu
*win
= new Q3PopupMenu(this, QByteArray(QObject::name()) + "_popup_window");
30 KAction
*act
= KStdAction::close(this, SLOT( close() ), actionCollection() );
33 menuBar()->insertItem(i18n("&File"), win
, DTL_WINDOW_ID
, -1);
34 menuBar()->setAccel(Qt::Key_F
, DTL_WINDOW_ID
);
39 dccTopLevel::~dccTopLevel()
43 void dccTopLevel::close()
46 displayMgr
->hide(this);
50 #include "dccToplevel.moc"