35 #ifndef OPENMS_VISUAL_APPLICATIONS_TOPPASBASE_H 
   36 #define OPENMS_VISUAL_APPLICATIONS_TOPPASBASE_H 
   43 #include <QtGui/QMainWindow> 
   44 #include <QtGui/QWorkspace> 
   45 #include <QtGui/QButtonGroup> 
   46 #include <QtCore/QProcess> 
   47 #include <QtGui/QSplashScreen> 
   56 class QTreeWidgetItem;
 
   58 class QNetworkAccessManager;
 
   66   class TOPPASLogWindow;
 
   67   class TOPPASResources;
 
   92     void loadPreferences(
String filename = 
"");
 
   94     void savePreferences();
 
   96     void loadFiles(
const StringList& list, QSplashScreen* splash_screen);
 
  100     void addTOPPASFile(
const String& file_name, 
bool in_new_window = 
true);
 
  102     void openFileDialog();
 
  104     void openExampleDialog();
 
  106     void newPipeline(
const int id = -1);
 
  108     void includePipeline();
 
  110     void saveCurrentPipelineAs();
 
  114     void exportAsImage();
 
  116     void loadPipelineResourceFile();
 
  118     void savePipelineResourceFile();
 
  120     void openOnlinePipelineRepository();
 
  122     void preferencesDialog();
 
  124     void updateCurrentPath();
 
  128     void showAboutDialog();
 
  137     void showStatusMessage(std::string msg, 
OpenMS::UInt time);
 
  139     void showCursorStatus(
double x, 
double y);
 
  143     void updateToolBar();
 
  147     void abortPipeline();
 
  157     void outputVertexFinished(
const String& file);
 
  159     void updateTOPPOutputLog(
const QString& out);
 
  161     void showPipelineFinishedLogMessage();
 
  165     void sendClipboardContent();
 
  167     void refreshParameters();
 
  169     void openFilesInTOPPView(QStringList all_files);
 
  171     void openToppasFile(QString filename);
 
  177     void closeByTab(
int id);
 
  180     void focusByTab(
int id);
 
  186     void showAsWindow_(
TOPPASWidget* sw, 
const String& caption, 
const int special_id = -1);
 
  188     void insertNewVertex_(
double x, 
double y, QTreeWidgetItem* item = 0);
 
  190     void insertNewVertexInCenter_(QTreeWidgetItem* item);
 
  193     void downloadTOPPASfromHomepage_(
const QUrl& url);
 
  195     void toppasFileDownloaded_(QNetworkReply* r);
 
  198     void descriptionUpdated_();
 
  232     QLabel* message_label_;
 
  258     void closeEvent(QCloseEvent* event);
 
  259     void keyPressEvent(QKeyEvent* e);
 
  270     void showLogMessage_(LogState state, 
const String& heading, 
const String& body);
 
  278     static int const IDINITIALUNTITLED = 1000;
 
  287     static QString savePipelineAs(
TOPPASWidget* w, QString current_path);
 
  290     static QString loadPipelineResourceFile(
TOPPASWidget* w, QString current_path);
 
  293     static QString savePipelineResourceFile(
TOPPASWidget* w, QString current_path);
 
  296     static QString refreshPipelineParameters(
TOPPASWidget* tw, QString current_path);
 
  302 #endif // OPENMS_APPLICATIONS_TOPPASBASE_H 
A container for all visual items of a TOPPAS workflow. 
Definition: TOPPASScene.h:84
A more convenient string class. 
Definition: String.h:56
QWorkspace * ws_
Main workspace. 
Definition: TOPPASBase.h:214
Tree view implementation for the list of TOPP tools. 
Definition: TOPPASTreeView.h:54
Warning. 
Definition: TOPPASBase.h:266
QNetworkAccessManager * network_manager_
download .toppas files from homepage 
Definition: TOPPASBase.h:219
static qreal z_value_
z-value counter for new inserted nodes (new nodes should be on top) 
Definition: TOPPASBase.h:251
String tmp_path_
The path for temporary files. 
Definition: TOPPASBase.h:245
LogState
Log message states. 
Definition: TOPPASBase.h:263
QToolBar * tool_bar_
Definition: TOPPASBase.h:210
Notice. 
Definition: TOPPASBase.h:265
Main window of the TOPPAS tool. 
Definition: TOPPASBase.h:74
TOPPASLogWindow * log_
Log output window. 
Definition: TOPPASBase.h:203
TOPPASScene * clipboard_scene_
The clipboard. 
Definition: TOPPASBase.h:273
QListWidget * blocks_list_
List of ready analysis pipelines. 
Definition: TOPPASBase.h:227
TOPPASTabBar * tab_bar_
Tab bar. The address of the corresponding window to a tab is stored as an int in tabData() ...
Definition: TOPPASBase.h:222
String list. 
Definition: StringList.h:56
QTextEdit * desc_
Workflow Description window. 
Definition: TOPPASBase.h:205
String current_path_
Definition: TOPPASBase.h:242
QWebView * webview_
OpenMS homepage workflow browser. 
Definition: TOPPASBase.h:217
A base class for all classes handling default parameters. 
Definition: DefaultParamHandler.h:90
QTextEdit implementation with a "clear" button in the context menu. 
Definition: TOPPASLogWindow.h:52
QTreeWidget * tools_tree_view_
Tree view of all available TOPP tools. 
Definition: TOPPASBase.h:225
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:248