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"
26 SimpleConfiguration::SimpleConfiguration(NoConfigurations
* parent
)
27 : Configuration(parent
)
31 QString
SimpleConfiguration::name() {
35 bool SimpleConfiguration::isModifiable() {
39 bool SimpleConfiguration::isActivated() {
43 QMap
<int, QPoint
> SimpleConfiguration::layout() {
44 return QMap
<int, QPoint
>();
47 void SimpleConfiguration::activate() {
50 int SimpleConfiguration::primaryScreen() {
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
);
68 Configuration
* NoConfigurations::findConfiguration() {
72 Configuration
* NoConfigurations::activeConfiguration() {
76 QList
<Configuration
*> NoConfigurations::alternateConfigurations() {
77 return QList
<Configuration
*>();
80 QList
<QPoint
> NoConfigurations::possiblePositions(Output
* output
) {
82 return QList
<QPoint
>();
85 bool NoConfigurations::move(Output
* output
, const QPoint
& position
) {
91 bool NoConfigurations::resize(Output
* output
, const QSize
& size
) {
97 int NoConfigurations::screen(Output
* output
) {
102 void NoConfigurations::applyOutputSettings() {
105 bool NoConfigurations::rotate(Output
* output
, Rotation rotation
) {
111 bool NoConfigurations::changeRate(Output
* output
, float rate
) {
117 bool NoConfigurations::reflectX(Output
* output
, bool reflect
) {
123 bool NoConfigurations::reflectY(Output
* output
, bool reflect
) {
129 void NoConfigurations::setPolling(bool polling
) {
133 bool NoConfigurations::polling() {
137 void NoConfigurations::confirm() {
140 void NoConfigurations::revert() {