2009-03-01 08:38:21 +01:00
|
|
|
/*
|
|
|
|
* Cppcheck - A tool for static C/C++ code analysis
|
2011-01-09 20:33:36 +01:00
|
|
|
* Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team.
|
2009-03-01 08:38:21 +01:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2009-09-27 17:08:31 +02:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2009-03-01 08:38:21 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QSettings>
|
2009-03-22 13:32:07 +01:00
|
|
|
#include <QFileDialog>
|
2009-07-02 10:32:29 +02:00
|
|
|
#include <QSignalMapper>
|
|
|
|
#include <QActionGroup>
|
2011-05-04 07:30:54 +02:00
|
|
|
#include <QTimer>
|
2009-07-01 22:46:42 +02:00
|
|
|
#include <QToolBar>
|
2010-11-26 21:51:38 +01:00
|
|
|
#include <QStringList>
|
2009-03-22 13:32:07 +01:00
|
|
|
|
2009-06-20 18:55:23 +02:00
|
|
|
#include "resultsview.h"
|
2009-03-22 13:32:07 +01:00
|
|
|
#include "settingsdialog.h"
|
2009-07-02 10:32:29 +02:00
|
|
|
#include "translationhandler.h"
|
2010-07-26 22:59:35 +02:00
|
|
|
#include "settings.h"
|
2011-10-02 21:08:12 +02:00
|
|
|
#include "platforms.h"
|
2009-07-02 10:32:29 +02:00
|
|
|
#include "ui_main.h"
|
2010-08-15 10:35:46 +02:00
|
|
|
|
2009-06-20 18:55:23 +02:00
|
|
|
class ThreadHandler;
|
2010-07-16 16:48:13 +02:00
|
|
|
class LogView;
|
2010-08-15 10:35:46 +02:00
|
|
|
class Project;
|
2010-08-28 19:37:21 +02:00
|
|
|
class ErrorItem;
|
2010-09-01 08:12:24 +02:00
|
|
|
class StatsDialog;
|
2011-05-12 11:34:23 +02:00
|
|
|
class QAction;
|
2011-12-27 11:46:21 +01:00
|
|
|
class QActionGroup;
|
2009-06-20 18:55:23 +02:00
|
|
|
|
2009-07-17 10:49:01 +02:00
|
|
|
/// @addtogroup GUI
|
|
|
|
/// @{
|
|
|
|
|
2009-03-01 08:38:21 +01:00
|
|
|
/**
|
|
|
|
* @brief Main window for cppcheck-gui
|
|
|
|
*
|
|
|
|
*/
|
2011-10-13 20:53:06 +02:00
|
|
|
class MainWindow : public QMainWindow {
|
2009-03-01 08:38:21 +01:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2011-05-12 11:34:23 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Maximum number of MRU project items in File-menu.
|
|
|
|
*/
|
|
|
|
enum { MaxRecentProjects = 5 };
|
|
|
|
|
2009-03-01 08:38:21 +01:00
|
|
|
MainWindow();
|
|
|
|
virtual ~MainWindow();
|
|
|
|
|
2011-10-02 21:08:12 +02:00
|
|
|
/**
|
|
|
|
* List of checked platforms.
|
|
|
|
*/
|
|
|
|
Platforms mPlatforms;
|
|
|
|
|
2009-03-01 08:38:21 +01:00
|
|
|
public slots:
|
|
|
|
|
|
|
|
/**
|
2009-03-22 13:32:07 +01:00
|
|
|
* @brief Slot for check files menu item
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void CheckFiles();
|
2009-05-23 18:29:24 +02:00
|
|
|
|
2009-06-01 23:54:21 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot to recheck files
|
|
|
|
*
|
2009-05-23 18:29:24 +02:00
|
|
|
*/
|
2009-03-22 16:42:00 +01:00
|
|
|
void ReCheck();
|
2009-05-23 18:29:24 +02:00
|
|
|
|
2009-06-01 23:54:21 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot to clear all search results
|
|
|
|
*
|
2009-05-23 18:29:24 +02:00
|
|
|
*/
|
2009-03-22 16:42:00 +01:00
|
|
|
void ClearResults();
|
2009-03-22 13:32:07 +01:00
|
|
|
|
2010-07-10 15:37:36 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot to open XML report file
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void OpenXML();
|
|
|
|
|
2009-05-23 18:29:24 +02:00
|
|
|
/**
|
|
|
|
* @brief Show errors with type "style"
|
2009-06-27 09:43:03 +02:00
|
|
|
* @param checked Should errors be shown (true) or hidden (false)
|
2009-05-23 18:29:24 +02:00
|
|
|
*/
|
2009-03-22 18:39:44 +01:00
|
|
|
void ShowStyle(bool checked);
|
2009-05-23 18:29:24 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Show errors with type "error"
|
2009-06-27 09:43:03 +02:00
|
|
|
* @param checked Should errors be shown (true) or hidden (false)
|
2009-05-23 18:29:24 +02:00
|
|
|
*/
|
2009-03-22 18:39:44 +01:00
|
|
|
void ShowErrors(bool checked);
|
2009-05-23 18:29:24 +02:00
|
|
|
|
2010-10-18 19:50:34 +02:00
|
|
|
/**
|
|
|
|
* @brief Show errors with type "warning"
|
|
|
|
* @param checked Should errors be shown (true) or hidden (false)
|
|
|
|
*/
|
|
|
|
void ShowWarnings(bool checked);
|
|
|
|
|
2010-12-27 10:06:31 +01:00
|
|
|
/**
|
|
|
|
* @brief Show errors with type "portability"
|
|
|
|
* @param checked Should errors be shown (true) or hidden (false)
|
|
|
|
*/
|
|
|
|
void ShowPortability(bool checked);
|
|
|
|
|
2010-10-18 19:50:34 +02:00
|
|
|
/**
|
|
|
|
* @brief Show errors with type "performance"
|
|
|
|
* @param checked Should errors be shown (true) or hidden (false)
|
|
|
|
*/
|
|
|
|
void ShowPerformance(bool checked);
|
|
|
|
|
2010-12-26 13:36:24 +01:00
|
|
|
/**
|
|
|
|
* @brief Show errors with type "information"
|
|
|
|
* @param checked Should errors be shown (true) or hidden (false)
|
|
|
|
*/
|
|
|
|
void ShowInformation(bool checked);
|
|
|
|
|
2009-05-23 18:29:24 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot to check all "Show errors" menu items
|
|
|
|
*/
|
2009-05-23 10:17:27 +02:00
|
|
|
void CheckAll();
|
2009-05-23 18:29:24 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Slot to uncheck all "Show errors" menu items
|
|
|
|
*/
|
2009-05-23 10:17:27 +02:00
|
|
|
void UncheckAll();
|
2009-03-22 18:39:44 +01:00
|
|
|
|
2009-03-22 13:32:07 +01:00
|
|
|
/**
|
|
|
|
* @brief Slot for check directory menu item
|
2009-03-01 08:38:21 +01:00
|
|
|
*
|
|
|
|
*/
|
2009-03-22 13:32:07 +01:00
|
|
|
void CheckDirectory();
|
|
|
|
|
2009-06-01 23:54:21 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot to open program's settings dialog
|
|
|
|
*
|
2009-05-23 18:29:24 +02:00
|
|
|
*/
|
2009-03-22 13:32:07 +01:00
|
|
|
void ProgramSettings();
|
2009-03-01 08:38:21 +01:00
|
|
|
|
2009-06-01 23:54:21 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot to open program's about dialog
|
|
|
|
*
|
2009-05-24 10:53:29 +02:00
|
|
|
*/
|
|
|
|
void About();
|
|
|
|
|
2009-06-14 11:57:43 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot to to show license text
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void ShowLicense();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Slot to to show authors list
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void ShowAuthors();
|
2009-05-26 17:21:39 +02:00
|
|
|
|
2009-06-01 23:54:21 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot to stop processing files
|
|
|
|
*
|
2009-05-26 17:21:39 +02:00
|
|
|
*/
|
|
|
|
void Save();
|
|
|
|
|
2011-08-24 21:41:48 +02:00
|
|
|
/**
|
|
|
|
* @brief Check the project.
|
|
|
|
* @param project Pointer to the project to check.
|
|
|
|
*/
|
|
|
|
void CheckProject(Project *project);
|
|
|
|
|
2010-07-08 17:59:06 +02:00
|
|
|
/**
|
2010-07-13 11:33:24 +02:00
|
|
|
* @brief Slot to create new project file..
|
2010-07-08 17:59:06 +02:00
|
|
|
*
|
|
|
|
*/
|
2010-07-13 11:33:24 +02:00
|
|
|
void NewProjectFile();
|
2010-07-08 17:59:06 +02:00
|
|
|
|
|
|
|
/**
|
2010-08-15 10:35:46 +02:00
|
|
|
* @brief Slot to open project file and start checking contained paths.
|
2010-07-08 17:59:06 +02:00
|
|
|
*
|
|
|
|
*/
|
2010-07-13 11:33:24 +02:00
|
|
|
void OpenProjectFile();
|
2010-07-07 20:18:42 +02:00
|
|
|
|
2010-08-15 11:12:28 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot to close open project file.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void CloseProjectFile();
|
|
|
|
|
2010-08-15 15:12:32 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot to edit project file.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void EditProjectFile();
|
|
|
|
|
2010-07-16 16:48:13 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot for showing the log view.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void ShowLogView();
|
|
|
|
|
2010-09-01 08:12:24 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot for showing the scan and project statistics.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void ShowStatistics();
|
|
|
|
|
2009-03-01 08:38:21 +01:00
|
|
|
protected slots:
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Slot for checkthread's done signal
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void CheckDone();
|
2009-06-03 20:18:22 +02:00
|
|
|
|
2011-02-11 20:08:37 +01:00
|
|
|
/**
|
|
|
|
* @brief Lock down UI while checking
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void CheckLockDownUI();
|
|
|
|
|
2009-06-03 20:18:22 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot for enabling save and clear button
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void ResultsAdded();
|
2009-07-01 22:46:42 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-02 10:32:29 +02:00
|
|
|
* @brief Slot for showing/hiding standard toolbar
|
2009-07-01 22:46:42 +02:00
|
|
|
*/
|
2010-07-03 19:03:53 +02:00
|
|
|
void ToggleMainToolBar();
|
2009-07-02 10:32:29 +02:00
|
|
|
|
2010-07-03 18:37:09 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot for showing/hiding Categories toolbar
|
|
|
|
*/
|
|
|
|
void ToggleViewToolBar();
|
|
|
|
|
2011-05-04 07:30:54 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot for showing/hiding Filter toolbar
|
|
|
|
*/
|
|
|
|
void ToggleFilterToolBar();
|
|
|
|
|
2009-07-02 19:11:47 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot for updating View-menu before it is shown.
|
|
|
|
*/
|
|
|
|
void AboutToShowViewMenu();
|
2009-07-01 22:46:42 +02:00
|
|
|
|
2009-07-02 19:23:44 +02:00
|
|
|
/**
|
|
|
|
* @brief Slot when stop checking button is pressed
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void StopChecking();
|
|
|
|
|
2010-02-23 16:29:49 +01:00
|
|
|
/**
|
|
|
|
* @brief Open help file contents
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void OpenHelpContents();
|
|
|
|
|
2010-07-16 16:48:13 +02:00
|
|
|
/**
|
|
|
|
* @brief Add new line to log.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void Log(const QString &logline);
|
|
|
|
|
2010-08-28 19:37:21 +02:00
|
|
|
/**
|
|
|
|
* @brief Handle new debug error.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void DebugError(const ErrorItem &item);
|
|
|
|
|
2011-05-04 07:30:54 +02:00
|
|
|
/**
|
|
|
|
* @brief Filters the results in the result list.
|
|
|
|
*/
|
|
|
|
void FilterResults();
|
|
|
|
|
2011-05-12 11:34:23 +02:00
|
|
|
/**
|
|
|
|
* @brief Opens recently opened project file.
|
|
|
|
*/
|
|
|
|
void OpenRecentProject();
|
2011-05-04 07:30:54 +02:00
|
|
|
|
2011-09-29 21:46:19 +02:00
|
|
|
/**
|
2011-10-02 21:08:12 +02:00
|
|
|
* @brief Selects the platform as checked platform.
|
2011-09-29 21:46:19 +02:00
|
|
|
*/
|
2011-10-02 21:08:12 +02:00
|
|
|
void SelectPlatform();
|
2011-09-29 21:46:19 +02:00
|
|
|
|
2009-03-01 08:38:21 +01:00
|
|
|
protected:
|
2009-05-23 18:29:24 +02:00
|
|
|
|
2009-06-14 23:48:16 +02:00
|
|
|
/**
|
2009-07-02 10:32:29 +02:00
|
|
|
* @brief Set current language
|
2011-02-07 11:30:13 +01:00
|
|
|
* @param code Language code of the language to set (e.g. "en").
|
2009-06-14 23:48:16 +02:00
|
|
|
*/
|
2011-02-07 11:30:13 +01:00
|
|
|
void SetLanguage(const QString &code);
|
2009-06-14 23:48:16 +02:00
|
|
|
|
2009-06-04 16:02:35 +02:00
|
|
|
/**
|
|
|
|
* @brief Event coming when application is about to close.
|
|
|
|
*/
|
|
|
|
virtual void closeEvent(QCloseEvent *event);
|
|
|
|
|
2009-06-01 23:54:21 +02:00
|
|
|
/**
|
|
|
|
* @brief Helper function to toggle all show error menu items
|
|
|
|
* @param checked Should all errors be shown (true) or hidden (false)
|
2009-05-23 18:29:24 +02:00
|
|
|
*/
|
2009-05-23 10:17:27 +02:00
|
|
|
void ToggleAllChecked(bool checked);
|
2009-05-23 18:29:24 +02:00
|
|
|
|
2009-06-01 23:54:21 +02:00
|
|
|
/**
|
|
|
|
* @brief Helper function to enable/disable all check,recheck buttons
|
|
|
|
*
|
2009-05-23 18:29:24 +02:00
|
|
|
*/
|
2009-03-22 16:42:00 +01:00
|
|
|
void EnableCheckButtons(bool enable);
|
2009-05-23 18:29:24 +02:00
|
|
|
|
2009-06-01 23:54:21 +02:00
|
|
|
/**
|
2009-06-17 21:35:24 +02:00
|
|
|
* @brief Select files/or directory to check.
|
|
|
|
* Helper function to open a dialog to ask user to select files or
|
|
|
|
* directory to check. Use native dialogs instead of QT:s own dialogs.
|
2009-06-01 23:54:21 +02:00
|
|
|
*
|
|
|
|
* @param mode Dialog open mode (files or directories)
|
2009-07-16 07:20:29 +02:00
|
|
|
* @return QStringList of files or directories that were selected to check
|
2009-05-23 18:29:24 +02:00
|
|
|
*/
|
2009-07-16 07:20:29 +02:00
|
|
|
QStringList SelectFilesToCheck(QFileDialog::FileMode mode);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Check all files specified in parameter files
|
|
|
|
*
|
|
|
|
* @param files List of files and/or directories to check
|
|
|
|
*/
|
|
|
|
void DoCheckFiles(const QStringList &files);
|
2009-05-23 18:29:24 +02:00
|
|
|
|
2009-06-01 23:54:21 +02:00
|
|
|
/**
|
2009-06-22 10:57:17 +02:00
|
|
|
* @brief Get our default cppcheck settings and read project file.
|
2009-06-01 23:54:21 +02:00
|
|
|
*
|
|
|
|
* @return Default cppcheck settings
|
2009-05-23 18:29:24 +02:00
|
|
|
*/
|
2009-05-24 10:53:29 +02:00
|
|
|
Settings GetCppcheckSettings();
|
2009-05-23 18:29:24 +02:00
|
|
|
|
2009-03-01 08:38:21 +01:00
|
|
|
/**
|
|
|
|
* @brief Load program settings
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void LoadSettings();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Save program settings
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void SaveSettings();
|
|
|
|
|
2009-06-22 17:45:48 +02:00
|
|
|
/**
|
|
|
|
* @brief Format main window title.
|
|
|
|
* @param text Text added to end of the title.
|
|
|
|
*/
|
|
|
|
void FormatAndSetTitle(const QString &text = QString());
|
|
|
|
|
2010-02-23 16:29:49 +01:00
|
|
|
/**
|
|
|
|
* @brief Show help contents
|
|
|
|
*/
|
2011-03-26 15:06:11 +01:00
|
|
|
void OpenOnlineHelp();
|
2010-02-23 16:29:49 +01:00
|
|
|
|
2010-08-25 17:54:45 +02:00
|
|
|
/**
|
|
|
|
* @brief Enable or disable project file actions.
|
2010-08-25 19:59:30 +02:00
|
|
|
* Project editing and closing actions should be only enabled when project is
|
|
|
|
* open and we are not checking files.
|
2010-08-25 17:54:45 +02:00
|
|
|
* @param enable If true then actions are enabled.
|
|
|
|
*/
|
|
|
|
void EnableProjectActions(bool enable);
|
|
|
|
|
2010-08-25 19:59:30 +02:00
|
|
|
/**
|
|
|
|
* @brief Enable or disable project file actions.
|
|
|
|
* Project opening and creating actions should be disabled when checking.
|
|
|
|
* @param enable If true then actions are enabled.
|
|
|
|
*/
|
|
|
|
void EnableProjectOpenActions(bool enable);
|
|
|
|
|
2010-11-26 21:51:38 +01:00
|
|
|
/**
|
|
|
|
* @brief Add include directories.
|
|
|
|
* @param includeDirs List of include directories to add.
|
|
|
|
* @param result Settings class where include directories are added.
|
|
|
|
*/
|
|
|
|
void AddIncludeDirs(const QStringList &includeDirs, Settings &result);
|
|
|
|
|
2011-04-07 14:34:15 +02:00
|
|
|
/**
|
|
|
|
* @brief Handle command line parameters given to GUI.
|
|
|
|
* @param params List of string given to command line.
|
|
|
|
*/
|
|
|
|
void HandleCLIParams(const QStringList ¶ms);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Load project file to the GUI.
|
|
|
|
* @param filePath Filename (inc. path) of project file to load.
|
|
|
|
*/
|
|
|
|
void LoadProjectFile(const QString &filePath);
|
|
|
|
|
2011-05-12 11:34:23 +02:00
|
|
|
/**
|
|
|
|
* @brief Update project MRU items in File-menu.
|
|
|
|
*/
|
|
|
|
void UpdateMRUMenuItems();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Add project file (path) to the MRU list.
|
|
|
|
* @param project Full path to the project file to add.
|
|
|
|
*/
|
|
|
|
void AddProjectMRU(const QString &project);
|
|
|
|
|
2011-05-12 12:30:22 +02:00
|
|
|
/**
|
|
|
|
* @brief Remove project file (path) from the MRU list.
|
|
|
|
* @param project Full path of the project file to remove.
|
|
|
|
*/
|
|
|
|
void RemoveProjectMRU(const QString &project);
|
|
|
|
|
2009-03-01 08:38:21 +01:00
|
|
|
/**
|
|
|
|
* @brief Program settings
|
|
|
|
*
|
|
|
|
*/
|
2009-07-02 10:32:29 +02:00
|
|
|
QSettings *mSettings;
|
2009-03-22 16:42:00 +01:00
|
|
|
|
2009-05-26 17:21:39 +02:00
|
|
|
/**
|
2009-07-02 10:32:29 +02:00
|
|
|
* @brief Thread to check files
|
2009-05-26 17:21:39 +02:00
|
|
|
*
|
|
|
|
*/
|
2009-07-02 10:32:29 +02:00
|
|
|
ThreadHandler *mThread;
|
2009-05-26 17:21:39 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-02 10:32:29 +02:00
|
|
|
* @brief List of user defined applications to open errors with
|
2009-05-26 17:21:39 +02:00
|
|
|
*
|
|
|
|
*/
|
2009-07-02 10:32:29 +02:00
|
|
|
ApplicationList *mApplications;
|
2009-03-22 18:39:44 +01:00
|
|
|
|
2009-03-01 21:44:42 +01:00
|
|
|
/**
|
2009-07-02 10:32:29 +02:00
|
|
|
* @brief Class to handle translation changes
|
2009-03-01 21:44:42 +01:00
|
|
|
*
|
2009-03-01 08:38:21 +01:00
|
|
|
*/
|
2009-07-02 10:32:29 +02:00
|
|
|
TranslationHandler *mTranslation;
|
2009-03-01 08:38:21 +01:00
|
|
|
|
2009-03-01 21:44:42 +01:00
|
|
|
/**
|
2009-07-02 10:32:29 +02:00
|
|
|
* @brief Class holding all UI components
|
2009-03-01 21:44:42 +01:00
|
|
|
*
|
2009-03-01 08:38:21 +01:00
|
|
|
*/
|
2009-07-02 10:32:29 +02:00
|
|
|
Ui::MainWindow mUI;
|
2009-03-01 08:38:21 +01:00
|
|
|
|
2009-06-22 10:57:17 +02:00
|
|
|
/**
|
|
|
|
* @brief Current checked directory.
|
|
|
|
*/
|
|
|
|
QString mCurrentDirectory;
|
2009-07-01 22:46:42 +02:00
|
|
|
|
2010-07-16 16:48:13 +02:00
|
|
|
/**
|
2010-08-15 10:35:46 +02:00
|
|
|
* @brief Log view.
|
2010-07-16 16:48:13 +02:00
|
|
|
*/
|
|
|
|
LogView *mLogView;
|
|
|
|
|
2010-08-15 10:35:46 +02:00
|
|
|
/**
|
|
|
|
* @brief Project (file).
|
|
|
|
*/
|
|
|
|
Project *mProject;
|
|
|
|
|
2011-05-04 07:30:54 +02:00
|
|
|
/**
|
|
|
|
* @brief Filter field in the Filter toolbar.
|
|
|
|
*/
|
|
|
|
QLineEdit* mLineEditFilter;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Timer to delay filtering while typing.
|
|
|
|
*/
|
|
|
|
QTimer* mFilterTimer;
|
|
|
|
|
2011-12-27 11:46:21 +01:00
|
|
|
/**
|
|
|
|
* @brief GUI actions for selecting the checked platform.
|
|
|
|
*/
|
|
|
|
QActionGroup *mPlatformActions;
|
|
|
|
|
2010-07-17 22:52:50 +02:00
|
|
|
private:
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Are we exiting the cppcheck?
|
|
|
|
* If this is true then the cppcheck is waiting for check threads to exit
|
|
|
|
* so that the application can be closed.
|
|
|
|
*/
|
|
|
|
bool mExiting;
|
|
|
|
|
2011-05-12 11:34:23 +02:00
|
|
|
/**
|
2011-08-24 22:14:28 +02:00
|
|
|
* @brief Project MRU menu actions.
|
|
|
|
* List of MRU menu actions. Needs also to store the separator.
|
|
|
|
*/
|
|
|
|
QAction *mRecentProjectActs[MaxRecentProjects + 1];
|
2009-03-01 08:38:21 +01:00
|
|
|
};
|
2009-07-17 10:49:01 +02:00
|
|
|
/// @}
|
2009-03-01 08:38:21 +01:00
|
|
|
#endif // MAINWINDOW_H
|