void Korrent::newToolbarConfig() { // this slot is called when user clicks "Ok" or "Apply" in the toolbar editor. // recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.) createGUI(); applyMainWindowSettings( KGlobal::config(), autoSaveGroup() ); }
void Knmap::slotConfigureToolbars( ) { saveMainWindowSettings( KGlobal::config( ), autoSaveGroup( )); KEditToolbar dlg( actionCollection( )); connect( &dlg, SIGNAL( newToolbarConfig( )),this, SLOT( slotNewToolbarConfig( ))); dlg.exec( ); }
void CervisiaShell::slotConfigureToolBars() { saveMainWindowSettings( KGlobal::config()->group( autoSaveGroup() ) ); KEditToolBar dlg( factory() ); connect(&dlg,SIGNAL(newToolbarConfig()),this,SLOT(slotNewToolbarConfig())); dlg.exec(); }
MainWindow::~MainWindow() { KConfigGroup group = KGlobal::config()->group(autoSaveGroup()); saveMainWindowSettings(group); delete m_settings; delete m_baskets; }
void Korrent::optionsConfigureToolbars() { // use the standard toolbar editor saveMainWindowSettings( KGlobal::config(), autoSaveGroup() ); KEditToolbar dlg(actionCollection()); connect(&dlg, SIGNAL(newToolbarConfig()), this, SLOT(newToolbarConfig())); dlg.exec(); }
void CervisiaShell::slotConfigureToolBars() { KConfigGroup cg(KSharedConfig::openConfig(), autoSaveGroup()); saveMainWindowSettings(cg); KEditToolBar dlg( factory() ); connect(&dlg,SIGNAL(newToolbarConfig()),this,SLOT(slotNewToolbarConfig())); dlg.exec(); }
void KFileReplace::slotConfigureToolbars() { saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); KEditToolbar dlg(factory()); connect(&dlg, SIGNAL(newToolbarConfig()), this, SLOT(applyNewToolbarConfig())); dlg.exec(); }
void MainWindow::slotEditToolbars() { KEditToolbar dlg(guiFactory()); if (dlg.exec()) { //setupGUI(); applyMainWindowSettings( KGlobal::config(), autoSaveGroup() ); } }
void KompareShell::optionsConfigureToolbars() { KConfigGroup group(KSharedConfig::openConfig(), autoSaveGroup()); saveMainWindowSettings(group); // use the standard toolbar editor KEditToolBar dlg(factory()); connect(&dlg,SIGNAL(newToolbarConfig()),this,SLOT(newToolbarConfig())); dlg.exec(); }
void MainWindow::configureToolbars() { KConfigGroup group = KGlobal::config()->group(autoSaveGroup()); saveMainWindowSettings(group); KEditToolBar dlg(actionCollection()); connect(&dlg, SIGNAL(newToolbarConfig()), this, SLOT(slotNewToolbarConfig())); dlg.exec(); }
void MainWindow::toggleStatusBar() { if (statusBar()->isVisible()) statusBar()->hide(); else statusBar()->show(); KConfigGroup group = KGlobal::config()->group(autoSaveGroup()); saveMainWindowSettings(group); }
void Knmap::slotNewToolbarConfig( ) { #ifdef _DEBUG createGUI( QDir::homeDirPath( ) + "/.kde/share/apps/knmap/knmapui.rc" ); #else createGUI( ); #endif applyMainWindowSettings( KGlobal::config( ), autoSaveGroup( )); }
void MainWindow::slotNewToolbarConfig() // This is called when OK or Apply is clicked { // ...if you use any action list, use plugActionList on each here... createGUI("basketui.rc"); // TODO: Reconnect tags menu aboutToShow() ?? if (!Global::bnpView->isPart()) Global::bnpView->connectTagsMenu(); // The Tags menu was created again! // TODO: Does this do anything? plugActionList(QString::fromLatin1("go_baskets_list"), actBasketsList); KConfigGroup group = KGlobal::config()->group(autoSaveGroup()); applyMainWindowSettings(group); }
void k2send::optionsConfigureToolbars() { // use the standard toolbar editor #if defined(KDE_MAKE_VERSION) # if KDE_VERSION >= KDE_MAKE_VERSION(3,1,0) saveMainWindowSettings(KGlobal::config(), autoSaveGroup()); # else saveMainWindowSettings(KGlobal::config()); # endif #else saveMainWindowSettings(KGlobal::config()); #endif }
void k2send::newToolbarConfig() { createGUI(); #if defined(KDE_MAKE_VERSION) # if KDE_VERSION >= KDE_MAKE_VERSION(3,1,0) applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); # else applyMainWindowSettings(KGlobal::config()); # endif #else applyMainWindowSettings(KGlobal::config()); #endif }
void kerp::newToolbarConfig() { // this slot is called when user clicks "Ok" or "Apply" in the toolbar editor. // recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.) createGUI(); #if defined(KDE_MAKE_VERSION) # if KDE_VERSION >= KDE_MAKE_VERSION(3,1,0) applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); # else applyMainWindowSettings(KGlobal::config()); # endif #else applyMainWindowSettings(KGlobal::config()); #endif }
MainWindow::MainWindow(QWidget *parent) : KXmlGuiWindow(parent), m_settings(0), m_quit(false) { BasketStatusBar* bar = new BasketStatusBar(statusBar()); m_baskets = new BNPView(this, "BNPViewApp", this, actionCollection(), bar); setCentralWidget(m_baskets); setupActions(); statusBar()->show(); statusBar()->setSizeGripEnabled(true); setAutoSaveSettings(/*groupName=*/QString::fromLatin1("MainWindow"), /*saveWindowSize=*//*FIXME:false:Why was it false??*/true); // m_actShowToolbar->setChecked( toolBar()->isVisible() ); m_actShowStatusbar->setChecked(statusBar()->isVisible()); connect(m_baskets, SIGNAL(setWindowCaption(const QString &)), this, SLOT(setCaption(const QString &))); // InlineEditors::instance()->richTextToolBar(); setStandardToolBarMenuEnabled(true); createGUI("basketui.rc"); KConfigGroup group = KGlobal::config()->group(autoSaveGroup()); applyMainWindowSettings(group); }
void KompareShell::newToolbarConfig() { KConfigGroup group(KSharedConfig::openConfig(), autoSaveGroup()); applyMainWindowSettings(group); }
void Kooka::newToolbarConfig() { // OK/Apply pressed in the toolbar editor applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); }
void CervisiaShell::slotNewToolbarConfig() { applyMainWindowSettings( KGlobal::config()->group( autoSaveGroup() ) ); }
void CervisiaShell::slotNewToolbarConfig() { KConfigGroup cg(KSharedConfig::openConfig(), autoSaveGroup()); applyMainWindowSettings(cg); }
void KFileReplace::applyNewToolbarConfig() { applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); }