Skip to content

Commit 3fabe54

Browse files
committed
enh: add descriptions as labels in maintenance panel
1 parent f100bf2 commit 3fabe54

2 files changed

Lines changed: 86 additions & 25 deletions

File tree

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- enh: add preview option for dataset description in upload dialog (#52)
1212
- enh: introduce write lock for eternal job updates
1313
- enh: new icon and splash image artwork
14+
- enh: add descriptions as labels in maintenance panel
1415
- ref: move `FilterChainMyData` to module `panel_my_data`
1516
0.18.2
1617
- ref: make action buttons in filter view hideable

dcoraid/gui/panel_maintenance/widget_maintenance.ui

Lines changed: 85 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,53 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>400</width>
10-
<height>300</height>
9+
<width>766</width>
10+
<height>386</height>
1111
</rect>
1212
</property>
1313
<property name="windowTitle">
1414
<string>Form</string>
1515
</property>
1616
<layout class="QGridLayout" name="gridLayout">
17-
<item row="0" column="0">
18-
<widget class="QPushButton" name="pushButton_drafts">
19-
<property name="toolTip">
20-
<string>Remove all draft datasets created on DCOR (these might have been the result of failed uploads)</string>
17+
<item row="0" column="1">
18+
<widget class="QLabel" name="label_2">
19+
<property name="maximumSize">
20+
<size>
21+
<width>500</width>
22+
<height>16777215</height>
23+
</size>
2124
</property>
2225
<property name="text">
23-
<string>Remove DCOR draft datasets</string>
26+
<string>Remove all draft datasets created on DCOR (these might have been the result of failed uploads)</string>
27+
</property>
28+
<property name="wordWrap">
29+
<bool>true</bool>
2430
</property>
2531
</widget>
2632
</item>
27-
<item row="0" column="1">
28-
<spacer name="horizontalSpacer">
29-
<property name="orientation">
30-
<enum>Qt::Orientation::Horizontal</enum>
33+
<item row="1" column="0" alignment="Qt::AlignmentFlag::AlignTop">
34+
<widget class="QPushButton" name="pushButton_cache">
35+
<property name="sizePolicy">
36+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
37+
<horstretch>0</horstretch>
38+
<verstretch>0</verstretch>
39+
</sizepolicy>
3140
</property>
32-
<property name="sizeHint" stdset="0">
33-
<size>
34-
<width>40</width>
35-
<height>20</height>
36-
</size>
41+
<property name="text">
42+
<string>Clear local upload cache</string>
3743
</property>
38-
</spacer>
44+
</widget>
3945
</item>
40-
<item row="1" column="0">
41-
<widget class="QPushButton" name="pushButton_cache">
42-
<property name="toolTip">
43-
<string>Remove the local DCOR-Aid cache directory (this directory might contain compressed resource files from unexpectedly interrupted uploads)</string>
46+
<item row="2" column="0" alignment="Qt::AlignmentFlag::AlignTop">
47+
<widget class="QPushButton" name="pushButton_meta">
48+
<property name="sizePolicy">
49+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
50+
<horstretch>0</horstretch>
51+
<verstretch>0</verstretch>
52+
</sizepolicy>
4453
</property>
4554
<property name="text">
46-
<string>Clear local upload cache</string>
55+
<string>Clear local metadata cache</string>
4756
</property>
4857
</widget>
4958
</item>
@@ -60,13 +69,64 @@
6069
</property>
6170
</spacer>
6271
</item>
63-
<item row="2" column="0">
64-
<widget class="QPushButton" name="pushButton_meta">
72+
<item row="1" column="1">
73+
<widget class="QLabel" name="label">
74+
<property name="maximumSize">
75+
<size>
76+
<width>500</width>
77+
<height>16777215</height>
78+
</size>
79+
</property>
6580
<property name="text">
66-
<string>Clear local metadata cache</string>
81+
<string>Remove the local DCOR-Aid cache directory (this directory might contain compressed resource files from unexpectedly interrupted uploads)</string>
82+
</property>
83+
<property name="wordWrap">
84+
<bool>true</bool>
85+
</property>
86+
</widget>
87+
</item>
88+
<item row="0" column="0" alignment="Qt::AlignmentFlag::AlignTop">
89+
<widget class="QPushButton" name="pushButton_drafts">
90+
<property name="sizePolicy">
91+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
92+
<horstretch>0</horstretch>
93+
<verstretch>0</verstretch>
94+
</sizepolicy>
95+
</property>
96+
<property name="text">
97+
<string>Remove DCOR draft datasets</string>
98+
</property>
99+
</widget>
100+
</item>
101+
<item row="2" column="1">
102+
<widget class="QLabel" name="label_3">
103+
<property name="maximumSize">
104+
<size>
105+
<width>500</width>
106+
<height>16777215</height>
107+
</size>
108+
</property>
109+
<property name="text">
110+
<string>The metadata cache keeps track of all datasets that you have access to. If you modified datasets on another computer, then updating the local database might not fetch all changes. Clearing the local metadata cache will allow you to assemble a clean database.</string>
111+
</property>
112+
<property name="wordWrap">
113+
<bool>true</bool>
67114
</property>
68115
</widget>
69116
</item>
117+
<item row="0" column="2">
118+
<spacer name="horizontalSpacer">
119+
<property name="orientation">
120+
<enum>Qt::Orientation::Horizontal</enum>
121+
</property>
122+
<property name="sizeHint" stdset="0">
123+
<size>
124+
<width>40</width>
125+
<height>20</height>
126+
</size>
127+
</property>
128+
</spacer>
129+
</item>
70130
</layout>
71131
</widget>
72132
<resources/>

0 commit comments

Comments
 (0)