|
|
@ -332,6 +332,11 @@ void KMJobViewer::initActions()
|
|
|
|
// create status bar
|
|
|
|
// create status bar
|
|
|
|
KStatusBar *statusbar = statusBar();
|
|
|
|
KStatusBar *statusbar = statusBar();
|
|
|
|
m_stickybox = new TQCheckBox( i18n( "Keep window permanent" ), statusbar );
|
|
|
|
m_stickybox = new TQCheckBox( i18n( "Keep window permanent" ), statusbar );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TDEConfig *conf = KMFactory::self()->printConfig();
|
|
|
|
|
|
|
|
conf->setGroup("Jobs");
|
|
|
|
|
|
|
|
m_stickybox->setChecked(conf->readBoolEntry("KeepWindow",true));
|
|
|
|
|
|
|
|
connect(m_stickybox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotKeepWindowChange(bool)));
|
|
|
|
statusbar->addWidget( m_stickybox, 1, false );
|
|
|
|
statusbar->addWidget( m_stickybox, 1, false );
|
|
|
|
statusbar->insertItem(" " + i18n("Max.: %1").arg(i18n("Unlimited"))+ " ", 0, 0, true);
|
|
|
|
statusbar->insertItem(" " + i18n("Max.: %1").arg(i18n("Unlimited"))+ " ", 0, 0, true);
|
|
|
|
statusbar->setItemFixed(0);
|
|
|
|
statusbar->setItemFixed(0);
|
|
|
@ -365,6 +370,13 @@ void KMJobViewer::buildPrinterMenu(TQPopupMenu *menu, bool use_all, bool use_spe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void KMJobViewer::slotKeepWindowChange( bool val )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
TDEConfig *conf = KMFactory::self()->printConfig();
|
|
|
|
|
|
|
|
conf->setGroup("Jobs");
|
|
|
|
|
|
|
|
conf->writeEntry("KeepWindow",val);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void KMJobViewer::slotShowMoveMenu()
|
|
|
|
void KMJobViewer::slotShowMoveMenu()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQPopupMenu *menu = static_cast<TDEActionMenu*>(actionCollection()->action("job_move"))->popupMenu();
|
|
|
|
TQPopupMenu *menu = static_cast<TDEActionMenu*>(actionCollection()->action("job_move"))->popupMenu();
|
|
|
|