35 #ifndef OPENMS_VISUAL_APPLICATIONS_TOPPASBASE_H
36 #define OPENMS_VISUAL_APPLICATIONS_TOPPASBASE_H
46 #include <QtGui/QMainWindow>
47 #include <QtGui/QWorkspace>
48 #include <QtGui/QButtonGroup>
49 #include <QtCore/QProcess>
50 #include <QtGui/QSplashScreen>
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();
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 = 0);
193 void insertNewVertexInCenter_(QTreeWidgetItem* item);
196 void downloadTOPPASfromHomepage_(
const QUrl& url);
198 void toppasFileDownloaded_(QNetworkReply* r);
201 void descriptionUpdated_();
235 QLabel* message_label_;
261 void closeEvent(QCloseEvent* event);
262 void keyPressEvent(QKeyEvent* e);
273 void showLogMessage_(LogState state,
const String& heading,
const String& body);
281 static int const IDINITIALUNTITLED = 1000;
290 static QString savePipelineAs(
TOPPASWidget* w, QString current_path);
293 static QString loadPipelineResourceFile(
TOPPASWidget* w, QString current_path);
296 static QString savePipelineResourceFile(
TOPPASWidget* w, QString current_path);
299 static QString refreshPipelineParameters(
TOPPASWidget* tw, QString current_path);
305 #endif // OPENMS_APPLICATIONS_TOPPASBASE_H
Notice.
Definition: TOPPASBase.h:268
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:217
Tree view implementation for the list of TOPP tools.
Definition: TOPPASTreeView.h:55
QNetworkAccessManager * network_manager_
download .toppas files from homepage
Definition: TOPPASBase.h:222
Warning.
Definition: TOPPASBase.h:269
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:254
String tmp_path_
The path for temporary files.
Definition: TOPPASBase.h:248
QToolBar * tool_bar_
Definition: TOPPASBase.h:213
Main window of the TOPPAS tool.
Definition: TOPPASBase.h:77
TOPPASLogWindow * log_
Log output window.
Definition: TOPPASBase.h:206
TOPPASScene * clipboard_scene_
The clipboard.
Definition: TOPPASBase.h:276
QListWidget * blocks_list_
List of ready analysis pipelines.
Definition: TOPPASBase.h:230
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:225
QTextEdit * desc_
Workflow Description window.
Definition: TOPPASBase.h:208
LogState
Log message states.
Definition: TOPPASBase.h:266
String current_path_
Definition: TOPPASBase.h:245
QWebView * webview_
OpenMS homepage workflow browser.
Definition: TOPPASBase.h:220
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:228
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:251