38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 45 #include <QtWidgets/QMainWindow> 46 #include <QtWidgets/QMdiArea> 47 #include <QtWidgets/QButtonGroup> 48 #include <QtCore/QProcess> 49 #include <QtWidgets/QSplashScreen> 50 #include <QtNetwork/QNetworkReply> 59 class QTreeWidgetItem;
61 class QNetworkAccessManager;
69 class TOPPASLogWindow;
70 class TOPPASResources;
95 void loadPreferences(
String filename =
"");
97 void savePreferences();
99 void loadFiles(
const StringList& list, QSplashScreen* splash_screen);
103 void addTOPPASFile(
const String& file_name,
bool in_new_window =
true);
105 void openFileDialog();
107 void openExampleDialog();
109 void newPipeline(
const int id = -1);
111 void includePipeline();
113 void saveCurrentPipelineAs();
117 void exportAsImage();
119 void loadPipelineResourceFile();
121 void savePipelineResourceFile();
123 void openOnlinePipelineRepository();
125 void preferencesDialog();
127 void updateCurrentPath();
129 void updateTabBar(QMdiSubWindow* w);
131 void showAboutDialog();
140 void showStatusMessage(std::string msg,
OpenMS::UInt time);
142 void showCursorStatus(
double x,
double y);
146 void updateToolBar();
150 void abortPipeline();
160 void outputVertexFinished(
const String& file);
162 void updateTOPPOutputLog(
const QString& out);
164 void showPipelineFinishedLogMessage();
168 void sendClipboardContent();
170 void refreshParameters();
172 void openFilesInTOPPView(QStringList all_files);
174 void openToppasFile(QString filename);
180 void closeByTab(
int id);
183 void focusByTab(
int id);
189 void showAsWindow_(
TOPPASWidget* sw,
const String& caption,
const int special_id = -1);
191 void insertNewVertex_(
double x,
double y, QTreeWidgetItem* item =
nullptr);
193 void insertNewVertexInCenter_(QTreeWidgetItem* item);
196 void downloadTOPPASfromHomepage_(
const QUrl& url);
198 void toppasFileDownloaded_(QNetworkReply* r);
200 void TOPPASreadyRead();
203 void descriptionUpdated_();
239 QLabel* message_label_;
265 void closeEvent(QCloseEvent* event)
override;
266 void keyPressEvent(QKeyEvent* e)
override;
277 void showLogMessage_(LogState state,
const String& heading,
const String& body);
285 static int const IDINITIALUNTITLED = 1000;
294 static QString savePipelineAs(
TOPPASWidget* w, QString current_path);
297 static QString loadPipelineResourceFile(
TOPPASWidget* w, QString current_path);
300 static QString savePipelineResourceFile(
TOPPASWidget* w, QString current_path);
303 static QString refreshPipelineParameters(
TOPPASWidget* tw, QString current_path);
A container for all visual items of a TOPPAS workflow.
Definition: TOPPASScene.h:85
A more convenient string class.
Definition: String.h:57
Tree view implementation for the list of TOPP tools.
Definition: TOPPASTreeView.h:54
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Warning.
Definition: TOPPASBase.h:273
QNetworkAccessManager * network_manager_
download .toppas files from homepage
Definition: TOPPASBase.h:224
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
static qreal z_value_
z-value counter for new inserted nodes (new nodes should be on top)
Definition: TOPPASBase.h:258
QNetworkReply * network_reply_
the content of the network request
Definition: TOPPASBase.h:226
String tmp_path_
The path for temporary files.
Definition: TOPPASBase.h:252
LogState
Log message states.
Definition: TOPPASBase.h:270
QToolBar * tool_bar_
Definition: TOPPASBase.h:215
Notice.
Definition: TOPPASBase.h:272
Main window of the TOPPAS tool.
Definition: TOPPASBase.h:77
TOPPASLogWindow * log_
Log output window.
Definition: TOPPASBase.h:208
TOPPASScene * clipboard_scene_
The clipboard.
Definition: TOPPASBase.h:280
QListWidget * blocks_list_
List of ready analysis pipelines.
Definition: TOPPASBase.h:234
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:73
TOPPASTabBar * tab_bar_
Tab bar. The address of the corresponding window to a tab is stored as an int in tabData() ...
Definition: TOPPASBase.h:229
QTextEdit * desc_
Workflow Description window.
Definition: TOPPASBase.h:210
String current_path_
Definition: TOPPASBase.h:249
QWebView * webview_
OpenMS homepage workflow browser.
Definition: TOPPASBase.h:222
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
QMdiArea * ws_
Main workspace.
Definition: TOPPASBase.h:219
QTextEdit implementation with a "clear" button in the context menu.
Definition: TOPPASLogWindow.h:50
QTreeWidget * tools_tree_view_
Tree view of all available TOPP tools.
Definition: TOPPASBase.h:232
Convenience tab bar implementation.
Definition: TOPPASTabBar.h:59
static int node_offset_
Offset counter for new inserted nodes (to avoid invisible stacking)
Definition: TOPPASBase.h:255