|
|
@ -123,7 +123,7 @@ void Settings::loadConfig()
|
|
|
|
loadLinkLook(LinkLook::networkLinkLook, "Network Link Look", defaultNetworkLinkLook);
|
|
|
|
loadLinkLook(LinkLook::networkLinkLook, "Network Link Look", defaultNetworkLinkLook);
|
|
|
|
loadLinkLook(LinkLook::launcherLook, "Launcher Look", defaultLauncherLook );
|
|
|
|
loadLinkLook(LinkLook::launcherLook, "Launcher Look", defaultLauncherLook );
|
|
|
|
|
|
|
|
|
|
|
|
KConfig* config = Global::config();
|
|
|
|
TDEConfig* config = Global::config();
|
|
|
|
config->setGroup("Main window"); // TODO: Split with a "System tray icon" group !
|
|
|
|
config->setGroup("Main window"); // TODO: Split with a "System tray icon" group !
|
|
|
|
setTreeOnLeft( config->readBoolEntry("treeOnLeft", true) );
|
|
|
|
setTreeOnLeft( config->readBoolEntry("treeOnLeft", true) );
|
|
|
|
setFilterOnTop( config->readBoolEntry("filterOnTop", true) );
|
|
|
|
setFilterOnTop( config->readBoolEntry("filterOnTop", true) );
|
|
|
@ -207,7 +207,7 @@ void Settings::saveConfig()
|
|
|
|
saveLinkLook(LinkLook::networkLinkLook, "Network Link Look");
|
|
|
|
saveLinkLook(LinkLook::networkLinkLook, "Network Link Look");
|
|
|
|
saveLinkLook(LinkLook::launcherLook, "Launcher Look" );
|
|
|
|
saveLinkLook(LinkLook::launcherLook, "Launcher Look" );
|
|
|
|
|
|
|
|
|
|
|
|
KConfig* config = Global::config();
|
|
|
|
TDEConfig* config = Global::config();
|
|
|
|
config->setGroup("Main window");
|
|
|
|
config->setGroup("Main window");
|
|
|
|
config->writeEntry( "treeOnLeft", treeOnLeft() );
|
|
|
|
config->writeEntry( "treeOnLeft", treeOnLeft() );
|
|
|
|
config->writeEntry( "filterOnTop", filterOnTop() );
|
|
|
|
config->writeEntry( "filterOnTop", filterOnTop() );
|
|
|
@ -272,7 +272,7 @@ void Settings::saveConfig()
|
|
|
|
|
|
|
|
|
|
|
|
void Settings::loadLinkLook(LinkLook *look, const TQString &name, const LinkLook &defaultLook)
|
|
|
|
void Settings::loadLinkLook(LinkLook *look, const TQString &name, const LinkLook &defaultLook)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KConfig* config = Global::config();
|
|
|
|
TDEConfig* config = Global::config();
|
|
|
|
config->setGroup(name);
|
|
|
|
config->setGroup(name);
|
|
|
|
|
|
|
|
|
|
|
|
TQString underliningStrings[] = { "Always", "Never", "OnMouseHover", "OnMouseOutside" };
|
|
|
|
TQString underliningStrings[] = { "Always", "Never", "OnMouseHover", "OnMouseOutside" };
|
|
|
@ -304,7 +304,7 @@ void Settings::loadLinkLook(LinkLook *look, const TQString &name, const LinkLook
|
|
|
|
|
|
|
|
|
|
|
|
void Settings::saveLinkLook(LinkLook *look, const TQString &name)
|
|
|
|
void Settings::saveLinkLook(LinkLook *look, const TQString &name)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KConfig* config = Global::config();
|
|
|
|
TDEConfig* config = Global::config();
|
|
|
|
config->setGroup(name);
|
|
|
|
config->setGroup(name);
|
|
|
|
|
|
|
|
|
|
|
|
TQString underliningStrings[] = { "Always", "Never", "OnMouseHover", "OnMouseOutside" };
|
|
|
|
TQString underliningStrings[] = { "Always", "Never", "OnMouseHover", "OnMouseOutside" };
|
|
|
@ -355,7 +355,7 @@ void Settings::setAutoBullet(bool yes)
|
|
|
|
/** GeneralPage */
|
|
|
|
/** GeneralPage */
|
|
|
|
|
|
|
|
|
|
|
|
GeneralPage::GeneralPage(TQWidget * parent, const char * name)
|
|
|
|
GeneralPage::GeneralPage(TQWidget * parent, const char * name)
|
|
|
|
: KCModule(parent, name)
|
|
|
|
: TDECModule(parent, name)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
|
|
|
|
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
|
|
|
|
TQHBoxLayout *hLay;
|
|
|
|
TQHBoxLayout *hLay;
|
|
|
@ -500,7 +500,7 @@ void GeneralPage::defaults()
|
|
|
|
/** BasketsPage */
|
|
|
|
/** BasketsPage */
|
|
|
|
|
|
|
|
|
|
|
|
BasketsPage::BasketsPage(TQWidget * parent, const char * name)
|
|
|
|
BasketsPage::BasketsPage(TQWidget * parent, const char * name)
|
|
|
|
: KCModule(parent, name)
|
|
|
|
: TDECModule(parent, name)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
|
|
|
|
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
|
|
|
|
TQHBoxLayout *hLay;
|
|
|
|
TQHBoxLayout *hLay;
|
|
|
@ -680,7 +680,7 @@ void BasketsPage::defaults()
|
|
|
|
/** class NewNotesPage: */
|
|
|
|
/** class NewNotesPage: */
|
|
|
|
|
|
|
|
|
|
|
|
NewNotesPage::NewNotesPage(TQWidget * parent, const char * name)
|
|
|
|
NewNotesPage::NewNotesPage(TQWidget * parent, const char * name)
|
|
|
|
: KCModule(parent, name)
|
|
|
|
: TDECModule(parent, name)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
|
|
|
|
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
|
|
|
|
TQHBoxLayout *hLay;
|
|
|
|
TQHBoxLayout *hLay;
|
|
|
@ -788,7 +788,7 @@ void NewNotesPage::visualize()
|
|
|
|
/** class NotesAppearancePage: */
|
|
|
|
/** class NotesAppearancePage: */
|
|
|
|
|
|
|
|
|
|
|
|
NotesAppearancePage::NotesAppearancePage(TQWidget * parent, const char * name)
|
|
|
|
NotesAppearancePage::NotesAppearancePage(TQWidget * parent, const char * name)
|
|
|
|
: KCModule(parent, name)
|
|
|
|
: TDECModule(parent, name)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
|
|
|
|
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
|
|
|
|
TQTabWidget *tabs = new TQTabWidget(this);
|
|
|
|
TQTabWidget *tabs = new TQTabWidget(this);
|
|
|
@ -835,7 +835,7 @@ void NotesAppearancePage::defaults()
|
|
|
|
/** class ApplicationsPage: */
|
|
|
|
/** class ApplicationsPage: */
|
|
|
|
|
|
|
|
|
|
|
|
ApplicationsPage::ApplicationsPage(TQWidget * parent, const char * name)
|
|
|
|
ApplicationsPage::ApplicationsPage(TQWidget * parent, const char * name)
|
|
|
|
: KCModule(parent, name)
|
|
|
|
: TDECModule(parent, name)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/* Applications page */
|
|
|
|
/* Applications page */
|
|
|
|
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
|
|
|
|
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
|
|
|
|