2 * Copyright (c) 2007 Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
3 * Copyright (c) 2007 Harry Bock <hbock@providence.edu>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef __RANDRCONFIG_H__
21 #define __RANDRCONFIG_H__
23 #include "ui_randrconfigbase.h"
30 class SettingsContainer
;
31 class CollapsibleWidget
;
35 class OutputGraphicsItem
;
38 class RandRConfig
: public QWidget
, public Ui::RandRConfigBase
42 RandRConfig(QWidget
*parent
, RandRDisplay
*display
);
43 virtual ~RandRConfig();
53 void slotUpdateView();
56 void slotChanged(void);
57 void slotAdjustOutput(OutputGraphicsItem
*o
);
58 void identifyOutputs();
59 void clearIndicators();
62 void changed(bool change
);
65 virtual bool eventFilter(QObject
*obj
, QEvent
*event
);
68 RandRDisplay
*m_display
;
72 SettingsContainer
*m_container
;
73 QList
<CollapsibleWidget
*> m_outputList
;
74 QGraphicsScene
*m_scene
;
75 LayoutManager
*m_layoutManager
;
76 QList
<QWidget
*> m_indicators
;