WSF
wizard::WsfExeManager Class Reference

#include <WsfExeManager.hpp>

Inherits QObject.

Collaboration diagram for wizard::WsfExeManager:

Public Member Functions

 WsfExeManager ()
 ~WsfExeManager () override
void LoadSettings (QSettings &aSettings)
void SaveSettings (QSettings &aSettings)
WsfExeFind (const UtPath &aPath) const
WsfExeAdd (const UtPath &aPath)
void SetDefault (int aIndex)
WsfExeGetDefaultExe ()
WsfExeGetNoExe ()
WsfStylerGetStyler ()
void Remove (WsfExe *aExePtr)
void Refresh ()
bool Refresh (WsfExe *aExePtr)
const std::vector< WsfExe * > & GetExes () const
WsfExeFindByPath (const std::string &aPath)
WsfExeFindByDescriptiveName (const std::string &aName)
WsfExeFindByApplicationName (const std::string &aName)
WsfExeFindBest (const std::string &aApplicationName, const std::string &aVersion, const std::string &aPath)
bool MoveDown (WsfExe *aExePtr)
bool MoveUp (WsfExe *aExePtr)
std::shared_ptr< WsfParseDefinitionsGetDefaultParseDefinitions ()
WsfExeFindFromXML (XML_Context &aContext)
int GetIndex (WsfExe *aExePtr)

Static Public Member Functions

static WsfExeManagerGetInstance ()
static void GetDefaultGrammar (WsfParseDefinitions &parseDefinitions, std::string &fullGrammarText)

Static Public Attributes

static UtCallbackListN< void()> WsfExeListUpdated

Protected Slots

void WsfExePicked (int)

Protected Member Functions

bool IgnoreExecutable (const std::string &aFileName)
void LoadDefaultGrammar ()
void Clear ()

Protected Attributes

std::vector< WsfExe * > mExes
WsfExemNoExePtr
std::unique_ptr< WsfStylermWsfStylerPtr
int mDefaultExeIndex
UtCallbackHolder mCallbacks
bool mAutoLoad
QSet< QString > mFileNamesToIgnore

Constructor & Destructor Documentation

◆ WsfExeManager()

wizard::WsfExeManager::WsfExeManager ( )

◆ ~WsfExeManager()

wizard::WsfExeManager::~WsfExeManager ( )
override

References Clear(), and mNoExePtr.

Member Function Documentation

◆ Add()

◆ Clear()

void wizard::WsfExeManager::Clear ( )
protected

References mExes, and mNoExePtr.

Referenced by Refresh(), WsfExePicked(), and ~WsfExeManager().

◆ Find()

wizard::WsfExe * wizard::WsfExeManager::Find ( const UtPath & aPath) const

References mExes.

Referenced by Add(), and SaveSettings().

◆ FindBest()

wizard::WsfExe * wizard::WsfExeManager::FindBest ( const std::string & aApplicationName,
const std::string & aVersion,
const std::string & aPath )

References Add(), FindByPath(), and mNoExePtr.

Referenced by FindFromXML().

◆ FindByApplicationName()

wizard::WsfExe * wizard::WsfExeManager::FindByApplicationName ( const std::string & aName)

References mExes.

◆ FindByDescriptiveName()

wizard::WsfExe * wizard::WsfExeManager::FindByDescriptiveName ( const std::string & aName)

References mExes.

◆ FindByPath()

wizard::WsfExe * wizard::WsfExeManager::FindByPath ( const std::string & aPath)

References mExes.

Referenced by FindBest().

◆ FindFromXML()

wizard::WsfExe * wizard::WsfExeManager::FindFromXML ( XML_Context & aContext)

◆ GetDefaultExe()

wizard::WsfExe * wizard::WsfExeManager::GetDefaultExe ( )

References mDefaultExeIndex, and mExes.

Referenced by SaveSettings().

◆ GetDefaultGrammar()

void wizard::WsfExeManager::GetDefaultGrammar ( WsfParseDefinitions & parseDefinitions,
std::string & fullGrammarText )
static

◆ GetDefaultParseDefinitions()

std::shared_ptr< WsfParseDefinitions > wizard::WsfExeManager::GetDefaultParseDefinitions ( )

References mNoExePtr.

◆ GetExes()

const std::vector< WsfExe * > & wizard::WsfExeManager::GetExes ( ) const
inline

References mExes.

◆ GetIndex()

int wizard::WsfExeManager::GetIndex ( wizard::WsfExe * aExePtr)

References mExes.

Referenced by MoveDown(), and MoveUp().

◆ GetInstance()

wizard::WsfExeManager & wizard::WsfExeManager::GetInstance ( )
static

References WsfExeManager().

◆ GetNoExe()

wizard::WsfExe * wizard::WsfExeManager::GetNoExe ( )

References LoadDefaultGrammar(), and mNoExePtr.

Referenced by SaveSettings().

◆ GetStyler()

WsfStyler * wizard::WsfExeManager::GetStyler ( )
inline

References mWsfStylerPtr.

◆ IgnoreExecutable()

bool wizard::WsfExeManager::IgnoreExecutable ( const std::string & aFileName)
protected

References mFileNamesToIgnore.

Referenced by Add(), and WsfExePicked().

◆ LoadDefaultGrammar()

void wizard::WsfExeManager::LoadDefaultGrammar ( )
protected

◆ LoadSettings()

void wizard::WsfExeManager::LoadSettings ( QSettings & aSettings)

◆ MoveDown()

bool wizard::WsfExeManager::MoveDown ( WsfExe * aExePtr)

References GetIndex(), mDefaultExeIndex, and mExes.

◆ MoveUp()

bool wizard::WsfExeManager::MoveUp ( WsfExe * aExePtr)

References GetIndex(), mDefaultExeIndex, and mExes.

◆ Refresh() [1/2]

◆ Refresh() [2/2]

◆ Remove()

void wizard::WsfExeManager::Remove ( WsfExe * aExePtr)

◆ SaveSettings()

void wizard::WsfExeManager::SaveSettings ( QSettings & aSettings)

◆ SetDefault()

void wizard::WsfExeManager::SetDefault ( int aIndex)

References mDefaultExeIndex, and mExes.

Referenced by SaveSettings().

◆ WsfExePicked

void wizard::WsfExeManager::WsfExePicked ( int )
protectedslot

Member Data Documentation

◆ mAutoLoad

bool wizard::WsfExeManager::mAutoLoad
protected

Referenced by WsfExeManager().

◆ mCallbacks

UtCallbackHolder wizard::WsfExeManager::mCallbacks
protected

◆ mDefaultExeIndex

int wizard::WsfExeManager::mDefaultExeIndex
protected

◆ mExes

◆ mFileNamesToIgnore

QSet<QString> wizard::WsfExeManager::mFileNamesToIgnore
protected

Referenced by IgnoreExecutable(), and WsfExeManager().

◆ mNoExePtr

◆ mWsfStylerPtr

std::unique_ptr<WsfStyler> wizard::WsfExeManager::mWsfStylerPtr
protected

Referenced by GetStyler(), and WsfExeManager().

◆ WsfExeListUpdated

UtCallbackListN< void()> wizard::WsfExeManager::WsfExeListUpdated
static

Referenced by Add(), Refresh(), Refresh(), and Remove().


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved