"Fossies" - the Fresh Open Source Software Archive

Member "cppcheck-1.89/gui/applicationdialog.h" (1 Sep 2019, 1876 Bytes) of package /windows/misc/cppcheck-1.89.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "applicationdialog.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 1.88_vs_1.89.

    1 /*
    2  * Cppcheck - A tool for static C/C++ code analysis
    3  * Copyright (C) 2007-2019 Cppcheck team.
    4  *
    5  * This program is free software: you can redistribute it and/or modify
    6  * it under the terms of the GNU General Public License as published by
    7  * the Free Software Foundation, either version 3 of the License, or
    8  * (at your option) any later version.
    9  *
   10  * This program is distributed in the hope that it will be useful,
   11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13  * GNU General Public License for more details.
   14  *
   15  * You should have received a copy of the GNU General Public License
   16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
   17  */
   18 
   19 #ifndef APPLICATIONDIALOG_H
   20 #define APPLICATIONDIALOG_H
   21 
   22 #include <QDialog>
   23 #include <QString>
   24 #include "application.h"
   25 #include "ui_application.h"
   26 
   27 class QWidget;
   28 
   29 /// @addtogroup GUI
   30 /// @{
   31 
   32 /**
   33 * @brief Dialog to edit a startable application.
   34 * User can open errors with user specified applications. This is a dialog
   35 * to modify/add an application to open errors with.
   36 *
   37 */
   38 class ApplicationDialog : public QDialog {
   39     Q_OBJECT
   40 
   41 public:
   42     /**
   43     * @brief Constructor.
   44     * @param title Title for the dialog.
   45     * @param app Application definition.
   46     * @param parent Parent widget.
   47     */
   48     ApplicationDialog(const QString &title,
   49                       Application &app,
   50                       QWidget *parent = nullptr);
   51     virtual ~ApplicationDialog();
   52 
   53 protected slots:
   54 
   55     void ok();
   56 
   57     /**
   58     * @brief Slot to browse for an application
   59     *
   60     */
   61     void browse();
   62 
   63 protected:
   64 
   65     /**
   66     * @brief UI from the Qt designer
   67     *
   68     */
   69     Ui::ApplicationDialog mUI;
   70 
   71 private:
   72 
   73     /**
   74     * @brief Underlying Application
   75     */
   76     Application& mApplication;
   77 };
   78 /// @}
   79 #endif // APPLICATIONDIALOG_H