Changeset View
Changeset View
Standalone View
Standalone View
src/gtkconfigkcmodule.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | 42 | | |||
43 | K_PLUGIN_FACTORY_WITH_JSON(GTKConfigKCModuleFactory, "kde-gtk-config.json", registerPlugin<GTKConfigKCModule>();) | 43 | K_PLUGIN_FACTORY_WITH_JSON(GTKConfigKCModuleFactory, "kde-gtk-config.json", registerPlugin<GTKConfigKCModule>();) | ||
44 | 44 | | |||
45 | QMap<QString, int> gtkToolbarInit() | 45 | QMap<QString, int> gtkToolbarInit() | ||
46 | { | 46 | { | ||
47 | QMap<QString, int> gtkToolbar; | 47 | QMap<QString, int> gtkToolbar; | ||
48 | gtkToolbar["GTK_TOOLBAR_ICONS"] = 0; | 48 | gtkToolbar["GTK_TOOLBAR_ICONS"] = 0; | ||
49 | gtkToolbar["GTK_TOOLBAR_TEXT"] = 1; | 49 | gtkToolbar["GTK_TOOLBAR_TEXT"] = 1; | ||
50 | gtkToolbar["GTK_TOOLBAR_BOTH"] = 2; | 50 | gtkToolbar["GTK_TOOLBAR_BOTH_HORIZ"] = 2; | ||
51 | gtkToolbar["GTK_TOOLBAR_BOTH_HORIZ"] = 3; | 51 | gtkToolbar["GTK_TOOLBAR_BOTH"] = 3; | ||
52 | return gtkToolbar; | 52 | return gtkToolbar; | ||
53 | } | 53 | } | ||
54 | 54 | | |||
55 | static QMap<QString, int> gtkToolbar = gtkToolbarInit(); | 55 | static QMap<QString, int> gtkToolbar = gtkToolbarInit(); | ||
56 | 56 | | |||
57 | GTKConfigKCModule::GTKConfigKCModule(QWidget* parent, const QVariantList& args ) | 57 | GTKConfigKCModule::GTKConfigKCModule(QWidget* parent, const QVariantList& args ) | ||
58 | : KCModule(parent) | 58 | : KCModule(parent) | ||
59 | , ui(new Ui::GUI) | 59 | , ui(new Ui::GUI) | ||
60 | , installer(0) | 60 | , installer(0) | ||
61 | , uninstaller(0) | 61 | , uninstaller(0) | ||
62 | , m_saveEnabled(true) | 62 | , m_saveEnabled(true) | ||
63 | { | 63 | { | ||
64 | Q_UNUSED(args); | 64 | Q_UNUSED(args); | ||
65 | KAboutData *acercade = new KAboutData("cgc", i18n("KDE GTK Config"), PROJECT_VERSION, | 65 | KAboutData *acercade = new KAboutData("cgc", i18n("GTK Application Style"), PROJECT_VERSION, | ||
66 | i18n("Configure your GTK Applications"), | 66 | QString(), KAboutLicense::LGPL_V3, i18n("Copyright 2011 José Antonio Sánchez Reynaga")); | ||
apol: Unrelated. | |||||
GB_2: This is making it consistent with other KCMs. | |||||
apol: That's fine, but you can do it in a separate patch. | |||||
I'm already updating the strings here. I always did this in other KCMs too. GB_2: I'm already updating the strings here. I always did this in other KCMs too. | |||||
67 | KAboutLicense::LGPL_V3, | | |||
68 | i18n("Copyright 2011 José Antonio Sánchez Reynaga")); | | |||
69 | acercade->addAuthor(i18n("José Antonio Sánchez Reynaga (antonioJASR)"),i18n("Main Developer"), "joanzare@gmail.com"); | 67 | acercade->addAuthor(i18n("José Antonio Sánchez Reynaga (antonioJASR)"),i18n("Main Developer"), "joanzare@gmail.com"); | ||
70 | acercade->addAuthor(i18n("Aleix Pol i Gonzalez"), i18n("Feature development. Previews, code refactoring."), "aleixpol@blue-systems.com"); | 68 | acercade->addAuthor(i18n("Aleix Pol i Gonzalez"), i18n("Feature development. Previews, code refactoring."), "aleixpol@blue-systems.com"); | ||
71 | acercade->addCredit(i18n("Manuel Tortosa (manutortosa)"), i18n("Ideas, tester, internationalization")); | 69 | acercade->addCredit(i18n("Manuel Tortosa (manutortosa)"), i18n("Ideas, tester, internationalization")); | ||
72 | acercade->addCredit(i18n("Adrián Chaves Fernández (Gallaecio)"), i18n("Internationalization")); | 70 | acercade->addCredit(i18n("Adrián Chaves Fernández (Gallaecio)"), i18n("Internationalization")); | ||
73 | setAboutData(acercade); | 71 | setAboutData(acercade); | ||
74 | setButtons(KCModule::Default | KCModule::Apply); | 72 | setButtons(KCModule::Default | KCModule::Apply); | ||
75 | ui->setupUi(this); | 73 | ui->setupUi(this); | ||
76 | appareance = new AppearenceGTK; | 74 | appareance = new AppearenceGTK; | ||
▲ Show 20 Lines • Show All 462 Lines • Show Last 20 Lines |
Unrelated.