QGIS API Documentation 3.41.0-Master (57ec4277f5e)
Loading...
Searching...
No Matches
qgsfindfilesbypatternwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsfindfilesbypatternwidget.h
3 -----------------------------
4 begin : April 2019
5 copyright : (C) 2019 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSFINDFILESBYPATTERNWIDGET_H
17#define QGSFINDFILESBYPATTERNWIDGET_H
18
19#include "ui_qgsfindfilesbypatternwidget.h"
20#include "qgis_gui.h"
21
22#include <QDialog>
23
24class QDialogButtonBox;
25
32class GUI_EXPORT QgsFindFilesByPatternWidget : public QWidget, private Ui::QgsFindFilesByPatternWidgetBase
33{
34 Q_OBJECT
35
36 public:
40 QgsFindFilesByPatternWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
41
47 QStringList files() const { return mFiles; }
48
49 signals:
50
59 void findComplete( const QStringList &files );
60
61 private slots:
62
63 void find();
64 void cancel();
65
66 private:
67 bool mCanceled = false;
68 QStringList mFiles;
69};
70
77class GUI_EXPORT QgsFindFilesByPatternDialog : public QDialog
78{
79 Q_OBJECT
80
81 public:
85 QgsFindFilesByPatternDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr );
86
91 QStringList files() const;
92
93 private:
94 QgsFindFilesByPatternWidget *mWidget = nullptr;
95 QDialogButtonBox *mButtonBox = nullptr;
96};
97
98#endif // QGSFINDFILESBYPATTERNWIDGET_H
A dialog for finding files (recursively) by file pattern.
A reusable widget for finding files (recursively) by file pattern.
QStringList files() const
Returns the list of files found by the dialog.
void findComplete(const QStringList &files)
Emitted after files are found in the dialog.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53