OpenMS
OutputDirectory.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Chris Bielow $
6 // $Authors: Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
14 #include <QWidget>
15 
16 namespace Ui
17 {
18  class OutputDirectoryTemplate;
19 }
20 
21 namespace OpenMS
22 {
29  class OPENMS_GUI_DLLAPI OutputDirectory :
30  public QWidget
31  {
32  Q_OBJECT
33  public:
38 
40  void setDirectory(const QString& dir);
41 
43  QString getDirectory() const;
44 
46  bool dirNameValid() const;
47 
48  signals:
50  void directoryChanged(const QString& dir);
51 
52  public slots:
53 
56 
57  private slots:
59  void textEditChanged_(const QString& new_text);
60 
61  private:
62  Ui::OutputDirectoryTemplate* ui_;
63  };
64 
65 }
A simple widget with a line-edit and a browse button to choose filenames.
Definition: OutputDirectory.h:31
void directoryChanged(const QString &dir)
emitted whenever the outputdirectory is changed (also when setDirectory() is used)
OutputDirectory(QWidget *parent)
Constructor.
Ui::OutputDirectoryTemplate * ui_
Definition: OutputDirectory.h:62
QString getDirectory() const
return the directory currently set (does not need to be valid)
void textEditChanged_(const QString &new_text)
forward internal textEdit::textChanged to directoryChanged signal
~OutputDirectory()
Destructor.
bool dirNameValid() const
check if the current directory exists and is writeable
void showFileDialog()
Lets the user select the file via a file dialog.
void setDirectory(const QString &dir)
Sets the text in the line-edit.
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition: FLASHDeconvWizardBase.h:37