4#include <qtmir/screen.h>
5#include <QScopedPointer>
8#include "WorkspaceModel.h"
12class Screen : public qtmir::Screen
15 Q_PROPERTY(WorkspaceModel* workspaces READ workspaces CONSTANT)
16 Q_PROPERTY(Workspace* currentWorkspace READ currentWorkspace WRITE setCurrentWorkspace NOTIFY currentWorkspaceChanged)
19 explicit Screen(qtmir::Screen*const wrapped);
21 qtmir::OutputId outputId() const override;
22 bool used() const override;
23 QString name() const override;
24 float scale() const override;
25 QSizeF physicalSize() const override;
26 qtmir::FormFactor formFactor() const override;
27 qtmir::OutputTypes outputType() const override;
28 MirPowerMode powerMode() const override;
29 Qt::ScreenOrientation orientation() const override;
30 QPoint position() const override;
31 QQmlListProperty<qtmir::ScreenMode> availableModes() override;
32 uint currentModeIndex() const override;
33 bool isActive() const override;
34 void setActive(bool active) override;
36 QScreen* qscreen() const override;
38 qtmir::ScreenConfiguration *beginConfiguration() const override;
39 bool applyConfiguration(qtmir::ScreenConfiguration *configuration) override;
41 qtmir::Screen* wrapped() const { return m_wrapped; }
43 WorkspaceModel* workspaces() const;
45 Workspace *currentWorkspace() const;
46 void setCurrentWorkspace(Workspace* workspace);
48 void sync(Screen* proxy);
54 void currentWorkspaceChanged(Workspace*);
57 Screen(Screen const& other);
59 void resetCurrentWorkspace();
61 qtmir::Screen*const m_wrapped;
62 const QScopedPointer<WorkspaceModel> m_workspaces;
63 QPointer<Workspace> m_currentWorspace;
66class ScreenProxy : public Screen
70 explicit ScreenProxy(Screen*const screen);
72 Screen* proxyObject() const { return m_original.data(); }
78 const QPointer<Screen> m_original;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list