|
|
|
@ -516,12 +516,14 @@ MainWidget::MainWidget ( TDEAboutData *about, bool tren, TQWidget *parent, const
|
|
|
|
|
bool fnt_autores = cfg->readBoolEntry("autoresfont",true);
|
|
|
|
|
m->setItemChecked(mnu_autores, fnt_autores);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mnu_dock = m->insertItem ( "Dock widget", this, TQT_SLOT ( showDock() ) );
|
|
|
|
|
bool show_dock = cfg->readBoolEntry("showdock",false);
|
|
|
|
|
|
|
|
|
|
m->setItemChecked(mnu_dock, show_dock);
|
|
|
|
|
|
|
|
|
|
mnu_lock = m->insertItem(i18n("Lock on screen"), this, TQT_SLOT(toggleLock()));
|
|
|
|
|
bool is_locked = cfg->readBoolEntry("locked", false);
|
|
|
|
|
m->setItemChecked(mnu_lock, is_locked);
|
|
|
|
|
|
|
|
|
|
//m->insertItem("Configure", this, TQT_SLOT(config()));
|
|
|
|
|
m->insertSeparator();
|
|
|
|
|
m->insertItem ( "Help", h->menu() );
|
|
|
|
@ -728,6 +730,7 @@ void MainWidget::chooseFont()
|
|
|
|
|
if (c)show();
|
|
|
|
|
updateFont();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWidget::quitClicked()
|
|
|
|
|
{
|
|
|
|
|
if (stand_alone)
|
|
|
|
@ -735,6 +738,19 @@ void MainWidget::quitClicked()
|
|
|
|
|
else
|
|
|
|
|
hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWidget::toggleLock()
|
|
|
|
|
{
|
|
|
|
|
bool c = isLocked();
|
|
|
|
|
|
|
|
|
|
tray->contextMenu()->setItemChecked(mnu_lock, !c);
|
|
|
|
|
setLocked(!c);
|
|
|
|
|
|
|
|
|
|
TDEConfig *cfg = TDEApplication::kApplication()->config();
|
|
|
|
|
cfg->writeEntry("locked", !c);
|
|
|
|
|
cfg->sync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWidget::showDock()
|
|
|
|
|
{
|
|
|
|
|
bool c = dock->isShown();
|
|
|
|
|