35 #ifndef OPENMS_VISUAL_APPLICATIONS_TOPPASBASE_H 36 #define OPENMS_VISUAL_APPLICATIONS_TOPPASBASE_H 39 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 46 #include <QtGui/QMainWindow> 47 #include <QtGui/QWorkspace> 48 #include <QtGui/QButtonGroup> 49 #include <QtCore/QProcess> 50 #include <QtGui/QSplashScreen> 51 #include <QNetworkReply> 60 class QTreeWidgetItem;
62 class QNetworkAccessManager;
70 class TOPPASLogWindow;
71 class TOPPASResources;
96 void loadPreferences(
String filename =
"");
98 void savePreferences();
100 void loadFiles(
const StringList& list, QSplashScreen* splash_screen);
104 void addTOPPASFile(
const String& file_name,
bool in_new_window =
true);
106 void openFileDialog();
108 void openExampleDialog();
110 void newPipeline(
const int id = -1);
112 void includePipeline();
114 void saveCurrentPipelineAs();
118 void exportAsImage();
120 void loadPipelineResourceFile();
122 void savePipelineResourceFile();
124 void openOnlinePipelineRepository();
126 void preferencesDialog();
128 void updateCurrentPath();
132 void showAboutDialog();
141 void showStatusMessage(std::string msg,
OpenMS::UInt time);
143 void showCursorStatus(
double x,
double y);
147 void updateToolBar();
151 void abortPipeline();
161 void outputVertexFinished(
const String& file);
163 void updateTOPPOutputLog(
const QString& out);
165 void showPipelineFinishedLogMessage();
169 void sendClipboardContent();
171 void refreshParameters();
173 void openFilesInTOPPView(QStringList all_files);
175 void openToppasFile(QString filename);
181 void closeByTab(
int id);
184 void focusByTab(
int id);
190 void showAsWindow_(
TOPPASWidget* sw,
const String& caption,
const int special_id = -1);
192 void insertNewVertex_(
double x,
double y, QTreeWidgetItem* item = 0);
194 void insertNewVertexInCenter_(QTreeWidgetItem* item);
197 void downloadTOPPASfromHomepage_(
const QUrl& url);
199 void toppasFileDownloaded_(QNetworkReply* r);
201 void TOPPASreadyRead();
204 void descriptionUpdated_();
240 QLabel* message_label_;
266 void closeEvent(QCloseEvent* event);
267 void keyPressEvent(QKeyEvent* e);
286 static int const IDINITIALUNTITLED = 1000;
295 static QString savePipelineAs(
TOPPASWidget* w, QString current_path);
298 static QString loadPipelineResourceFile(
TOPPASWidget* w, QString current_path);
301 static QString savePipelineResourceFile(
TOPPASWidget* w, QString current_path);
304 static QString refreshPipelineParameters(
TOPPASWidget* tw, QString current_path);
310 #endif // OPENMS_APPLICATIONS_TOPPASBASE_H A container for all visual items of a TOPPAS workflow.
Definition: TOPPASScene.h:86
A more convenient string class.
Definition: String.h:57
QWorkspace * ws_
Main workspace.
Definition: TOPPASBase.h:220
Tree view implementation for the list of TOPP tools.
Definition: TOPPASTreeView.h:55
unsigned int UInt
Unsigned integer type.
Definition: Types.h:95
Warning.
Definition: TOPPASBase.h:274
QNetworkAccessManager * network_manager_
download .toppas files from homepage
Definition: TOPPASBase.h:225
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
static qreal z_value_
z-value counter for new inserted nodes (new nodes should be on top)
Definition: TOPPASBase.h:259
QNetworkReply * network_reply_
the content of the network request
Definition: TOPPASBase.h:227
String tmp_path_
The path for temporary files.
Definition: TOPPASBase.h:253
LogState
Log message states.
Definition: TOPPASBase.h:271
QToolBar * tool_bar_
Definition: TOPPASBase.h:216
Notice.
Definition: TOPPASBase.h:273
Main window of the TOPPAS tool.
Definition: TOPPASBase.h:78
TOPPASLogWindow * log_
Log output window.
Definition: TOPPASBase.h:209
TOPPASScene * clipboard_scene_
The clipboard.
Definition: TOPPASBase.h:281
QListWidget * blocks_list_
List of ready analysis pipelines.
Definition: TOPPASBase.h:235
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
TOPPASTabBar * tab_bar_
Tab bar. The address of the corresponding window to a tab is stored as an int in tabData() ...
Definition: TOPPASBase.h:230
QTextEdit * desc_
Workflow Description window.
Definition: TOPPASBase.h:211
String current_path_
Definition: TOPPASBase.h:250
QWebView * webview_
OpenMS homepage workflow browser.
Definition: TOPPASBase.h:223
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
QTextEdit implementation with a "clear" button in the context menu.
Definition: TOPPASLogWindow.h:51
QTreeWidget * tools_tree_view_
Tree view of all available TOPP tools.
Definition: TOPPASBase.h:233
Convenience tab bar implementation.
Definition: TOPPASTabBar.h:60
static int node_offset_
Offset counter for new inserted nodes (to avoid invisible stacking)
Definition: TOPPASBase.h:256