MorphoGraphX
ProcessDocsDlg.hpp
1 //
2 // This file is part of MorphoGraphX - http://www.MorphoGraphX.org
3 // Copyright (C) 2012-2015 Richard S. Smith and collaborators.
4 //
5 // If you use MorphoGraphX in your work, please cite:
6 // http://dx.doi.org/10.7554/eLife.05864
7 //
8 // MorphoGraphX is free software, and is licensed under under the terms of the
9 // GNU General (GPL) Public License version 2.0, http://www.gnu.org/licenses.
10 //
11 #ifndef PROCESS_DOCS_DIALOG_HPP
12 #define PROCESS_DOCS_DIALOG_HPP
13 
14 #include <Config.hpp>
15 #include <Process.hpp>
16 
17 #include <QDialog>
18 
19 #include <memory>
20 #include <ui_ProcessDocs.h>
21 
22 class QTreeWidget;
23 class QTreeWidgetItem;
24 
25 namespace mgx { namespace gui {
26 
27 class mgx_EXPORT ProcessDocsDialog : public QDialog
28 {
29  Q_OBJECT
30 public:
31  ProcessDocsDialog(QWidget *parent);
32  virtual ~ProcessDocsDialog();
33 
34 protected slots:
35  void on_StackTreeWidget_currentItemChanged(QTreeWidgetItem* item, QTreeWidgetItem* previous);
36  void on_MeshTreeWidget_currentItemChanged(QTreeWidgetItem* item, QTreeWidgetItem* previous);
37  void on_GlobalTreeWidget_currentItemChanged(QTreeWidgetItem* item, QTreeWidgetItem* previous);
38 
39  void on_StackFilter_textChanged(const QString& text);
40  void on_MeshFilter_textChanged(const QString& text);
41  void on_GlobalFilter_textChanged(const QString& text);
42 
43 private:
44  void updateDocView(const QString& type, process::BaseProcessDefinition* def);
45  void findProcesses(const QString& type, QTreeWidget* tree);
46 
47  //std::unique_ptr<Ui::ProcessDocsDialog> ui;
48  Ui::ProcessDocsDialog *ui;
49 };
50 }}
51 
52 #endif
53 
Definition of a process, without the process factory.
Definition: Process.hpp:1239
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
File containing the definition of a Process.
Definition: ProcessDocsDlg.hpp:27