ACAV f0ba4b7c9529
Abstract Syntax Tree (AST) visualization tool for C, C++, and Objective-C
Loading...
Searching...
No Matches
OpenProjectDialog.h
Go to the documentation of this file.
1/*$!{
2* Aurora Clang AST Viewer (ACAV)
3*
4* Copyright (c) 2026 Min Liu
5* Copyright (c) 2026 Michael David Adams
6*
7* SPDX-License-Identifier: GPL-2.0-or-later
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* This program is distributed in the hope that it will be useful,
15* but WITHOUT ANY WARRANTY; without even the implied warranty of
16* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17* GNU General Public License for more details.
18*
19* You should have received a copy of the GNU General Public License along
20* with this program; if not, see <https://www.gnu.org/licenses/>.
21}$!*/
22
25#pragma once
26
27#include <QDialog>
28#include <QLineEdit>
29#include <QPushButton>
30
31namespace acav {
32
39class OpenProjectDialog : public QDialog {
40 Q_OBJECT
41
42public:
43 explicit OpenProjectDialog(QWidget *parent = nullptr);
44
47 QString compilationDatabasePath() const;
48
51 QString projectRootPath() const;
52
53private slots:
54 void browseCompilationDatabase();
55 void browseProjectRoot();
56 void validateAndAccept();
57
58private:
59 QLineEdit *dbPathEdit_;
60 QLineEdit *projectRootEdit_;
61 QPushButton *dbBrowseButton_;
62 QPushButton *projectRootBrowseButton_;
63};
64
65} // namespace acav
QString projectRootPath() const
Get the selected project root path.
QString compilationDatabasePath() const
Get the selected compilation database path.