Cppcheck
Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes
ProjectFileDialog Class Reference

A dialog for editing project file data. More...

#include <projectfiledialog.h>

List of all members.

Public Member Functions

 ProjectFileDialog (const QString &path, QWidget *parent=0)
virtual ~ProjectFileDialog ()
QString GetRootPath () const
 Return project root path from the dialog control.
QStringList GetIncludePaths () const
 Return include paths from the dialog control.
QStringList GetDefines () const
 Return define names from the dialog control.
QStringList GetPaths () const
 Return check paths from the dialog control.
QStringList GetExcludedPaths () const
 Return excluded paths from the dialog control.
void SetRootPath (const QString &root)
 Set project root path to dialog control.
void SetIncludepaths (const QStringList &includes)
 Set include paths to dialog control.
void SetDefines (const QStringList &defines)
 Set define names to dialog control.
void SetPaths (const QStringList &paths)
 Set check paths to dialog control.
void SetExcludedPaths (const QStringList &paths)
 Set excluded paths to dialog control.

Protected Slots

void AddIncludeDir ()
 Browse for include directory.
void AddPath ()
 Add new path to check.
void RemoveIncludeDir ()
 Remove include directory from the list.
void EditIncludeDir ()
 Edit include directory in the list.
void EditPath ()
 Edit path in the list.
void RemovePath ()
 Remove path from the list.
void AddExcludePath ()
 Add new path to exclude.
void EditExcludePath ()
 Edit excluded path in the list.
void RemoveExcludePath ()
 Remove excluded path from the list.
void MoveIncludePathUp ()
 Move include path up in the list.
void MoveIncludePathDown ()
 Move include path down in the list.

Protected Member Functions

void LoadSettings ()
 Save dialog settings.
void SaveSettings () const
 Load dialog settings.
void AddIncludeDir (const QString &dir)
 Add new indlude directory.
void AddPath (const QString &path)
 Add new path to check.
void AddExcludePath (const QString &path)
 Add new path to ignore list.

Private Attributes

Ui::ProjectFile mUI
QString mFilePath
 Projectfile path.

Detailed Description

A dialog for editing project file data.

Definition at line 37 of file projectfiledialog.h.


Constructor & Destructor Documentation

ProjectFileDialog::ProjectFileDialog ( const QString &  path,
QWidget *  parent = 0 
)

Definition at line 56 of file projectfiledialog.cpp.

References SaveSettings().


Member Function Documentation

void ProjectFileDialog::AddExcludePath ( ) [protected, slot]

Add new path to exclude.

Definition at line 266 of file projectfiledialog.cpp.

References mFilePath.

Referenced by ProjectFileDialog(), and SetExcludedPaths().

void ProjectFileDialog::AddExcludePath ( const QString &  path) [protected]

Add new path to ignore list.

Parameters:
pathPath to add.

Definition at line 97 of file projectfiledialog.cpp.

References mUI.

void ProjectFileDialog::AddIncludeDir ( ) [protected, slot]

Browse for include directory.

Allow user to add new include directory to the list.

Definition at line 204 of file projectfiledialog.cpp.

References mFilePath.

Referenced by ProjectFileDialog(), and SetIncludepaths().

void ProjectFileDialog::AddIncludeDir ( const QString &  dir) [protected]

Add new indlude directory.

Parameters:
dirDirectory to add.

Definition at line 75 of file projectfiledialog.cpp.

References mUI.

void ProjectFileDialog::AddPath ( ) [protected, slot]

Add new path to check.

Definition at line 227 of file projectfiledialog.cpp.

References mFilePath.

Referenced by ProjectFileDialog(), and SetPaths().

void ProjectFileDialog::AddPath ( const QString &  path) [protected]

Add new path to check.

Parameters:
pathPath to add.

Definition at line 86 of file projectfiledialog.cpp.

References mUI.

void ProjectFileDialog::EditExcludePath ( ) [protected, slot]

Edit excluded path in the list.

Definition at line 282 of file projectfiledialog.cpp.

References mUI.

Referenced by ProjectFileDialog().

void ProjectFileDialog::EditIncludeDir ( ) [protected, slot]

Edit include directory in the list.

Definition at line 247 of file projectfiledialog.cpp.

References mUI.

Referenced by ProjectFileDialog().

void ProjectFileDialog::EditPath ( ) [protected, slot]

Edit path in the list.

Definition at line 253 of file projectfiledialog.cpp.

References mUI.

Referenced by ProjectFileDialog().

QStringList ProjectFileDialog::GetDefines ( ) const

