Changeset View
Changeset View
Standalone View
Standalone View
effects/desktopgrid/desktopgrid_config.cpp
Show All 16 Lines | |||||
17 | 17 | | |||
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 this program. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
20 | *********************************************************************/ | 20 | *********************************************************************/ | ||
21 | 21 | | |||
22 | #include "desktopgrid_config.h" | 22 | #include "desktopgrid_config.h" | ||
23 | // KConfigSkeleton | 23 | // KConfigSkeleton | ||
24 | #include "desktopgridconfig.h" | 24 | #include "desktopgridconfig.h" | ||
25 | #include <config-kwin.h> | ||||
25 | #include <kwineffects_interface.h> | 26 | #include <kwineffects_interface.h> | ||
26 | 27 | | |||
27 | #include <QAction> | 28 | #include <QAction> | ||
28 | 29 | | |||
29 | #include <kconfiggroup.h> | 30 | #include <kconfiggroup.h> | ||
30 | #include <KActionCollection> | 31 | #include <KActionCollection> | ||
31 | #include <KAboutData> | 32 | #include <KAboutData> | ||
32 | #include <KGlobalAccel> | 33 | #include <KGlobalAccel> | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 53 | { | |||
78 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Right"), QVariant(Qt::AlignRight | Qt::AlignVCenter)); | 79 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Right"), QVariant(Qt::AlignRight | Qt::AlignVCenter)); | ||
79 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Bottom-Right"), QVariant(Qt::AlignRight | Qt::AlignBottom)); | 80 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Bottom-Right"), QVariant(Qt::AlignRight | Qt::AlignBottom)); | ||
80 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Bottom"), QVariant(Qt::AlignHCenter | Qt::AlignBottom)); | 81 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Bottom"), QVariant(Qt::AlignHCenter | Qt::AlignBottom)); | ||
81 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Bottom-Left"), QVariant(Qt::AlignLeft | Qt::AlignBottom)); | 82 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Bottom-Left"), QVariant(Qt::AlignLeft | Qt::AlignBottom)); | ||
82 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Left"), QVariant(Qt::AlignLeft | Qt::AlignVCenter)); | 83 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Left"), QVariant(Qt::AlignLeft | Qt::AlignVCenter)); | ||
83 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Top-Left"), QVariant(Qt::AlignLeft | Qt::AlignTop)); | 84 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Top-Left"), QVariant(Qt::AlignLeft | Qt::AlignTop)); | ||
84 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Center"), QVariant(Qt::AlignCenter)); | 85 | m_ui->desktopNameAlignmentCombo->addItem(i18n("Center"), QVariant(Qt::AlignCenter)); | ||
85 | 86 | | |||
87 | DesktopGridConfig::instance(KWIN_CONFIG); | ||||
86 | addConfig(DesktopGridConfig::self(), m_ui); | 88 | addConfig(DesktopGridConfig::self(), m_ui); | ||
87 | connect(m_ui->kcfg_LayoutMode, SIGNAL(currentIndexChanged(int)), this, SLOT(layoutSelectionChanged())); | 89 | connect(m_ui->kcfg_LayoutMode, SIGNAL(currentIndexChanged(int)), this, SLOT(layoutSelectionChanged())); | ||
88 | connect(m_ui->desktopNameAlignmentCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(changed())); | 90 | connect(m_ui->desktopNameAlignmentCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(changed())); | ||
89 | connect(m_ui->shortcutEditor, SIGNAL(keyChange()), this, SLOT(changed())); | 91 | connect(m_ui->shortcutEditor, SIGNAL(keyChange()), this, SLOT(changed())); | ||
90 | 92 | | |||
91 | load(); | 93 | load(); | ||
92 | layoutSelectionChanged(); | 94 | layoutSelectionChanged(); | ||
93 | } | 95 | } | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |