Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
path_selection_edit.h
1/* path_chooser_delegate.cpp
2 * Delegate to select a file path for a treeview entry
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <[email protected]>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11#ifndef PATH_SELECTOR_EDIT_H
12#define PATH_SELECTOR_EDIT_H
13
14#include <QWidget>
15#include <QString>
16#include <QLineEdit>
17#include <QToolButton>
18
19class PathSelectionEdit : public QWidget
20{
21 Q_OBJECT
22
23public:
24 PathSelectionEdit(QString title, QString path, bool selectFile, QWidget *parent = 0);
25 PathSelectionEdit(QWidget *parent = 0);
26
27 QString path() const;
28
29public slots:
30 void setPath(QString newPath = QString());
31
32signals:
33 void pathChanged(QString newPath);
34
35protected slots:
36 void browseForPath();
37
38private:
39 QString _title;
40 QString _path;
41 bool _selectFile;
42
43 QLineEdit * _edit;
44 QToolButton * _button;
45};
46
47#endif // PATH_SELECTOR_EDIT_H
Definition path_selection_edit.h:20