Return define names from the dialog control.

Returns:
List of define names.

Definition at line 127 of file projectfiledialog.cpp.

References mUI.

Referenced by Project::Edit().

QStringList ProjectFileDialog::GetExcludedPaths ( ) const

Return excluded paths from the dialog control.

Returns:
List of excluded paths.

Definition at line 152 of file projectfiledialog.cpp.

References mUI.

Referenced by Project::Edit().

QStringList ProjectFileDialog::GetIncludePaths ( ) const

Return include paths from the dialog control.

Returns:
List of include paths.

Definition at line 116 of file projectfiledialog.cpp.

References mUI.

Referenced by Project::Edit().

QStringList ProjectFileDialog::GetPaths ( ) const

Return check paths from the dialog control.

Returns:
List of check paths.

Definition at line 141 of file projectfiledialog.cpp.

References mUI.

Referenced by Project::Edit().

QString ProjectFileDialog::GetRootPath ( ) const

Return project root path from the dialog control.

Returns:
Project root path.

Definition at line 108 of file projectfiledialog.cpp.

References mUI.

Referenced by Project::Edit().

void ProjectFileDialog::LoadSettings ( ) [protected]

Save dialog settings.

Definition at line 61 of file projectfiledialog.cpp.

References SETTINGS_PROJECT_DIALOG_HEIGHT, and SETTINGS_PROJECT_DIALOG_WIDTH.

Referenced by ProjectFileDialog().

void ProjectFileDialog::MoveIncludePathDown ( ) [protected, slot]

Move include path down in the list.

Definition at line 304 of file projectfiledialog.cpp.

References mUI.

Referenced by ProjectFileDialog().

void ProjectFileDialog::MoveIncludePathUp ( ) [protected, slot]

Move include path up in the list.

Definition at line 295 of file projectfiledialog.cpp.

References mUI.

Referenced by ProjectFileDialog().

void ProjectFileDialog::RemoveExcludePath ( ) [protected, slot]

Remove excluded path from the list.

Definition at line 288 of file projectfiledialog.cpp.

References mUI.

Referenced by ProjectFileDialog().

void ProjectFileDialog::RemoveIncludeDir ( ) [protected, slot]

Remove include directory from the list.

Definition at line 240 of file projectfiledialog.cpp.

References mUI.

Referenced by ProjectFileDialog().

void ProjectFileDialog::RemovePath ( ) [protected, slot]

Remove path from the list.

Definition at line 259 of file projectfiledialog.cpp.

References mUI.

Referenced by ProjectFileDialog().

void ProjectFileDialog::SaveSettings ( ) const [protected]

Load dialog settings.

Definition at line 68 of file projectfiledialog.cpp.

References SETTINGS_PROJECT_DIALOG_HEIGHT, and SETTINGS_PROJECT_DIALOG_WIDTH.

Referenced by ~ProjectFileDialog().

void ProjectFileDialog::SetDefines ( const QStringList &  defines)

Set define names to dialog control.

Parameters:
definesList of define names to set to dialog control.

Definition at line 176 of file projectfiledialog.cpp.

References mUI.

Referenced by Project::Edit().

void ProjectFileDialog::SetExcludedPaths ( const QStringList &  paths)

Set excluded paths to dialog control.

Parameters:
pathsList of path names to set to dialog control.

Definition at line 197 of file projectfiledialog.cpp.

References AddExcludePath().

Referenced by Project::Edit().

void ProjectFileDialog::SetIncludepaths ( const QStringList &  includes)

Set include paths to dialog control.

Parameters:
includesList of include paths to set to dialog control.

Definition at line 169 of file projectfiledialog.cpp.

References AddIncludeDir().

Referenced by Project::Edit().

void ProjectFileDialog::SetPaths ( const QStringList &  paths)

Set check paths to dialog control.

Parameters:
pathsList of path names to set to dialog control.

Definition at line 190 of file projectfiledialog.cpp.

References AddPath().

Referenced by Project::Edit().

void ProjectFileDialog::SetRootPath ( const QString &  root)

Set project root path to dialog control.

Parameters:
rootProject root path to set to dialog control.

Definition at line 163 of file projectfiledialog.cpp.

References mUI.

Referenced by Project::Edit().


Member Data Documentation

QString ProjectFileDialog::mFilePath [private]

Projectfile path.

Definition at line 196 of file projectfiledialog.h.

Referenced by AddExcludePath(), AddIncludeDir(), and AddPath().

Ui::ProjectFile ProjectFileDialog::mUI [private]

The documentation for this class was generated from the following files: