Фаза 0: каркас — CMake (cmark-gfm, libgit2+SSH, libssh2), QML-скелет (меню, 3 панели, кнопка «+»), VaultManager, LICENSE GPL-3.0
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
// Центральная панель: панель вкладок + редактор.
|
||||
// Фаза 0 — каркас: вкладки, два столбца «открыть рядом» (задел),
|
||||
// переключение режимов редактирование/просмотр (задел).
|
||||
Item {
|
||||
id: root
|
||||
|
||||
readonly property bool editMode: true // Фаза 4: реальный переключатель
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
spacing: 0
|
||||
|
||||
// Панель вкладок
|
||||
Rectangle {
|
||||
Layout.fillWidth: true
|
||||
implicitHeight: 32
|
||||
color: "whitesmoke"
|
||||
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: 4
|
||||
spacing: 4
|
||||
|
||||
Repeater {
|
||||
model: 0 // открытые вкладки наполняются в Фазе 4
|
||||
}
|
||||
|
||||
Label {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("— нет открытых файлов —")
|
||||
color: "#bbb"
|
||||
}
|
||||
|
||||
ToolButton {
|
||||
text: "▮▮" // «открыть рядом» (Фаза 4)
|
||||
ToolTip.visible: hovered
|
||||
ToolTip.text: qsTr("Открыть рядом (две панели)")
|
||||
enabled: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Область редактирования
|
||||
Rectangle {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
color: "white"
|
||||
Label {
|
||||
anchors.centerIn: parent
|
||||
text: root.editMode
|
||||
? qsTr("Редактор\nОткройте файл из дерева (Фаза 4)")
|
||||
: qsTr("Просмотр\n(Фаза 4)")
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
color: "#bbb"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user