OpenMS  3.0.0
SwathWizardBase.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2022.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Chris Bielow $
32 // $Authors: Chris Bielow $
33 // --------------------------------------------------------------------------
34 
35 #pragma once
36 
37 // OpenMS_GUI config
38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
39 
40 //OpenMS
42 
43 //QT
44 #include <QtWidgets/QMainWindow>
45 #include <QtWidgets/QMdiArea>
46 #include <QtWidgets/QButtonGroup>
47 #include <QtCore/QProcess>
48 #include <QtWidgets/QSplashScreen>
49 #include <QtNetwork/QNetworkReply>
50 
51 class QToolBar;
52 class QListWidget;
53 class QTextEdit;
54 class QMdiArea;
55 class QLabel;
56 class QWidget;
57 class QTreeWidget;
58 class QTreeWidgetItem;
59 class QWebView;
60 class QNetworkAccessManager;
61 
62 namespace Ui
63 {
64  class SwathWizardBase;
65 }
66 
67 namespace OpenMS
68 {
73  class OPENMS_GUI_DLLAPI SwathWizardBase :
74  public QMainWindow,
75  public DefaultParamHandler
76  {
77  Q_OBJECT
78 
79 public:
81  SwathWizardBase(QWidget* parent = nullptr);
83  ~SwathWizardBase() override;
84 
85  void showAboutDialog();
86 
87 protected slots:
88 
89 
90 protected:
92  //TOPPASLogWindow* log_;
93 
97 
100 
101  private slots:
102  // names created by QtCreator. Do not change them.
103  void on_actionExit_triggered();
104  void on_actionVisit_OpenSwath_homepage_triggered();
105  void on_actionReport_new_issue_triggered();
106 
107  private:
108  Ui::SwathWizardBase* ui;
109 
110  }; //class
111 
112 } //namespace
LogStream.h
DefaultParamHandler.h
OpenMS::StringUtils::hasSubstring
static bool hasSubstring(const String &this_s, const String &string)
Definition: StringUtilsSimple.h:137
VersionInfo.h
QListWidget
QTextEdit
OpenMS::String
A more convenient string class.
Definition: String.h:58
OpenMS::QApplicationTOPP
Extension to the QApplication for running TOPPs GUI tools.
Definition: QApplicationTOPP.h:50
OpenMS::SwathWizardBase::showAboutDialog
void showAboutDialog()
Definition: SwathWizardBase.cpp:81
QWidget
print_usage
void print_usage(Logger::LogStream &stream=OpenMS_Log_info)
Definition: SwathWizard.cpp:151
OpenMS::DefaultParamHandler
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
OpenMS
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
QMdiArea
OpenMS::SwathWizardBase::current_path_
String current_path_
Log output window.
Definition: SwathWizardBase.h:96
Ui
Definition: SwathWizardBase.h:62
OpenMS::QApplicationTOPP::showAboutDialog
static void showAboutDialog(QWidget *parent, const QString &toolname)
Show the About-Dialog with License and Citation for all GUI tools.
Definition: QApplicationTOPP.cpp:131
OpenMS::SwathWizardBase::~SwathWizardBase
~SwathWizardBase() override
Destructor.
Definition: SwathWizardBase.cpp:75
OpenMS::Logger::LogStream::insert
void insert(std::ostream &s)
OpenMS::SwathWizardBase::on_actionVisit_OpenSwath_homepage_triggered
void on_actionVisit_OpenSwath_homepage_triggered()
Definition: SwathWizardBase.cpp:91
OpenMS::Param::parseCommandLine
void parseCommandLine(const int argc, const char **argv, const std::string &prefix="")
Parses command line arguments.
main
int main(int argc, const char **argv)
Definition: SwathWizard.cpp:166
SwathTabWidget.h
OpenMS::Param::exists
bool exists(const std::string &key) const
Tests if a parameter is set (expecting its fully qualified name, e.g., TextExporter:1:proteins_only)
OpenMS::SwathWizardBase
Main window of the SwathWizard tool.
Definition: SwathWizardBase.h:73
OpenMS::SwathWizardBase::on_actionReport_new_issue_triggered
void on_actionReport_new_issue_triggered()
Definition: SwathWizardBase.cpp:100
OpenMS::Logger::LogStream
Log Stream Class.
Definition: LogStream.h:311
QMainWindow
OpenMS::SwathWizardBase::ui
Ui::SwathWizardBase * ui
Definition: SwathWizardBase.h:108
OpenMS::SwathWizardBase::tmp_path_
String tmp_path_
The path for temporary files.
Definition: SwathWizardBase.h:99
OpenMS::ParamValue::toString
std::string toString(bool full_precision=true) const
Convert ParamValue to string.
OpenMS::OpenMS_Log_error
Logger::LogStream OpenMS_Log_error
Global static instance of a LogStream to capture messages classified as errors. By default it is boun...
OPENMS_LOG_ERROR
#define OPENMS_LOG_ERROR
Macro to be used if non-fatal error are reported (processing continues)
Definition: LogStream.h:455
OpenMS::OpenMS_Log_debug
Logger::LogStream OpenMS_Log_debug
Global static instance of a LogStream to capture messages classified as debug output....
OpenMS::OpenMS_Log_info
Logger::LogStream OpenMS_Log_info
Global static instance of a LogStream to capture messages classified as information....
tool_name
const char * tool_name
Definition: SwathWizard.cpp:145
SwathWizardBase.h
OpenMS::Param
Management and storage of parameters / INI files.
Definition: Param.h:69
QTreeWidget
OpenMS::Internal::SwathTabWidget
A multi-tabbed widget for the SwathWizard offering setting of parameters, input-file specification an...
Definition: SwathTabWidget.h:69
OPENMS_LOG_INFO
#define OPENMS_LOG_INFO
Macro if a information, e.g. a status should be reported.
Definition: LogStream.h:465
QApplicationTOPP.h
OpenMS::Param::getValue
const ParamValue & getValue(const std::string &key) const
Returns a value of a parameter.
OpenMS::SwathWizardBase::on_actionExit_triggered
void on_actionExit_triggered()
Definition: SwathWizardBase.cpp:86
TOPPBase.h
ToolHandler.h