not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / libs / kephal / configurations / noconfigurations.cpp
blob3f4843d8f7d3ad43c5cba0438dbe6922f403fbe5
1 /*
2 * Copyright 2008 Aike J Sommer <dev@aikesommer.name>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2,
7 * or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #include "noconfigurations.h"
24 namespace Kephal {
26 SimpleConfiguration::SimpleConfiguration(NoConfigurations * parent)
27 : Configuration(parent)
31 QString SimpleConfiguration::name() {
32 return "simple";
35 bool SimpleConfiguration::isModifiable() {
36 return false;
39 bool SimpleConfiguration::isActivated() {
40 return true;
43 QMap<int, QPoint> SimpleConfiguration::layout() {
44 return QMap<int, QPoint>();
47 void SimpleConfiguration::activate() {
50 int SimpleConfiguration::primaryScreen() {
51 return 0;
56 NoConfigurations::NoConfigurations(QObject * parent)
57 : Configurations(parent)
59 m_config = new SimpleConfiguration(this);
62 QMap<QString, Configuration *> NoConfigurations::configurations() {
63 QMap<QString, Configuration *> result;
64 result.insert(m_config->name(), m_config);
65 return result;
68 Configuration * NoConfigurations::findConfiguration() {
69 return m_config;
72 Configuration * NoConfigurations::activeConfiguration() {
73 return m_config;
76 QList<Configuration *> NoConfigurations::alternateConfigurations() {
77 return QList<Configuration *>();
80 QList<QPoint> NoConfigurations::possiblePositions(Output * output) {
81 Q_UNUSED(output)
82 return QList<QPoint>();
85 bool NoConfigurations::move(Output * output, const QPoint & position) {
86 Q_UNUSED(output)
87 Q_UNUSED(position)
88 return false;
91 bool NoConfigurations::resize(Output * output, const QSize & size) {
92 Q_UNUSED(output)
93 Q_UNUSED(size)
94 return false;
97 int NoConfigurations::screen(Output * output) {
98 Q_UNUSED(output)
99 return -1;
102 void NoConfigurations::applyOutputSettings() {
105 bool NoConfigurations::rotate(Output * output, Rotation rotation) {
106 Q_UNUSED(output)
107 Q_UNUSED(rotation)
108 return false;
111 bool NoConfigurations::changeRate(Output * output, float rate) {
112 Q_UNUSED(output)
113 Q_UNUSED(rate)
114 return false;
117 bool NoConfigurations::reflectX(Output * output, bool reflect) {
118 Q_UNUSED(output)
119 Q_UNUSED(reflect)
120 return false;
123 bool NoConfigurations::reflectY(Output * output, bool reflect) {
124 Q_UNUSED(output)
125 Q_UNUSED(reflect)
126 return false;
129 void NoConfigurations::setPolling(bool polling) {
130 Q_UNUSED(polling)
133 bool NoConfigurations::polling() {
134 return false;
137 void NoConfigurations::confirm() {
140 void NoConfigurations::revert() {