38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
47 #include <QtWidgets/QButtonGroup>
48 #include <QtWidgets/QMainWindow>
49 #include <QtWidgets/QMdiArea>
50 #include <QtNetwork/QNetworkReply>
51 #include <QtWidgets/QSplashScreen>
60 class QTreeWidgetItem;
62 class QNetworkAccessManager;
67 class EnhancedWorkSpace;
72 class TOPPASResources;
97 void loadPreferences(
String filename =
"");
99 void savePreferences();
101 void loadFiles(
const std::vector<String>& list, QSplashScreen* splash_screen);
105 void addTOPPASFile(
const String& file_name,
bool in_new_window =
true);
107 void openFilesByDialog();
109 void openExampleDialog();
113 void includePipeline();
115 void saveCurrentPipelineAs();
119 void exportAsImage();
121 void loadPipelineResourceFile();
123 void savePipelineResourceFile();
125 void openOnlinePipelineRepository();
127 void preferencesDialog();
129 void updateCurrentPath();
131 void updateTabBar(QMdiSubWindow* w);
133 void showAboutDialog();
142 void showStatusMessage(std::string msg,
OpenMS::UInt time);
144 void showCursorStatus(
double x,
double y);
148 void updateToolBar();
152 void abortPipeline();
162 void outputVertexFinished(
const String& file);
164 void updateTOPPOutputLog(
const QString& out);
166 void showPipelineFinishedLogMessage();
170 void sendClipboardContent();
172 void refreshParameters();
174 void openFilesInTOPPView(QStringList all_files);
176 void openToppasFile(QString filename);
183 void closeByTab(
int id);
185 void focusByTab(
int id);
193 void insertNewVertex_(
double x,
double y, QTreeWidgetItem* item =
nullptr);
195 void insertNewVertexInCenter_(QTreeWidgetItem* item);
198 void downloadTOPPASfromHomepage_(
const QUrl& url);
200 void toppasFileDownloaded_(QNetworkReply* r);
202 void TOPPASreadyRead();
205 void descriptionUpdated_();
270 void closeEvent(QCloseEvent* event)
override;
271 void keyPressEvent(QKeyEvent* e)
override;
286 static QString savePipelineAs(
TOPPASWidget* w, QString current_path);
289 static QString loadPipelineResourceFile(
TOPPASWidget* w, QString current_path);
292 static QString savePipelineResourceFile(
TOPPASWidget* w, QString current_path);
295 static QString refreshPipelineParameters(
TOPPASWidget* tw, QString current_path);
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
Convenience tab bar implementation.
Definition: EnhancedTabBar.h:62
Definition: EnhancedWorkspace.h:53
A log window (QTextEdit) with convenience functions.
Definition: LogWindow.h:55
A more convenient string class.
Definition: String.h:60
Main window of the TOPPAS tool.
Definition: TOPPASBase.h:82
QTreeWidget * tools_tree_view_
Tree view of all available TOPP tools.
Definition: TOPPASBase.h:237
QTextEdit * desc_
Workflow Description window.
Definition: TOPPASBase.h:212
EnhancedTabBar * tab_bar_
Tab bar. The address of the corresponding window to a tab is stored as an int in tabData()
Definition: TOPPASBase.h:234
static int node_offset_
Offset counter for new inserted nodes (to avoid invisible stacking)
Definition: TOPPASBase.h:260
QNetworkAccessManager * network_manager_
download .toppas files from homepage
Definition: TOPPASBase.h:229
QListWidget * blocks_list_
List of ready analysis pipelines.
Definition: TOPPASBase.h:239
QWebView * webview_
OpenMS homepage workflow browser.
Definition: TOPPASBase.h:227
QNetworkReply * network_reply_
the content of the network request
Definition: TOPPASBase.h:231
EnhancedWorkspace * ws_
Main workspace.
Definition: TOPPASBase.h:224
static qreal z_value_
z-value counter for new inserted nodes (new nodes should be on top)
Definition: TOPPASBase.h:263
String tmp_path_
The path for temporary files.
Definition: TOPPASBase.h:257
QLabel * message_label_
Label for messages in the status bar.
Definition: TOPPASBase.h:245
QToolBar * tool_bar_
Definition: TOPPASBase.h:217
RecentFilesMenu recent_files_menu_
manages recent list of filenames and the menu that goes with it
Definition: TOPPASBase.h:221
String current_path_
Definition: TOPPASBase.h:254
TOPPASScene * clipboard_scene_
The clipboard.
Definition: TOPPASBase.h:275
LogWindow * log_
Log output window.
Definition: TOPPASBase.h:210
A container for all visual items of a TOPPAS workflow.
Definition: TOPPASScene.h:87
Tree view implementation for the list of TOPP tools.
Definition: TOPPASTreeView.h:56
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47