Cppcheck
Public Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
LibraryDialog Class Reference

#include <librarydialog.h>

Inheritance diagram for LibraryDialog:

Public Member Functions

 LibraryDialog (QWidget *parent=nullptr)
 
 LibraryDialog (const LibraryDialog &)=delete
 
 ~LibraryDialog () override
 
LibraryDialogoperator= (const LibraryDialog &)=delete
 

Private Slots

void openCfg ()
 
void saveCfg ()
 
void saveCfgAs ()
 
void addFunction ()
 
void changeFunction ()
 
void editArg ()
 
void editFunctionName (QListWidgetItem *)
 
void filterFunctions (const QString &)
 
void selectFunction ()
 
void sortFunctions (bool)
 

Private Member Functions

CppcheckLibraryData::FunctioncurrentFunction ()
 
void updateArguments (const CppcheckLibraryData::Function &function)
 

Static Private Member Functions

static QString getArgText (const CppcheckLibraryData::Function::Arg &arg)
 

Private Attributes

Ui::LibraryDialog * mUi
 
CppcheckLibraryData mData
 
QString mFileName
 
bool mIgnoreChanges {}
 

Detailed Description

Definition at line 34 of file librarydialog.h.

Constructor & Destructor Documentation

◆ LibraryDialog() [1/2]

LibraryDialog::LibraryDialog ( QWidget *  parent = nullptr)
explicit

Definition at line 65 of file librarydialog.cpp.

References mUi, and selectFunction().

◆ LibraryDialog() [2/2]

LibraryDialog::LibraryDialog ( const LibraryDialog )
delete

◆ ~LibraryDialog()

LibraryDialog::~LibraryDialog ( )
override

Definition at line 80 of file librarydialog.cpp.

References mUi.

Member Function Documentation

◆ addFunction

void LibraryDialog::addFunction ( )
privateslot

◆ changeFunction

void LibraryDialog::changeFunction ( )
privateslot

Definition at line 306 of file librarydialog.cpp.

References currentFunction(), mIgnoreChanges, and mUi.

◆ currentFunction()

CppcheckLibraryData::Function * LibraryDialog::currentFunction ( )
private

Definition at line 85 of file librarydialog.cpp.

References mUi.

Referenced by changeFunction(), editArg(), selectFunction(), and sortFunctions().

◆ editArg

void LibraryDialog::editArg ( )
privateslot

◆ editFunctionName

void LibraryDialog::editFunctionName ( QListWidgetItem *  item)
privateslot

Definition at line 209 of file librarydialog.cpp.

References mIgnoreChanges, mUi, CppcheckLibraryData::Function::name, and NAMES.

◆ filterFunctions

void LibraryDialog::filterFunctions ( const QString &  filter)
privateslot

Definition at line 291 of file librarydialog.cpp.

References mUi.

Referenced by sortFunctions().

◆ getArgText()

QString LibraryDialog::getArgText ( const CppcheckLibraryData::Function::Arg arg)
staticprivate

◆ openCfg

void LibraryDialog::openCfg ( )
privateslot

◆ operator=()

LibraryDialog& LibraryDialog::operator= ( const LibraryDialog )
delete

◆ saveCfg

void LibraryDialog::saveCfg ( )
privateslot

Definition at line 149 of file librarydialog.cpp.

References mData, mFileName, mUi, and CppcheckLibraryData::toString().

Referenced by saveCfgAs().

◆ saveCfgAs

void LibraryDialog::saveCfgAs ( )
privateslot

Definition at line 168 of file librarydialog.cpp.

References Path::getPathFromFilename(), mFileName, and saveCfg().

◆ selectFunction

void LibraryDialog::selectFunction ( )
privateslot

Definition at line 228 of file librarydialog.cpp.

References currentFunction(), mIgnoreChanges, mUi, and updateArguments().

Referenced by LibraryDialog().

◆ sortFunctions

void LibraryDialog::sortFunctions ( bool  sort)
privateslot

◆ updateArguments()

void LibraryDialog::updateArguments ( const CppcheckLibraryData::Function function)
private

Definition at line 361 of file librarydialog.cpp.

References getArgText(), and mUi.

Referenced by selectFunction().

Member Data Documentation

◆ mData

CppcheckLibraryData LibraryDialog::mData
private

Definition at line 57 of file librarydialog.h.

Referenced by addFunction(), openCfg(), saveCfg(), and sortFunctions().

◆ mFileName

QString LibraryDialog::mFileName
private

Definition at line 58 of file librarydialog.h.

Referenced by openCfg(), saveCfg(), and saveCfgAs().

◆ mIgnoreChanges

bool LibraryDialog::mIgnoreChanges {}
private

◆ mUi

Ui::LibraryDialog* LibraryDialog::mUi
private

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