- some minor naming cleanups
BUG: 145168
svn path=/trunk/KDE/kdebase/apps/; revision=665964
<label>Split the view into two panes</label>
<default>false</default>
</entry>
<label>Split the view into two panes</label>
<default>false</default>
</entry>
+ <entry name="FilterBar" type="Bool">
+ <label>Should the filter bar be shown</label>
+ <default>false</default>
+ </entry>
<entry name="GlobalViewProps" type="Bool">
<label>Should the view properties used for all directories</label>
<default>false</default>
<entry name="GlobalViewProps" type="Bool">
<label>Should the view properties used for all directories</label>
<default>false</default>
this, SLOT(updateCutItems()));
m_urlNavigator = new KUrlNavigator(DolphinSettings::instance().placesModel(), url, this);
this, SLOT(updateCutItems()));
m_urlNavigator = new KUrlNavigator(DolphinSettings::instance().placesModel(), url, this);
- m_urlNavigator->setUrlEditable(DolphinSettings::instance().generalSettings()->editableUrl());
- m_urlNavigator->setHomeUrl(DolphinSettings::instance().generalSettings()->homeUrl());
+
+ const GeneralSettings* settings = DolphinSettings::instance().generalSettings();
+ m_urlNavigator->setUrlEditable(settings->editableUrl());
+ m_urlNavigator->setHomeUrl(settings->homeUrl());
+
connect(m_urlNavigator, SIGNAL(urlChanged(const KUrl&)),
this, SLOT(changeDirectory(const KUrl&)));
connect(m_urlNavigator, SIGNAL(urlsDropped(const KUrl::List&, const KUrl&)),
connect(m_urlNavigator, SIGNAL(urlChanged(const KUrl&)),
this, SLOT(changeDirectory(const KUrl&)));
connect(m_urlNavigator, SIGNAL(urlsDropped(const KUrl::List&, const KUrl&)),
m_iconSize = K3Icon::SizeMedium;
m_filterBar = new FilterBar(this);
m_iconSize = K3Icon::SizeMedium;
m_filterBar = new FilterBar(this);
+ m_filterBar->setVisible(settings->filterBar());
connect(m_filterBar, SIGNAL(filterChanged(const QString&)),
this, SLOT(changeNameFilter(const QString&)));
connect(m_filterBar, SIGNAL(closeRequest()),
connect(m_filterBar, SIGNAL(filterChanged(const QString&)),
this, SLOT(changeNameFilter(const QString&)));
connect(m_filterBar, SIGNAL(closeRequest()),
SettingsPageBase(parent),
m_mainWindow(mainWin),
m_homeUrl(0),
SettingsPageBase(parent),
m_mainWindow(mainWin),
m_homeUrl(0),
- m_startSplit(0),
- m_startEditable(0),
+ m_splitView(0),
+ m_editableUrl(0),
+ m_filterBar(0),
m_showDeleteCommand(0)
{
const int spacing = KDialog::spacingHint();
m_showDeleteCommand(0)
{
const int spacing = KDialog::spacingHint();
QGroupBox* startBox = new QGroupBox(i18n("Start"), vBox);
QGroupBox* startBox = new QGroupBox(i18n("Start"), vBox);
- // create 'Start with split view' checkbox
- m_startSplit = new QCheckBox(i18n("Start with split view"), startBox);
- m_startSplit->setChecked(settings->splitView());
+ // create 'Split view' checkbox
+ m_splitView = new QCheckBox(i18n("Split view"), startBox);
+ m_splitView->setChecked(settings->splitView());
- // create 'Start with editable navigation bar' checkbox
- m_startEditable = new QCheckBox(i18n("Start with editable navigation bar"), startBox);
- m_startEditable->setChecked(settings->editableUrl());
+ // create 'Editable location' checkbox
+ m_editableUrl = new QCheckBox(i18n("Editable location"), startBox);
+ m_editableUrl->setChecked(settings->editableUrl());
+
+ // create 'Filter bar' checkbox
+ m_filterBar = new QCheckBox(i18n("Filter bar"),startBox);
+ m_filterBar->setChecked(settings->filterBar());
QVBoxLayout* startBoxLayout = new QVBoxLayout(startBox);
QVBoxLayout* startBoxLayout = new QVBoxLayout(startBox);
- startBoxLayout->addWidget(m_startSplit);
- startBoxLayout->addWidget(m_startEditable);
+ startBoxLayout->addWidget(m_splitView);
+ startBoxLayout->addWidget(m_editableUrl);
+ startBoxLayout->addWidget(m_filterBar);
m_showDeleteCommand = new QCheckBox(i18n("Show the command 'Delete' in context menu"), vBox);
const KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::NoGlobals);
m_showDeleteCommand = new QCheckBox(i18n("Show the command 'Delete' in context menu"), vBox);
const KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::NoGlobals);
settings->setHomeUrl(url.prettyUrl());
}
settings->setHomeUrl(url.prettyUrl());
}
- settings->setSplitView(m_startSplit->isChecked());
- settings->setEditableUrl(m_startEditable->isChecked());
+ settings->setSplitView(m_splitView->isChecked());
+ settings->setEditableUrl(m_editableUrl->isChecked());
+ settings->setFilterBar(m_filterBar->isChecked());
KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::NoGlobals);
KConfigGroup kdeConfig(globalConfig, "KDE");
KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals", KConfig::NoGlobals);
KConfigGroup kdeConfig(globalConfig, "KDE");
private:
DolphinMainWindow* m_mainWindow;
QLineEdit* m_homeUrl;
private:
DolphinMainWindow* m_mainWindow;
QLineEdit* m_homeUrl;
- QCheckBox* m_startSplit;
- QCheckBox* m_startEditable;
+ QCheckBox* m_splitView;
+ QCheckBox* m_editableUrl;
+ QCheckBox* m_filterBar;
QCheckBox* m_showDeleteCommand;
};
QCheckBox* m_showDeleteCommand;
};