MorphoGraphX
ProcessUtils.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_UTILS_HPP
12 #define PROCESS_UTILS_HPP
13 
14 #include <Config.hpp>
15 
16 #include <QHash>
17 
18 class QTreeWidgetItem;
19 class QTreeWidget;
20 class QRegularExpression;
21 
22 namespace mgx {
31 
38  void filterProcesses(QTreeWidget* tree, const QString& filter_text);
39 }
40 #endif
41 
void filterProcesses(QTreeWidget *tree, const QString &filter_text)
Show only processes whose name match the regular expression.
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
QTreeWidgetItem * getFolder(QString name, QHash< QString, QTreeWidgetItem * > &folders, QTreeWidget *tree)
Find or create a folder from a process tree.