File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 88 QDialog ,
99 QDialogButtonBox ,
1010 QTabWidget ,
11+ QWidget ,
1112 QVBoxLayout ,
1213)
1314from 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
You can’t perform that action at this time.
0 commit comments