Changeset View
Changeset View
Standalone View
Standalone View
krusader/Konfigurator/konfigurator.cpp
Show All 17 Lines | |||||
18 | * You should have received a copy of the GNU General Public License * | 18 | * You should have received a copy of the GNU General Public License * | ||
19 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | 19 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | ||
20 | *****************************************************************************/ | 20 | *****************************************************************************/ | ||
21 | 21 | | |||
22 | 22 | | |||
23 | 23 | | |||
24 | #include "konfigurator.h" | 24 | #include "konfigurator.h" | ||
25 | #include "../krglobal.h" | 25 | #include "../krglobal.h" | ||
26 | #include "../icon.h" | ||||
26 | #include "../Dialogs/krdialogs.h" | 27 | #include "../Dialogs/krdialogs.h" | ||
27 | #include "../kicons.h" | | |||
28 | 28 | | |||
29 | // QtGui | 29 | // QtGui | ||
30 | #include <QPixmap> | 30 | #include <QPixmap> | ||
31 | #include <QResizeEvent> | 31 | #include <QResizeEvent> | ||
32 | 32 | | |||
33 | #include <KConfigCore/KSharedConfig> | 33 | #include <KConfigCore/KSharedConfig> | ||
34 | #include <KConfigWidgets/KHelpClient> | 34 | #include <KConfigWidgets/KHelpClient> | ||
35 | #include <KI18n/KLocalizedString> | 35 | #include <KI18n/KLocalizedString> | ||
▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 114 | { | |||
119 | 119 | | |||
120 | kgPages.append(item); | 120 | kgPages.append(item); | ||
121 | connect(page, SIGNAL(sigChanged()), this, SLOT(slotApplyEnable())); | 121 | connect(page, SIGNAL(sigChanged()), this, SLOT(slotApplyEnable())); | ||
122 | } | 122 | } | ||
123 | 123 | | |||
124 | void Konfigurator::createLayout(int startPage) | 124 | void Konfigurator::createLayout(int startPage) | ||
125 | { | 125 | { | ||
126 | // startup | 126 | // startup | ||
127 | newPage(new KgStartup(firstTime, this), i18n("Startup"), i18n("Krusader's settings upon startup"), QIcon::fromTheme("go-home")); | 127 | newPage(new KgStartup(firstTime, this), i18n("Startup"), i18n("Krusader's settings upon startup"), Icon("go-home")); | ||
128 | // panel | 128 | // panel | ||
129 | newPage(new KgPanel(firstTime, this), i18n("Panel"), i18n("Panel"), QIcon::fromTheme("view-choose")); | 129 | newPage(new KgPanel(firstTime, this), i18n("Panel"), i18n("Panel"), Icon("view-choose")); | ||
130 | // colors | 130 | // colors | ||
131 | newPage(new KgColors(firstTime, this), i18n("Colors"), i18n("Colors"), QIcon::fromTheme("color-picker")); | 131 | newPage(new KgColors(firstTime, this), i18n("Colors"), i18n("Colors"), Icon("color-picker")); | ||
132 | // general | 132 | // general | ||
133 | newPage(new KgGeneral(firstTime, this), i18n("General"), i18n("Basic Operations"), QIcon::fromTheme("system-run")); | 133 | newPage(new KgGeneral(firstTime, this), i18n("General"), i18n("Basic Operations"), Icon("system-run")); | ||
134 | // advanced | 134 | // advanced | ||
135 | newPage(new KgAdvanced(firstTime, this), i18n("Advanced"), i18n("Be sure you know what you are doing."), QIcon::fromTheme("dialog-messages")); | 135 | newPage(new KgAdvanced(firstTime, this), i18n("Advanced"), i18n("Be sure you know what you are doing."), Icon("dialog-messages")); | ||
136 | // archives | 136 | // archives | ||
137 | newPage(new KgArchives(firstTime, this), i18n("Archives"), i18n("Customize the way Krusader deals with archives"), | 137 | newPage(new KgArchives(firstTime, this), i18n("Archives"), i18n("Customize the way Krusader deals with archives"), | ||
138 | QIcon::fromTheme("archive-extract")); | 138 | Icon("archive-extract")); | ||
139 | // dependencies | 139 | // dependencies | ||
140 | newPage(new KgDependencies(firstTime, this), i18n("Dependencies"), i18n("Set the full path of the external applications"), | 140 | newPage(new KgDependencies(firstTime, this), i18n("Dependencies"), i18n("Set the full path of the external applications"), | ||
141 | QIcon::fromTheme("debug-run")); | 141 | Icon("debug-run")); | ||
142 | // useractions | 142 | // useractions | ||
143 | newPage(new KgUserActions(firstTime, this), i18n("User Actions"), i18n("Configure your personal actions"), | 143 | newPage(new KgUserActions(firstTime, this), i18n("User Actions"), i18n("Configure your personal actions"), | ||
144 | QIcon::fromTheme("user-properties")); | 144 | Icon("user-properties")); | ||
145 | // protocols | 145 | // protocols | ||
146 | newPage(new KgProtocols(firstTime, this), i18n("Protocols"), i18n("Link MIMEs to protocols"), | 146 | newPage(new KgProtocols(firstTime, this), i18n("Protocols"), i18n("Link MIMEs to protocols"), | ||
147 | QIcon::fromTheme("document-preview")); | 147 | Icon("document-preview")); | ||
148 | 148 | | |||
149 | setCurrentPage(kgPages.at(startPage)); | 149 | setCurrentPage(kgPages.at(startPage)); | ||
150 | slotApplyEnable(); | 150 | slotApplyEnable(); | ||
151 | } | 151 | } | ||
152 | 152 | | |||
153 | void Konfigurator::closeEvent(QCloseEvent *event) | 153 | void Konfigurator::closeEvent(QCloseEvent *event) | ||
154 | { | 154 | { | ||
155 | lastPage = currentPage(); | 155 | lastPage = currentPage(); | ||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |