2 * Copyright (C) 2017 Canonical, Ltd.
4 * This program is free software: you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License version 3, as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10 * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18#include "WorkspaceModel.h"
19#include "WorkspaceManager.h"
23 : m_workspaces(new WorkspaceModel)
25 WorkspaceManager::instance()->createWorkspace()->assign(m_workspaces.data());
26 WorkspaceManager::instance()->createWorkspace()->assign(m_workspaces.data());
29QQmlListProperty<qtmir::ScreenMode> Screen::availableModes()
31 return QQmlListProperty<qtmir::ScreenMode>(this, m_sizes);
34qtmir::ScreenConfiguration *Screen::beginConfiguration() const
36 auto config = new qtmir::ScreenConfiguration;
39 config->used = m_used;
40 config->topLeft = m_position;
41 config->currentModeIndex = m_currentModeIndex;
42 config->powerMode = m_powerMode;
43 config->scale = m_scale;
44 config->formFactor = m_formFactor;
48bool Screen::applyConfiguration(qtmir::ScreenConfiguration *configuration)
50 m_used = configuration->used;
51 m_position = configuration->topLeft;
52 m_currentModeIndex = configuration->currentModeIndex;
53 m_powerMode = configuration->powerMode;
54 m_scale = configuration->scale;
55 m_formFactor = configuration->formFactor;
57// m_orientation = configuration->orientation;
61void Screen::setActive(bool active)
64 Q_EMIT activeChanged(active);
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