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 #ifndef KEPHAL_NOCONFIGURATIONS_H
22 #define KEPHAL_NOCONFIGURATIONS_H
24 #include "kephal/configurations.h"
29 class NoConfigurations
;
31 class SimpleConfiguration
: public Configuration
{
34 SimpleConfiguration(NoConfigurations
* parent
);
39 QMap
<int, QPoint
> layout();
46 class NoConfigurations
: public Configurations
{
49 NoConfigurations(QObject
* parent
);
51 QMap
<QString
, Configuration
*> configurations();
52 Configuration
* findConfiguration();
53 Configuration
* activeConfiguration();
54 QList
<Configuration
*> alternateConfigurations();
55 QList
<QPoint
> possiblePositions(Output
* output
);
56 bool move(Output
* output
, const QPoint
& position
);
57 bool resize(Output
* output
, const QSize
& size
);
58 bool rotate(Output
* output
, Rotation rotation
);
59 bool changeRate(Output
* output
, float rate
);
60 bool reflectX(Output
* output
, bool reflect
);
61 bool reflectY(Output
* output
, bool reflect
);
62 int screen(Output
* output
);
63 void applyOutputSettings();
64 void setPolling(bool polling
);
70 SimpleConfiguration
* m_config
;
75 #endif // KEPHAL_NOCONFIGURATIONS_H