Changeset View
Changeset View
Standalone View
Standalone View
kded/generator.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 35 | public: | |||
---|---|---|---|---|---|
56 | void setForceNotLaptop(bool force); | 56 | void setForceNotLaptop(bool force); | ||
57 | 57 | | |||
58 | static KScreen::ModePtr biggestMode(const KScreen::ModeList &modes); | 58 | static KScreen::ModePtr biggestMode(const KScreen::ModeList &modes); | ||
59 | 59 | | |||
60 | Q_SIGNALS: | 60 | Q_SIGNALS: | ||
61 | void ready(); | 61 | void ready(); | ||
62 | 62 | | |||
63 | private: | 63 | private: | ||
64 | enum LeftOrRight { | ||||
65 | Left = 0, | ||||
66 | Right | ||||
67 | }; | ||||
68 | | ||||
64 | explicit Generator(); | 69 | explicit Generator(); | ||
65 | ~Generator() override; | 70 | ~Generator() override; | ||
66 | 71 | | |||
67 | KScreen::ConfigPtr fallbackIfNeeded(const KScreen::ConfigPtr &config); | 72 | KScreen::ConfigPtr fallbackIfNeeded(const KScreen::ConfigPtr &config); | ||
68 | 73 | | |||
69 | void cloneScreens(KScreen::OutputList &connectedOutputs); | 74 | void cloneScreens(KScreen::OutputList &connectedOutputs); | ||
70 | void laptop(KScreen::OutputList &connectedOutputs); | 75 | void laptop(KScreen::OutputList &connectedOutputs); | ||
71 | void singleOutput(KScreen::OutputList &connectedOutputs); | 76 | void singleOutput(KScreen::OutputList &connectedOutputs); | ||
72 | void extendToRight(KScreen::OutputList &connectedOutputs); | 77 | void extendToRight(KScreen::OutputList &connectedOutputs); | ||
78 | void extendToLeft(KScreen::OutputList &connectedOutputs); | ||||
79 | void extendToLeftOrRight(KScreen::OutputList &connectedOutputs, LeftOrRight leftOrRight); | ||||
73 | 80 | | |||
74 | KScreen::ModePtr bestModeForSize(const KScreen::ModeList& modes, const QSize &size); | 81 | KScreen::ModePtr bestModeForSize(const KScreen::ModeList& modes, const QSize &size); | ||
75 | KScreen::ModePtr bestModeForOutput(const KScreen::OutputPtr &output); | 82 | KScreen::ModePtr bestModeForOutput(const KScreen::OutputPtr &output); | ||
76 | qreal bestScaleForOutput(const KScreen::OutputPtr &output); | 83 | qreal bestScaleForOutput(const KScreen::OutputPtr &output); | ||
77 | 84 | | |||
78 | KScreen::OutputPtr biggestOutput(const KScreen::OutputList &connectedOutputs); | 85 | KScreen::OutputPtr biggestOutput(const KScreen::OutputList &connectedOutputs); | ||
79 | KScreen::OutputPtr embeddedOutput(const KScreen::OutputList &connectedOutputs); | 86 | KScreen::OutputPtr embeddedOutput(const KScreen::OutputList &connectedOutputs); | ||
80 | void disableAllDisconnectedOutputs(const KScreen::OutputList &connectedOutputs); | 87 | void disableAllDisconnectedOutputs(const KScreen::OutputList &connectedOutputs); | ||
Show All 16 Lines |