Home
last modified time | relevance | path

Searched refs:KScreen (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/dports/x11/plasma5-kscreen/kscreen-5.23.5/kded/
H A Dgenerator.h16 namespace KScreen
38 KScreen::ConfigPtr idealConfig(const KScreen::ConfigPtr &currentConfig);
46 static KScreen::ModePtr biggestMode(const KScreen::ModeList &modes);
55 KScreen::ConfigPtr fallbackIfNeeded(const KScreen::ConfigPtr &config);
58 void laptop(KScreen::OutputList &connectedOutputs);
62 void initializeOutput(const KScreen::OutputPtr &output, KScreen::Config::Features features);
63 KScreen::ModePtr bestModeForSize(const KScreen::ModeList &modes, const QSize &size);
64 KScreen::ModePtr bestModeForOutput(const KScreen::OutputPtr &output);
67 KScreen::OutputPtr biggestOutput(const KScreen::OutputList &connectedOutputs);
68 KScreen::OutputPtr embeddedOutput(const KScreen::OutputList &connectedOutputs);
[all …]
H A Dkscreen.desktop.cmake2 Name=KScreen 2
4 Name[bs]=KScreen 2
5 Name[ca]=KScreen 2
7 Name[cs]=KScreen 2
8 Name[da]=KScreen 2
9 Name[de]=KScreen 2
10 Name[el]=KScreen 2
12 Name[es]=KScreen 2
13 Name[et]=KScreen 2
14 Name[eu]=KScreen 2
[all …]
H A Dgenerator.cpp70 KScreen::ConfigPtr Generator::idealConfig(const KScreen::ConfigPtr &currentConfig) in idealConfig()
106 KScreen::ConfigPtr Generator::fallbackIfNeeded(const KScreen::ConfigPtr &config) in fallbackIfNeeded()
110 KScreen::ConfigPtr newConfig; in fallbackIfNeeded()
306 KScreen::ModePtr bestMode; in cloneScreens()
458 KScreen::ModePtr Generator::biggestMode(const KScreen::ModeList &modes) in biggestMode()
484 KScreen::ModePtr Generator::bestModeForSize(const KScreen::ModeList &modes, const QSize &size) in bestModeForSize()
486 KScreen::ModePtr bestMode; in bestModeForSize()
522 KScreen::ModePtr Generator::bestModeForOutput(const KScreen::OutputPtr &output) in bestModeForOutput()
531 KScreen::OutputPtr Generator::biggestOutput(const KScreen::OutputList &outputs) in biggestOutput()
536 KScreen::OutputPtr biggest; in biggestOutput()
[all …]
H A Dosdmanager.cpp19 namespace KScreen namespace
44 return new KScreen::OsdAction(); in OsdManager()
71 …connect(new KScreen::GetConfigOperation(), &KScreen::GetConfigOperation::finished, this, &OsdManag… in showOutputIdentifiers()
80 const KScreen::ConfigPtr config = qobject_cast<KScreen::GetConfigOperation *>(op)->config(); in slotIdentifyOutputs()
88 osd = new KScreen::Osd(output, this); in slotIdentifyOutputs()
100 …connect(new KScreen::GetConfigOperation(), &KScreen::GetConfigOperation::finished, this, [this, ic… in showOsd()
105 const KScreen::ConfigPtr config = qobject_cast<KScreen::GetConfigOperation *>(op)->config(); in showOsd()
113 osd = new KScreen::Osd(output, this); in showOsd()
132 …connect(new KScreen::GetConfigOperation(), &KScreen::GetConfigOperation::finished, this, [this, ac… in showActionSelector()
140 KScreen::OutputPtr osdOutput; in showActionSelector()
[all …]
H A Ddaemon.cpp49 KScreen::Log::instance(); in KScreenDaemon()
55 …connect(new KScreen::GetConfigOperation, &KScreen::GetConfigOperation::finished, this, [this](KScr… in getInitialConfig()
104 new KScreen::GetConfigOperation(KScreen::GetConfigOperation::NoEDID, this); in init()
254 case KScreen::OsdAction::NoAction: in applyOsdAction()
257 case KScreen::OsdAction::SwitchToInternal: in applyOsdAction()
265 case KScreen::OsdAction::ExtendLeft: in applyOsdAction()
269 case KScreen::OsdAction::ExtendRight: in applyOsdAction()
273 case KScreen::OsdAction::Clone: in applyOsdAction()
426 KScreen::Output *output = qobject_cast<KScreen::Output *>(sender()); in outputConnectedChanged()
446 &KScreen::Config::outputAdded, in monitorConnectedChange()
[all …]
H A Doutput.h24 static void readInOutputs(KScreen::ConfigPtr config, const QVariantList &outputsInfo);
26 static void writeGlobal(const KScreen::OutputPtr &output);
27 …static bool writeGlobalPart(const KScreen::OutputPtr &output, QVariantMap &info, const KScreen::Ou…
36 std::optional<KScreen::Output::Rotation> rotation;
37 std::optional<KScreen::Output::VrrPolicy> vrrPolicy;
39 std::optional<KScreen::Output::RgbRange> rgbRange;
41 static GlobalConfig readGlobal(const KScreen::OutputPtr &output);
45 static QVariantMap getGlobalData(KScreen::OutputPtr output);
48 static bool readInGlobal(KScreen::OutputPtr output);
49 static void readInGlobalPartFromInfo(KScreen::OutputPtr output, const QVariantMap &info);
[all …]
H A Doutput.cpp70 const KScreen::ModeList modes = output->modes(); in fromInfo()
71 for (const KScreen::ModePtr &mode : modes) { in fromInfo()
95 KScreen::ModePtr matchingMode; in readInGlobalPartFromInfo()
151 KScreen::Output::Rotation orientationToRotation(QOrientationReading::Orientation orientation, KScre… in orientationToRotation()
157 return KScreen::Output::Rotation::None; in orientationToRotation()
159 return KScreen::Output::Rotation::Inverted; in orientationToRotation()
161 return KScreen::Output::Rotation::Left; in orientationToRotation()
163 return KScreen::Output::Rotation::Right; in orientationToRotation()
226 … return rot & KScreen::Output::Rotation::Left || rot & KScreen::Output::Rotation::Right; in adjustPositions()
403 for (KScreen::OutputPtr output : outputs) { in readInOutputs()
[all …]
/dports/x11/plasma5-kscreen/kscreen-5.23.5/kcm/
H A Dconfig_handler.h23 void setConfig(KScreen::ConfigPtr config);
33 KScreen::ConfigPtr config() const in config()
38 KScreen::ConfigPtr initialConfig() const in initialConfig()
54 KScreen::OutputPtr replicationSource(const KScreen::OutputPtr &output) const;
55 void setReplicationSource(KScreen::OutputPtr &output, const KScreen::OutputPtr &source);
65 KScreen::Output::VrrPolicy vrrPolicy(const KScreen::OutputPtr &output) const;
66 void setVrrPolicy(const KScreen::OutputPtr &output, KScreen::Output::VrrPolicy value);
68 KScreen::Output::RgbRange rgbRange(const KScreen::OutputPtr &output) const;
69 void setRgbRange(const KScreen::OutputPtr &output, KScreen::Output::RgbRange value);
100 KScreen::ConfigPtr m_config = nullptr;
[all …]
H A Dconfig_handler.cpp18 using namespace KScreen;
25 void ConfigHandler::setConfig(KScreen::ConfigPtr config) in setConfig()
31 KScreen::ConfigMonitor::instance()->addConfig(m_config); in setConfig()
38 for (const KScreen::OutputPtr &output : config->outputs()) { in setConfig()
62 void ConfigHandler::resetScale(const KScreen::OutputPtr &output) in resetScale()
297 KScreen::OutputPtr ConfigHandler::replicationSource(const KScreen::OutputPtr &output) const in replicationSource()
302 void ConfigHandler::setReplicationSource(KScreen::OutputPtr &output, const KScreen::OutputPtr &sour… in setReplicationSource()
337 KScreen::Output::VrrPolicy ConfigHandler::vrrPolicy(const KScreen::OutputPtr &output) const in vrrPolicy()
342 void ConfigHandler::setVrrPolicy(const KScreen::OutputPtr &output, KScreen::Output::VrrPolicy value) in setVrrPolicy()
347 KScreen::Output::RgbRange ConfigHandler::rgbRange(const KScreen::OutputPtr &output) const in rgbRange()
[all …]
/dports/x11/plasma5-kscreen/kscreen-5.23.5/common/
H A Dcontrol.h84 KScreen::OutputPtr getReplicationSource(const KScreen::OutputPtr &output) const;
86 void setReplicationSource(const KScreen::OutputPtr &output, const KScreen::OutputPtr &source);
94 KScreen::Output::VrrPolicy getVrrPolicy(const KScreen::OutputPtr &output) const;
96 void setVrrPolicy(const KScreen::OutputPtr &output, const KScreen::Output::VrrPolicy value);
99 KScreen::Output::RgbRange getRgbRange(const KScreen::OutputPtr &output) const;
101 void setRgbRange(const KScreen::OutputPtr &output, const KScreen::Output::RgbRange value);
116 KScreen::ConfigPtr m_config;
144 KScreen::Output::VrrPolicy vrrPolicy() const;
147 KScreen::Output::RgbRange rgbRange() const;
148 void setRgbRange(KScreen::Output::RgbRange value);
[all …]
H A Dcontrol.cpp129 for (const KScreen::OutputPtr &output : outputs) { in ControlConfig()
464 KScreen::OutputPtr ControlConfig::getReplicationSource(const KScreen::OutputPtr &output) const in getReplicationSource()
497 void ControlConfig::setReplicationSource(const KScreen::OutputPtr &output, const KScreen::OutputPtr… in setReplicationSource()
599 KScreen::Output::VrrPolicy ControlConfig::getVrrPolicy(const KScreen::OutputPtr &output) const in getVrrPolicy()
628 return KScreen::Output::VrrPolicy::Automatic; in getVrrPolicy()
631 void ControlConfig::setVrrPolicy(const KScreen::OutputPtr &output, const KScreen::Output::VrrPolicy… in setVrrPolicy()
668 KScreen::Output::RgbRange ControlConfig::getRgbRange(const KScreen::OutputPtr &output) const in getRgbRange()
697 return KScreen::Output::RgbRange::Automatic; in getRgbRange()
700 void ControlConfig::setRgbRange(const KScreen::OutputPtr &output, const KScreen::Output::RgbRange v… in setRgbRange()
856 return KScreen::Output::VrrPolicy::Automatic; in vrrPolicy()
[all …]
/dports/x11/plasma5-libkscreen/libkscreen-5.23.5/backends/
H A Dutils.cpp17 return KScreen::Output::Panel; in guessOutputType()
22 return KScreen::Output::VGA; in guessOutputType()
24 return KScreen::Output::DVI; in guessOutputType()
26 return KScreen::Output::DVII; in guessOutputType()
28 return KScreen::Output::DVIA; in guessOutputType()
30 return KScreen::Output::DVID; in guessOutputType()
32 return KScreen::Output::HDMI; in guessOutputType()
34 return KScreen::Output::Panel; in guessOutputType()
42 return KScreen::Output::TVSCART; in guessOutputType()
44 return KScreen::Output::TVC4; in guessOutputType()
[all …]
/dports/sysutils/lxqt-config/lxqt-config-1.0.0/lxqt-config-monitor/
H A Dmonitorwidget.cpp29 QString modeToString(KScreen::ModePtr mode) in modeToString()
35 KScreen::OutputPtr getOutputById(int id, KScreen::OutputList outputs) in getOutputById()
41 return KScreen::OutputPtr(nullptr); in getOutputById()
44 KScreen::ModePtr getModeById(QString id, KScreen::ModeList modes) in getModeById()
50 return KScreen::ModePtr(nullptr); in getModeById()
53 static bool sizeBiggerThan(const KScreen::ModePtr &modeA, const KScreen::ModePtr &modeB) in sizeBiggerThan()
62 MonitorWidget::MonitorWidget(KScreen::OutputPtr output, KScreen::ConfigPtr config, QWidget* parent)… in MonitorWidget()
158 case KScreen::Output::None: in MonitorWidget()
161 case KScreen::Output::Left: in MonitorWidget()
164 case KScreen::Output::Right: in MonitorWidget()
[all …]
H A Dloadsettings.cpp63 KScreen::GetConfigOperation *operation = new KScreen::GetConfigOperation(); in applyBestSettings()
64 …connect(operation, &KScreen::GetConfigOperation::finished, [this, operation] (KScreen::ConfigOpera… in applyBestSettings()
65 KScreen::GetConfigOperation *configOp = qobject_cast<KScreen::GetConfigOperation *>(op); in applyBestSettings()
90 KScreen::ConfigPtr config = configOp->config(); in applyBestSettings()
93 if (KScreen::Config::canBeApplied(config)) in applyBestSettings()
114 const KScreen::OutputList outputs = config->outputs(); in applySettings()
117 for (const KScreen::OutputPtr &output : outputs) { in applySettings()
124 KScreen::Edid* edid = output->edid(); in applySettings()
139 KScreen::ModeList modeList = output->modes(); in applySettings()
163 if (KScreen::Config::canBeApplied(config)) in applySettings()
[all …]
H A Dkscreenutils.cpp11 void KScreenUtils::updateScreenSize(KScreen::ConfigPtr &config) in updateScreenSize()
13 const KScreen::OutputList outputs = config->outputs(); in updateScreenSize()
16 for (const KScreen::OutputPtr &output : outputs) { in updateScreenSize()
21 KScreen::ModePtr mode(output->currentMode()); in updateScreenSize()
31 bool KScreenUtils::applyConfig(KScreen::ConfigPtr &config, KScreen::ConfigPtr &oldConfig) in applyConfig()
35 if (config && KScreen::Config::canBeApplied(config)) { in applyConfig()
36 KScreen::SetConfigOperation(config).exec(); in applyConfig()
51 void KScreenUtils::extended(KScreen::ConfigPtr &config) in extended()
55 for (const KScreen::OutputPtr &output : outputs) { in extended()
66 KScreen::ModePtr mode(output->currentMode()); in extended()
[all …]
/dports/x11/plasma5-libkscreen/libkscreen-5.23.5/autotests/
H A Dtestkwaylandconfig.cpp25 using namespace KScreen;
85 KScreen::ConfigMonitor *monitor = KScreen::ConfigMonitor::instance(); in changeConfig()
97 output2->setRotation(KScreen::Output::Left); in changeConfig()
121 KScreen::ConfigMonitor *monitor = KScreen::ConfigMonitor::instance(); in testPositionChange()
143 QTest::newRow("left") << KScreen::Output::Left; in testRotationChange_data()
146 QTest::newRow("none") << KScreen::Output::None; in testRotationChange_data()
151 QFETCH(KScreen::Output::Rotation, rotation); in testRotationChange()
159 KScreen::ConfigMonitor *monitor = KScreen::ConfigMonitor::instance(); in testRotationChange()
199 KScreen::ConfigMonitor *monitor = KScreen::ConfigMonitor::instance(); in testScaleChange()
233 KScreen::ConfigMonitor *monitor = KScreen::ConfigMonitor::instance(); in testModeChange()
[all …]
H A Dtestconfigmonitor.cpp31 KScreen::ConfigPtr getConfig() in getConfig()
33 auto op = new KScreen::GetConfigOperation(); in getConfig()
36 return KScreen::ConfigPtr(); in getConfig()
49 KScreen::BackendManager::instance()->shutdownBackend(); in initTestCase()
54 KScreen::BackendManager::instance()->shutdownBackend(); in cleanupTestCase()
60 KScreen::BackendManager::instance()->shutdownBackend(); in testChangeNotifyInProcess()
61 KScreen::BackendManager::instance()->setMethod(KScreen::BackendManager::InProcess); in testChangeNotifyInProcess()
66 KScreen::ConfigMonitor *monitor = KScreen::ConfigMonitor::instance(); in testChangeNotifyInProcess()
70 KScreen::ConfigPtr config = getConfig(); in testChangeNotifyInProcess()
77 auto setop = new KScreen::SetConfigOperation(config); in testChangeNotifyInProcess()
[all …]
H A Dtestscreenconfig.cpp18 using namespace KScreen;
25 KScreen::ConfigPtr getConfig();
230 QVERIFY(config->supportedFeatures().testFlag(KScreen::Config::Feature::None)); in supportedFeatures()
235 …config->setSupportedFeatures(KScreen::Config::Feature::Writable | KScreen::Config::Feature::Primar… in supportedFeatures()
239 config->setSupportedFeatures(KScreen::Config::Feature::None); in supportedFeatures()
240 QVERIFY(config->supportedFeatures().testFlag(KScreen::Config::Feature::None)); in supportedFeatures()
242 …config->setSupportedFeatures(KScreen::Config::Feature::PerOutputScaling | KScreen::Config::Feature… in supportedFeatures()
243 QVERIFY(!config->supportedFeatures().testFlag(KScreen::Config::Feature::None)); in supportedFeatures()
247 …config->setSupportedFeatures(KScreen::Config::Feature::PerOutputScaling | KScreen::Config::Feature… in supportedFeatures()
248 QVERIFY(!config->supportedFeatures().testFlag(KScreen::Config::Feature::None)); in supportedFeatures()
[all …]
H A Dtestmodelistchange.cpp18 using namespace KScreen;
25 KScreen::ConfigPtr getConfig();
26 KScreen::ModeList createModeList();
27 bool compareModeList(KScreen::ModeList before, KScreen::ModeList &after);
58 KScreen::ModeList TestModeListChange::createModeList() in createModeList()
60 KScreen::ModeList newmodes; in createModeList()
63 KScreen::ModePtr kscreenMode(new KScreen::Mode); in createModeList()
72 KScreen::ModePtr kscreenMode(new KScreen::Mode); in createModeList()
81 KScreen::ModePtr kscreenMode(new KScreen::Mode); in createModeList()
150 KScreen::ModePtr kscreenMode(new KScreen::Mode); in modeListChange()
/dports/x11/plasma5-libkscreen/libkscreen-5.23.5/src/doctor/
H A Ddoctor.cpp44 namespace KScreen namespace
53 using namespace KScreen;
74 KScreen::GetConfigOperation *op = new KScreen::GetConfigOperation(); in start()
75 … connect(op, &KScreen::GetConfigOperation::finished, this, [this](KScreen::ConfigOperation *op) { in start()
117 void KScreen::Doctor::setDpms(const QString &dpmsArg) in setDpms()
253 …const QHash<QString, KScreen::Output::Rotation> rotationMap({{QStringLiteral("none"), KScreen::Out… in parseOutputArgs()
258 KScreen::Output::Rotation rot = KScreen::Output::None; in parseOutputArgs()
283 KScreen::Output::VrrPolicy policy; in parseOutputArgs()
302 KScreen::Output::RgbRange range; in parseOutputArgs()
329 void Doctor::configReceived(KScreen::ConfigOperation *op) in configReceived()
[all …]
/dports/x11/plasma5-libkscreen/libkscreen-5.23.5/backends/xrandr1.1/
H A Dxrandr11.cpp23 : KScreen::AbstractBackend() in XRandR11()
26 , m_currentConfig(new KScreen::Config) in XRandR11()
75 KScreen::ConfigPtr XRandR11::config() const in config()
77 KScreen::ConfigPtr config(new KScreen::Config); in config()
78 auto features = KScreen::Config::Feature::Writable | KScreen::Config::Feature::PrimaryDisplay; in config()
90 KScreen::ScreenPtr screen(new KScreen::Screen); in config()
104 KScreen::OutputList outputs; in config()
105 KScreen::OutputPtr output(new KScreen::Output); in config()
119 KScreen::ModePtr mode; in config()
120 KScreen::ModeList modes; in config()
[all …]
/dports/x11/plasma5-kscreen/kscreen-5.23.5/plasmoid/
H A Dkscreenapplet.cpp34 …qmlRegisterSingletonType<KScreen::OsdAction>("org.kde.private.kscreen", 1, 0, "OsdAction", [](QQml… in init()
35 return new KScreen::OsdAction(); in init()
38 connect(new KScreen::GetConfigOperation(KScreen::GetConfigOperation::NoEDID), in init()
39 &KScreen::ConfigOperation::finished, in init()
41 [this](KScreen::ConfigOperation *op) { in init()
42 m_screenConfiguration = qobject_cast<KScreen::GetConfigOperation *>(op)->config(); in init()
44 KScreen::ConfigMonitor::instance()->addConfig(m_screenConfiguration); in init()
45 …connect(KScreen::ConfigMonitor::instance(), &KScreen::ConfigMonitor::configurationChanged, this, &… in init()
58 const QMetaEnum actionEnum = QMetaEnum::fromType<KScreen::OsdAction::Action>(); in applyLayoutPreset()
85 …m_connectedOutputCount = std::count_if(outputs.begin(), outputs.end(), [](const KScreen::OutputPtr… in checkOutputs()
/dports/x11/plasma5-plasma-workspace/plasma-workspace-5.23.5/libnotificationmanager/
H A Dmirroredscreenstracker.cpp22 connect(new KScreen::GetConfigOperation(KScreen::GetConfigOperation::NoEDID), in MirroredScreensTracker()
23 &KScreen::ConfigOperation::finished, in MirroredScreensTracker()
25 [this](KScreen::ConfigOperation *op) { in MirroredScreensTracker()
26 m_screenConfiguration = qobject_cast<KScreen::GetConfigOperation *>(op)->config(); in MirroredScreensTracker()
29 KScreen::ConfigMonitor::instance()->addConfig(m_screenConfiguration); in MirroredScreensTracker()
30 …connect(KScreen::ConfigMonitor::instance(), &KScreen::ConfigMonitor::configurationChanged, this, &… in MirroredScreensTracker()
68 for (const KScreen::OutputPtr &output : outputs) { in checkScreensMirrored()
73 for (const KScreen::OutputPtr &checkOutput : outputs) { in checkScreensMirrored()
/dports/x11/plasma5-kscreen/kscreen-5.23.5/tests/kded/
H A Dconfigtest.cpp48 KScreen::ScreenPtr screen = KScreen::ScreenPtr::create(); in createConfig()
57 KScreen::ModePtr mode = KScreen::ModePtr::create(); in createConfig()
65 KScreen::OutputPtr output1 = KScreen::OutputPtr::create(); in createConfig()
75 KScreen::OutputPtr output2 = KScreen::OutputPtr::create(); in createConfig()
84 KScreen::ConfigPtr config = KScreen::ConfigPtr::create(); in createConfig()
276 KScreen::ScreenPtr screen = KScreen::ScreenPtr::create(); in testIdenticalOutputs()
285 KScreen::ModePtr mode = KScreen::ModePtr::create(); in testIdenticalOutputs()
301 KScreen::OutputPtr output1 = KScreen::OutputPtr::create(); in testIdenticalOutputs()
310 KScreen::OutputPtr output2 = KScreen::OutputPtr::create(); in testIdenticalOutputs()
319 KScreen::OutputPtr output3 = KScreen::OutputPtr::create(); in testIdenticalOutputs()
[all …]
/dports/x11/plasma5-libkscreen/libkscreen-5.23.5/backends/xrandr/
H A Dxrandrconfig.h15 namespace KScreen
40 KScreen::ConfigPtr toKScreenConfig() const;
41 void applyKScreenConfig(const KScreen::ConfigPtr &config);
44 QSize screenSize(const KScreen::ConfigPtr &config) const;
49 bool disableOutput(const KScreen::OutputPtr &output) const;
50 bool enableOutput(const KScreen::OutputPtr &output) const;
51 bool changeOutput(const KScreen::OutputPtr &output) const;
53 bool sendConfig(const KScreen::OutputPtr &kscreenOutput, XRandRCrtc *crtc) const;
59 void printConfig(const KScreen::ConfigPtr &config) const;

12345678910>>...12