summaryrefslogtreecommitdiffstats
path: root/kcontrol/displayconfig/displayconfig.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-11 14:27:25 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-11 14:27:25 -0600
commita35fdc9c4df20c017653edfaa77465dfe85d38d6 (patch)
treec3874507e8181ab00eee9e1ff2121799bc411e39 /kcontrol/displayconfig/displayconfig.h
parente88baf8334b8ff7ce92e555cbaffee949672d4b8 (diff)
downloadtdebase-a35fdc9c4df20c017653edfaa77465dfe85d38d6.tar.gz
tdebase-a35fdc9c4df20c017653edfaa77465dfe85d38d6.zip
Add profile support to displayconfig and krandrtray
Add automatic display hotplug profile switch support to krandrtray
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