Skip to content

Commit ef76713

Browse files
committed
space tabs and add instruction
1 parent d830cd4 commit ef76713

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

qflowcrate/Plugin/Instruction/instruction_tab.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ def setup_ui(self):
8989
"also create a log file in the same directory. After you have done that, "
9090
"hit Export RO-Crate.",
9191
)
92+
self._add_section(
93+
main_layout,
94+
"Import Tab - Importing an Existing RO-Crate",
95+
"This tab allows you to import an existing RO-Crate. This can be used to "
96+
"recreate the workflow graph from a previously exported RO-Crate.",
97+
)
9298

9399
main_layout.addWidget(scroll_area)
94100
self.setLayout(main_layout)

qflowcrate/Plugin/main_dialog.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
QDialog,
99
QDialogButtonBox,
1010
QTabWidget,
11+
QWidget,
1112
QVBoxLayout,
1213
)
1314
from qgis.PyQt import QtGui
@@ -108,9 +109,27 @@ def _initialize_tab_widgets(self):
108109

109110
# Add tabs to the main tab widget
110111
self.tab_widget.addTab(self.instruction_tab, "Instructions")
112+
113+
# Keep your existing setup code
114+
self.tab_widget.addTab(QWidget(), "")
115+
self.tab_widget.setTabEnabled(1, False)
116+
111117
self.tab_widget.addTab(self.graph_tab, "Graph")
112118
self.tab_widget.addTab(self.export_tab, "Export")
119+
self.tab_widget.addTab(QWidget(), "")
120+
self.tab_widget.setTabEnabled(4, False)
121+
113122
self.tab_widget.addTab(self.import_tab, "Import")
123+
124+
# Apply this stylesheet to the tab bar to hide index 3
125+
self.tab_widget.setStyleSheet("""
126+
QTabBar::tab:disabled {
127+
width: 10px;
128+
color: transparent;
129+
background: transparent;
130+
border: none;
131+
}
132+
""")
114133

115134
# Set initial tab
116135
self.tab_widget.setCurrentIndex(0) # Start with Instructions tab

0 commit comments

Comments
 (0)