1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #include <string>
- namespace UOS
- {
- //工具栏隐藏模式
- const std::string domain_dock = "com.deepin.dde.dock";
- const std::string attribute_hide_mode = "hide-mode";
- const std::string keep_hidden = "keep-hidden";
- const std::string keep_show = "keep-showing";
- const std::string smart_show = "smart-hide'";
- const std::string wallpaper_stored_path = "/usr/share/wallpapers/deepin/";
- const std::string shellscript_get_screen_names = "xrandr |awk '/connected/ {print $1}'";
- const std::string shellscript_get_screen_resolutions = "xrandr |awk '/connected/ {print $4}'";
- struct MonitorInfo
- {
- std::string name;
- bool isPrimary;
- int posDirecttion; //-1:skip;0:copy mode;1:up;2:right;3:bottom;4:left; 如果isPrimary,该字段无效
- int nResolutionX;
- int nResolutionY;
- int refreshRate;
- std::string other;//如果是副屏,要设置扩展模式,这个是主屏幕的名称
- MonitorInfo() :name(""), isPrimary(false), posDirecttion(-1), nResolutionX(1920), nResolutionY(1080), refreshRate(60)
- {
- }
- };
- class CQSettings
- {
- public:
- CQSettings(bool fGet):mGet(fGet) {}
- ~CQSettings() {}
- private:
- bool mGet;
- };
- }
|