summaryrefslogtreecommitdiffstats
path: root/kcontrol/displayconfig/displayconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/displayconfig/displayconfig.h')
-rw-r--r--kcontrol/displayconfig/displayconfig.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/kcontrol/displayconfig/displayconfig.h b/kcontrol/displayconfig/displayconfig.h
index 8f7681c81..8cb47940c 100644
--- a/kcontrol/displayconfig/displayconfig.h
+++ b/kcontrol/displayconfig/displayconfig.h
@@ -44,6 +44,8 @@ class KConfig;
class KPopupMenu;
class KListViewItem;
+typedef TQMap< TQString, TQPtrList< SingleScreenData > > ScreenConfigurationMap;
+
class KDisplayConfig : public KCModule, public DCOPObject
{
K_DCOP
@@ -79,13 +81,13 @@ private:
TQStringList cfgProfiles;
void refreshDisplayedInformation ();
void updateDisplayedInformation ();
- TQString extractFileName(TQString displayName, TQString profileName);
TQString *displayFileArray;
int findProfileIndex(TQString profileName);
- int findScreenIndex(TQString screenName);
TQString m_defaultProfile;
KRandrSimpleAPI *m_randrsimple;
- TQPtrList<SingleScreenData> m_screenInfoArray;
+ ScreenConfigurationMap m_screenInfoArray;
+ TQString activeProfileName;
+ TQString startupProfileName;
int realResolutionSliderValue();
void setRealResolutionSliderValue(int index);
KCModule* addTab( const TQString name, const TQString label );
@@ -97,6 +99,14 @@ private:
void gammaSetAverageAllSlider();
void setGammaLabels();
void generateSortedResolutions();
+ void loadProfileFromDiskHelper(bool forceReload = false);
+ void saveActiveSystemWideProfileToDisk();
+ void createHotplugRulesGrid();
+ TQGridLayout* profileRulesGrid;
+ TQStringList availableProfileNames;
+ void profileListChanged();
+ HotPlugRulesList currentHotplugRules;
+ void updateProfileConfigObjectFromGrid();
private slots:
void selectProfile (int slotNumber);
@@ -107,6 +117,9 @@ private slots:
void addProfile (void);
void renameProfile (void);
void deleteProfile (void);
+ void activateProfile (void);
+ void reloadProfileFromDisk (void);
+ void saveProfile (void);
void ensurePrimaryMonitorIsAvailable (void);
void updateDragDropDisplay (void);
void layoutDragDropDisplay (void);
@@ -130,6 +143,11 @@ private slots:
void dpmsChanged (void);
void processDPMSControls (void);
void deviceChanged (TDEGenericDevice*);
+ void updateStartupProfileLabel (void);
+ void selectDefaultProfile (int index);
+ void addNewProfileRule (void);
+ void deleteProfileRule (void);
+ void profileRuleCheckBoxStateChanged (int state);
};
#endif