MenuMedia::MenuMedia() : KPanelMenu( QString::null, 0, "Media" ), mMenuId(0) { disableAutoClear(); setCaption(i18n("Media Menu")); m_DirLister = new KDirLister(); connect( m_DirLister, SIGNAL( clear() ), this, SLOT( slotClear() ) ); connect( m_DirLister, SIGNAL( started(const KURL&) ), this, SLOT( slotStarted(const KURL&) ) ); connect( m_DirLister, SIGNAL( completed() ), this, SLOT( slotCompleted() ) ); connect( m_DirLister, SIGNAL( newItems( const KFileItemList & ) ), this, SLOT( slotNewItems( const KFileItemList & ) ) ); connect( m_DirLister, SIGNAL( deleteItem( KFileItem * ) ), this, SLOT( slotDeleteItem( KFileItem * ) ) ); connect( m_DirLister, SIGNAL( refreshItems( const KFileItemList & ) ), this, SLOT( slotRefreshItems( const KFileItemList & ) ) ); m_ExcludedTypesList.clear(); m_ExcludedTypesList << "media/hdd_mounted"; m_ExcludedTypesList << "media/hdd_unmounted"; m_ExcludedTypesList << "media/nfs_mounted"; m_ExcludedTypesList << "media/nfs_unmounted"; m_ExcludedTypesList << "media/smb_mounted"; m_ExcludedTypesList << "media/smb_unmounted"; }
MenuActions::MenuActions() : KPanelMenu( QString::null, 0, "Actions" ) , m_sessionsMenu( 0 ) { disableAutoClear(); setCaption(i18n("Actions Menu")); }
PanelKMenu::PanelKMenu() : PanelServiceMenu(QString(), QString(), 0, "KMenu") , bookmarkMenu(0) { // set the first client id to some arbitrarily large value. client_id = 10000; // Don't automatically clear the main menu. disableAutoClear(); actionCollection = new KActionCollection(this); setWindowTitle(i18n("K Menu")); connect(Kicker::self(), SIGNAL(configurationChanged()), this, SLOT(configChanged())); /* FIXME: we need a proper way to file recent app/doc usage DCOPClient *dcopClient = KApplication::dcopClient(); dcopClient->connectDCOPSignal(0, "appLauncher", "serviceStartedByStorageId(QString,QString)", dcopObjId, "slotServiceStartedByStorageId(QString,QString)", false); */ }
PanelKMenu::PanelKMenu() : PanelServiceMenu(QString::null, QString::null, 0, "KMenu") , bookmarkMenu(0) , bookmarkOwner(0) { static const QCString dcopObjId("KMenu"); DCOPObject::setObjId(dcopObjId); // set the first client id to some arbitrarily large value. client_id = 10000; // Don't automatically clear the main menu. disableAutoClear(); actionCollection = new KActionCollection(this); setCaption(i18n("K Menu")); connect(Kicker::the(), SIGNAL(configurationChanged()), this, SLOT(configChanged())); DCOPClient *dcopClient = KApplication::dcopClient(); dcopClient->connectDCOPSignal(0, "appLauncher", "serviceStartedByStorageId(QString,QString)", dcopObjId, "slotServiceStartedByStorageId(QString,QString)", false); }