Project Documentation Manager BRIGADOON-0002
Project Documentation Manager
Loading...
Searching...
No Matches
ProjectOptionsManager Class Reference

#include <projectoptionsmanager.h>

Inheritance diagram for ProjectOptionsManager:
[legend]
Collaboration diagram for ProjectOptionsManager:
[legend]

Public Slots

void DoClear (void)
 Clear All Options in User Interface.
void ReadOptionState (uint OptionState)
 Read & Decode the Options, and set ser Interface.
void ReadProjectId (PROJECT_INFORMATION *ProjectInfo)
 Read Project's Options from Database & set User Interface.

Signals

void SendLogEntry (REMOTE_LOG_ENTRY LogEntry)
 Send Log Entry to the Log \LogEntry Structure holding Log information.
void SendOptionState (uint ProjectOptions)
 Set the Project's Options State.

Public Member Functions

 ProjectOptionsManager (Ui::MainWindow *UI_Window)
 ProjectOptionsManager Constructor.
bool CheckExcludeProjectList (uint Options)
 Check if Project is Excluded from List \Options Encoded List of Options.
bool CheckControlDocAccess (uint Options)
 Check if Document Access Control is Enabled \Options Encoded List of Options.
bool CheckOnlyDefaultPage (uint Options)
 Check if make Only Default Page \Options Encoded List of Options.
bool CheckGroupAccessOnly (uint Options)
 Check if Group Access Only \Options Encoded List of Options.
bool CheckEnableCustomDoxygen (uint Options)
 Check if Custom Doxygen Settings Enabled \Options Encoded List of Options.
bool CheckCaveatLector (uint Options)
 Check if Caveat Emptor warning needed \Options Encoded List of Options.
bool CheckPotentialHazard (uint Options)
 Check if Potential Hazard warning needed \Options Encoded List of Options.
bool CheckAssistanceWelcome (uint Options)
 Check if Assistance Welcome message needed \Options Encoded List of Options.
bool ChecktDonationsWelcome (uint Options)
 Check if Donations Welcome message needed \Options Encoded List of Options.
bool CheckOfferPaypalDonation (uint Options)
 Check if Paypal Donations available message needed \Options Encoded List of Options.
bool CheckCreateSourceArchive (uint OptionState)
 Check if Source Archive is required \Options Encoded List of Options.
bool CheckAutomaticInstall (uint OptionState)
 Check if Auto Install script is required \Options Encoded List of Options.
bool CheckAutomaticGit (uint OptionState)
uint WriteOptionState (void)
 Get the Options Encoded from User Interface.

Private Slots

void SetExcludeProjectList (Qt::CheckState State)
 Set Exclude Project Option to desired State.
void SetControlDocAccess (Qt::CheckState State)
 Set Doc Access Option to desired State.
void SetOnlyDefaultPage (bool State)
 Set Only Default Page Option to desired State.
void SetGroupAccessOnly (bool State)
void SetEnableCustomDoxygen (Qt::CheckState State)
 Set Enable Custom Doxygen Option to desired State.
void SetCaveatLector (Qt::CheckState State)
 Set Caveat Lector Option to desired State.
void SetPotentialHazard (Qt::CheckState State)
void SetAssistanceWelcome (Qt::CheckState State)
 Set Assistance Welcom Option to desired State.
void SetDonationsWelcome (Qt::CheckState State)
 Set Donations Welcome Option to desired State.
void SetOfferPaypalDonation (Qt::CheckState State)
 Set Paypal Donation Option to desired State.
void SetCreateSourceArchive (Qt::CheckState State)
void SetUpdateGitRevision (Qt::CheckState State)
 Set the Update Git Revision Option to desired state.
void SetAllowAutomaticInstall (Qt::CheckState State)
 Set Allow Automatic Installation Option to desired State.

Private Member Functions

void LogAdd (LOGGING_SEVERITY Severity, LOGGING_MODE Mode, QString Message)
 Add a Log Entry.
void SetOption (bool State, int Mask)
 Set the Project's Selected Option to the Required State.

Private Attributes

Ui::MainWindow * ui
uint project_options
 Encoded Project Options Storage.

Detailed Description

Definition at line 20 of file projectoptionsmanager.h.

Constructor & Destructor Documentation

◆ ProjectOptionsManager()

ProjectOptionsManager::ProjectOptionsManager ( Ui::MainWindow * UI_Window)

ProjectOptionsManager Constructor.

Parameters
UI_WindowPointer to teh Main Window

Definition at line 3 of file projectoptionsmanager.cpp.

4{
5 ui = UI_Window;
7
8 QObject::connect(ui->ExcludeFromProjectList, SIGNAL(checkStateChanged(Qt::CheckState)), this, SLOT(SetExcludeProjectList(Qt::CheckState)));
9 QObject::connect(ui->ControlDocAccess, SIGNAL(checkStateChanged(Qt::CheckState )), this, SLOT(SetControlDocAccess(Qt::CheckState)));
10 QObject::connect(ui->OnlyInfoPage, SIGNAL(toggled(bool)), this, SLOT(SetOnlyDefaultPage(bool)));
11 QObject::connect(ui->LimitToAssoc, SIGNAL(toggled(bool)), this, SLOT(SetGroupAccessOnly(bool)));
12 QObject::connect(ui->EnableDoxyOptions, SIGNAL(checkStateChanged(Qt::CheckState )), this, SLOT(SetEnableCustomDoxygen(Qt::CheckState)));
13 QObject::connect(ui->CaveatLector, SIGNAL(checkStateChanged(Qt::CheckState )), this, SLOT(SetCaveatLector(Qt::CheckState)));
14 QObject::connect(ui->PossiblyHazardous, SIGNAL(checkStateChanged(Qt::CheckState )), this, SLOT(SetPotentialHazard(Qt::CheckState)));
15 QObject::connect(ui->AssistanceWelcome, SIGNAL(checkStateChanged(Qt::CheckState )), this, SLOT(SetAssistanceWelcome(Qt::CheckState)));
16 QObject::connect(ui->DonationsWelcome, SIGNAL(checkStateChanged(Qt::CheckState)), this, SLOT(SetDonationsWelcome(Qt::CheckState)));
17 QObject::connect(ui->OfferPaypal, SIGNAL(checkStateChanged(Qt::CheckState )), this, SLOT(SetOfferPaypalDonation(Qt::CheckState)));
18 QObject::connect(ui->CreateSourceArchive, SIGNAL(checkStateChanged(Qt::CheckState )), this, SLOT(SetCreateSourceArchive(Qt::CheckState)));
19 QObject::connect(ui->UpdateGitRevision, SIGNAL(checkStateChanged(Qt::CheckState )), this, SLOT(SetUpdateGitRevision(Qt::CheckState)));
20 QObject::connect(ui->AutomaticInstall, SIGNAL(checkStateChanged(Qt::CheckState )), this, SLOT(SetAllowAutomaticInstall(Qt::CheckState)));
21}
void SetCaveatLector(Qt::CheckState State)
Set Caveat Lector Option to desired State.
void SetDonationsWelcome(Qt::CheckState State)
Set Donations Welcome Option to desired State.
void SetCreateSourceArchive(Qt::CheckState State)
void SetEnableCustomDoxygen(Qt::CheckState State)
Set Enable Custom Doxygen Option to desired State.
void SetPotentialHazard(Qt::CheckState State)
void SetAllowAutomaticInstall(Qt::CheckState State)
Set Allow Automatic Installation Option to desired State.
void SetUpdateGitRevision(Qt::CheckState State)
Set the Update Git Revision Option to desired state.
void SetControlDocAccess(Qt::CheckState State)
Set Doc Access Option to desired State.
void SetOfferPaypalDonation(Qt::CheckState State)
Set Paypal Donation Option to desired State.
void SetOnlyDefaultPage(bool State)
Set Only Default Page Option to desired State.
void SetExcludeProjectList(Qt::CheckState State)
Set Exclude Project Option to desired State.
void SetGroupAccessOnly(bool State)
uint project_options
Encoded Project Options Storage.
void SetAssistanceWelcome(Qt::CheckState State)
Set Assistance Welcom Option to desired State.

References project_options, SetAllowAutomaticInstall(), SetAssistanceWelcome(), SetCaveatLector(), SetControlDocAccess(), SetCreateSourceArchive(), SetDonationsWelcome(), SetEnableCustomDoxygen(), SetExcludeProjectList(), SetGroupAccessOnly(), SetOfferPaypalDonation(), SetOnlyDefaultPage(), SetPotentialHazard(), SetUpdateGitRevision(), and ui.

Here is the call graph for this function:

Member Function Documentation

◆ CheckAssistanceWelcome()

bool ProjectOptionsManager::CheckAssistanceWelcome ( uint Options)

Check if Assistance Welcome message needed \Options Encoded List of Options.

Definition at line 246 of file projectoptionsmanager.cpp.

247{
248 return(OptionState & ASSISTANCE_WELCOME);
249}
#define ASSISTANCE_WELCOME
Display Assistance Welcome Mask.

References ASSISTANCE_WELCOME.

◆ CheckAutomaticGit()

bool ProjectOptionsManager::CheckAutomaticGit ( uint OptionState)

Definition at line 270 of file projectoptionsmanager.cpp.

271{
272 return(OptionState & UPDATE_GIT_REVISION);
273}
#define UPDATE_GIT_REVISION

References UPDATE_GIT_REVISION.

◆ CheckAutomaticInstall()

bool ProjectOptionsManager::CheckAutomaticInstall ( uint OptionState)

Check if Auto Install script is required \Options Encoded List of Options.

Check if Automatic Git Revision is required \Options Encoded List of Options.

Definition at line 265 of file projectoptionsmanager.cpp.

266{
267 return(OptionState & ALLOW_AUTOMATIC_INSTALL);
268}
#define ALLOW_AUTOMATIC_INSTALL

References ALLOW_AUTOMATIC_INSTALL.

◆ CheckCaveatLector()

bool ProjectOptionsManager::CheckCaveatLector ( uint Options)

Check if Caveat Emptor warning needed \Options Encoded List of Options.

Definition at line 236 of file projectoptionsmanager.cpp.

237{
238 return(OptionState & CAVEAT_LECTOR);
239}
#define CAVEAT_LECTOR
Display User Warning Mask.

References CAVEAT_LECTOR.

◆ CheckControlDocAccess()

bool ProjectOptionsManager::CheckControlDocAccess ( uint Options)

Check if Document Access Control is Enabled \Options Encoded List of Options.

Definition at line 216 of file projectoptionsmanager.cpp.

217{
218 return(OptionState & GROUP_ACCESS_ONLY);
219}
#define GROUP_ACCESS_ONLY
restrict Public Access Mask

References GROUP_ACCESS_ONLY.

◆ CheckCreateSourceArchive()

bool ProjectOptionsManager::CheckCreateSourceArchive ( uint OptionState)

Check if Source Archive is required \Options Encoded List of Options.

Definition at line 260 of file projectoptionsmanager.cpp.

261{
262 return(OptionState & CREATE_SOURCE_ARCHIVE);
263}
#define CREATE_SOURCE_ARCHIVE
Create a SOurce Archive when Documentation Generated.

References CREATE_SOURCE_ARCHIVE.

◆ CheckEnableCustomDoxygen()

bool ProjectOptionsManager::CheckEnableCustomDoxygen ( uint Options)

Check if Custom Doxygen Settings Enabled \Options Encoded List of Options.

Definition at line 231 of file projectoptionsmanager.cpp.

232{
233 return(OptionState & ENABLE_CUSTOM_DOXYGEN);
234}
#define ENABLE_CUSTOM_DOXYGEN
Enable Custom Doxygen Definitions Mask.

References ENABLE_CUSTOM_DOXYGEN.

◆ CheckExcludeProjectList()

bool ProjectOptionsManager::CheckExcludeProjectList ( uint Options)

Check if Project is Excluded from List \Options Encoded List of Options.

Definition at line 211 of file projectoptionsmanager.cpp.

212{
213 return(OptionState & EXCLUDE_PROJECT_LIST);
214}
#define EXCLUDE_PROJECT_LIST
Exclude Project from Public List Mask.

References EXCLUDE_PROJECT_LIST.

◆ CheckGroupAccessOnly()

bool ProjectOptionsManager::CheckGroupAccessOnly ( uint Options)

Check if Group Access Only \Options Encoded List of Options.

Definition at line 226 of file projectoptionsmanager.cpp.

227{
228 return(OptionState & GROUP_ACCESS_ONLY);
229}

References GROUP_ACCESS_ONLY.

◆ CheckOfferPaypalDonation()

bool ProjectOptionsManager::CheckOfferPaypalDonation ( uint Options)

Check if Paypal Donations available message needed \Options Encoded List of Options.

Definition at line 255 of file projectoptionsmanager.cpp.

256{
257 return(OptionState & OFFER_PAYPAL_DONATION);
258}
#define OFFER_PAYPAL_DONATION
Display Paypal Available Mask.

References OFFER_PAYPAL_DONATION.

◆ CheckOnlyDefaultPage()

bool ProjectOptionsManager::CheckOnlyDefaultPage ( uint Options)

Check if make Only Default Page \Options Encoded List of Options.

Definition at line 221 of file projectoptionsmanager.cpp.

222{
223 return(OptionState & ONLY_DEFAULT_PAGE);
224}
#define ONLY_DEFAULT_PAGE
Only Display Default Page to Public Mask.

References ONLY_DEFAULT_PAGE.

◆ CheckPotentialHazard()

bool ProjectOptionsManager::CheckPotentialHazard ( uint Options)

Check if Potential Hazard warning needed \Options Encoded List of Options.

Definition at line 241 of file projectoptionsmanager.cpp.

242{
243 return(OptionState & POTENTIAL_HAZARD);
244}
#define POTENTIAL_HAZARD
Display Potential Harzard Mask.

References POTENTIAL_HAZARD.

◆ ChecktDonationsWelcome()

bool ProjectOptionsManager::ChecktDonationsWelcome ( uint Options)

Check if Donations Welcome message needed \Options Encoded List of Options.

Definition at line 250 of file projectoptionsmanager.cpp.

251{
252 return(OptionState & DONATIONS_WELCOME);
253}
#define DONATIONS_WELCOME
Display Donations Welcome Mask.

References DONATIONS_WELCOME.

◆ DoClear

void ProjectOptionsManager::DoClear ( void )
slot

Clear All Options in User Interface.

Definition at line 139 of file projectoptionsmanager.cpp.

140{
141 ui->ExcludeFromProjectList->setChecked(false);
142 ui->ControlDocAccess->setChecked(false);
143 ui->OnlyInfoPage->setChecked(true);
144 ui->EnableDoxyOptions->setChecked(false);
145 ui->CaveatLector->setChecked(false);
146 ui->PossiblyHazardous->setChecked(false);
147 ui->AssistanceWelcome->setChecked(false);
148 ui->DonationsWelcome->setChecked(false);
149 ui->OfferPaypal->setChecked(false);
150 ui->CreateSourceArchive->setChecked(false);
151 ui->AutomaticInstall->setChecked(false);
152 project_options = 0;
153
154 LogAdd(LOG_DEBUG, MODE_OPERATOR , "Cleared the Project Options on the Display");
155}
void LogAdd(LOGGING_SEVERITY Severity, LOGGING_MODE Mode, QString Message)
Add a Log Entry.
@ LOG_DEBUG
Definition logger.h:56
@ MODE_OPERATOR
Definition logger.h:34

References LOG_DEBUG, LogAdd(), MODE_OPERATOR, project_options, and ui.

Here is the call graph for this function:

◆ LogAdd()

void ProjectOptionsManager::LogAdd ( LOGGING_SEVERITY Severity,
LOGGING_MODE Mode,
QString Message )
private

Add a Log Entry.

Parameters
SeveritySeverity of the Logged Event
ModePart of the Program being Logged
MessageDescription of the Log Event

Definition at line 157 of file projectoptionsmanager.cpp.

158{
159 REMOTE_LOG_ENTRY log_entry;
160 log_entry.Severity = Severity;
161 log_entry.Mode = Mode;
162 log_entry.Message = Message;
163 emit SendLogEntry(log_entry);
164}
void SendLogEntry(REMOTE_LOG_ENTRY LogEntry)
Send Log Entry to the Log \LogEntry Structure holding Log information.
LOGGING_MODE Mode
Definition logger.h:61
QString Message
Definition logger.h:63
LOGGING_SEVERITY Severity
Definition logger.h:62

References REMOTE_LOG_ENTRY::Message, REMOTE_LOG_ENTRY::Mode, SendLogEntry(), and REMOTE_LOG_ENTRY::Severity.

Referenced by DoClear(), ReadOptionState(), and WriteOptionState().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadOptionState

void ProjectOptionsManager::ReadOptionState ( uint OptionState)
slot

Read & Decode the Options, and set ser Interface.

Parameters
OptionStateProject's Encoded Options

Definition at line 171 of file projectoptionsmanager.cpp.

172{
173 ui->ExcludeFromProjectList->setChecked(OptionState & EXCLUDE_PROJECT_LIST);
174 ui->ControlDocAccess->setChecked(OptionState & CONTROL_DOC_ACCESS);
175 ui->OnlyInfoPage->setChecked(OptionState & ONLY_DEFAULT_PAGE);
176 ui->LimitToAssoc->setChecked(OptionState & GROUP_ACCESS_ONLY);
177 ui->EnableDoxyOptions->setChecked(OptionState & ENABLE_CUSTOM_DOXYGEN);
178 ui->CaveatLector->setChecked(OptionState & CAVEAT_LECTOR);
179 ui->PossiblyHazardous->setChecked(OptionState & POTENTIAL_HAZARD);
180 ui->AssistanceWelcome->setChecked(OptionState & ASSISTANCE_WELCOME);
181 ui->DonationsWelcome->setChecked(OptionState & DONATIONS_WELCOME);
182 ui->OfferPaypal->setChecked(OptionState & OFFER_PAYPAL_DONATION);
183 ui->CreateSourceArchive->setChecked(OptionState & CREATE_SOURCE_ARCHIVE);
184 ui->AutomaticInstall->setChecked(OptionState & ALLOW_AUTOMATIC_INSTALL);
185
186 LogAdd(LOG_DEBUG, MODE_OPERATOR, "User Interface loaded with Project's State of Options");
187}
#define CONTROL_DOC_ACCESS
Control Document Access to Public Mask.

References ALLOW_AUTOMATIC_INSTALL, ASSISTANCE_WELCOME, CAVEAT_LECTOR, CONTROL_DOC_ACCESS, CREATE_SOURCE_ARCHIVE, DONATIONS_WELCOME, ENABLE_CUSTOM_DOXYGEN, EXCLUDE_PROJECT_LIST, GROUP_ACCESS_ONLY, LOG_DEBUG, LogAdd(), MODE_OPERATOR, OFFER_PAYPAL_DONATION, ONLY_DEFAULT_PAGE, POTENTIAL_HAZARD, and ui.

Referenced by ReadProjectId().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadProjectId

void ProjectOptionsManager::ReadProjectId ( PROJECT_INFORMATION * ProjectInfo)
slot

Read Project's Options from Database & set User Interface.

Parameters
ProjectIdPointer to Project's Information

Definition at line 166 of file projectoptionsmanager.cpp.

167{
169}
void ReadOptionState(uint OptionState)
Read & Decode the Options, and set ser Interface.
PROJECT_DESCRIPTION ProjectDesc

References PROJECT_INFORMATION::ProjectDesc, PROJECT_DESCRIPTION::ProjectOptions, and ReadOptionState().

Here is the call graph for this function:

◆ SendLogEntry

void ProjectOptionsManager::SendLogEntry ( REMOTE_LOG_ENTRY LogEntry)
signal

Send Log Entry to the Log \LogEntry Structure holding Log information.

Referenced by LogAdd().

Here is the caller graph for this function:

◆ SendOptionState

void ProjectOptionsManager::SendOptionState ( uint ProjectOptions)
signal

Set the Project's Options State.

Parameters
ProjectOptionsEncoded Project Options

Referenced by SetOption().

Here is the caller graph for this function:

◆ SetAllowAutomaticInstall

void ProjectOptionsManager::SetAllowAutomaticInstall ( Qt::CheckState State)
privateslot

Set Allow Automatic Installation Option to desired State.

Parameters
StateState to set the Option

Definition at line 125 of file projectoptionsmanager.cpp.

126{
127 bool state = (bool)State;
128 uint mask = ALLOW_AUTOMATIC_INSTALL;
129 SetOption(state, mask);
130}
void SetOption(bool State, int Mask)
Set the Project's Selected Option to the Required State.

References ALLOW_AUTOMATIC_INSTALL, and SetOption().

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetAssistanceWelcome

void ProjectOptionsManager::SetAssistanceWelcome ( Qt::CheckState State)
privateslot

Set Assistance Welcom Option to desired State.

Parameters
StateState to set the Option

Definition at line 83 of file projectoptionsmanager.cpp.

84{
85 bool state = (bool)State;
86 uint mask = ASSISTANCE_WELCOME;
87
88 SetOption(state, mask);
89}

References ASSISTANCE_WELCOME, and SetOption().

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetCaveatLector

void ProjectOptionsManager::SetCaveatLector ( Qt::CheckState State)
privateslot

Set Caveat Lector Option to desired State.

Parameters
StateState to set the Option

Definition at line 67 of file projectoptionsmanager.cpp.

68{
69 bool state = (bool)State;
70 uint mask = CAVEAT_LECTOR;
71
72 SetOption(state, mask);
73}

References CAVEAT_LECTOR, and SetOption().

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetControlDocAccess

void ProjectOptionsManager::SetControlDocAccess ( Qt::CheckState State)
privateslot

Set Doc Access Option to desired State.

Parameters
StateState to set the Option

Definition at line 39 of file projectoptionsmanager.cpp.

40{
41 bool state = (bool)State;
42 uint mask = CONTROL_DOC_ACCESS;
43
44 SetOption(state, mask);
45 if (!state)
46 {
47 ui->OnlyInfoPage->setCheckable(true);
48 }
49}

References CONTROL_DOC_ACCESS, SetOption(), and ui.

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetCreateSourceArchive

void ProjectOptionsManager::SetCreateSourceArchive ( Qt::CheckState State)
privateslot

Definition at line 111 of file projectoptionsmanager.cpp.

112{
113 bool state = (bool)State;
114 uint mask = CREATE_SOURCE_ARCHIVE;
115 SetOption(state, mask);
116}

References CREATE_SOURCE_ARCHIVE, and SetOption().

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetDonationsWelcome

void ProjectOptionsManager::SetDonationsWelcome ( Qt::CheckState State)
privateslot

Set Donations Welcome Option to desired State.

Parameters
StateState to set the Option

Definition at line 91 of file projectoptionsmanager.cpp.

92{
93 bool state = (bool)State;
94 uint mask = DONATIONS_WELCOME;
95
96 SetOption(state, mask);
97 if (!state)
98 {
99 ui->OfferPaypal->setChecked(false);
100 SetOfferPaypalDonation(Qt::Unchecked);
101 }
102}

References DONATIONS_WELCOME, SetOfferPaypalDonation(), SetOption(), and ui.

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetEnableCustomDoxygen

void ProjectOptionsManager::SetEnableCustomDoxygen ( Qt::CheckState State)
privateslot

Set Enable Custom Doxygen Option to desired State.

Parameters
StateState to set the Option

Definition at line 59 of file projectoptionsmanager.cpp.

60{
61 bool state = (bool)State;
62 uint mask = ENABLE_CUSTOM_DOXYGEN;
63
64 SetOption(state, mask);
65}

References ENABLE_CUSTOM_DOXYGEN, and SetOption().

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetExcludeProjectList

void ProjectOptionsManager::SetExcludeProjectList ( Qt::CheckState State)
privateslot

Set Exclude Project Option to desired State.

Parameters
StateState to set the Option

Definition at line 23 of file projectoptionsmanager.cpp.

24{
25 bool state = (bool)State;
26 uint mask = EXCLUDE_PROJECT_LIST;
27
28 SetOption(state, mask);
29}

References EXCLUDE_PROJECT_LIST, and SetOption().

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetGroupAccessOnly

void ProjectOptionsManager::SetGroupAccessOnly ( bool State)
privateslot

Definition at line 51 of file projectoptionsmanager.cpp.

52{
53 bool state = (bool)State;
54 uint mask = GROUP_ACCESS_ONLY;
55
56 SetOption(state, mask);
57}

References GROUP_ACCESS_ONLY, and SetOption().

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetOfferPaypalDonation

void ProjectOptionsManager::SetOfferPaypalDonation ( Qt::CheckState State)
privateslot

Set Paypal Donation Option to desired State.

Parameters
StateState to set the Option

Definition at line 104 of file projectoptionsmanager.cpp.

105{
106 bool state = (bool)State;
107 uint mask = OFFER_PAYPAL_DONATION;
108 SetOption(state, mask);
109}

References OFFER_PAYPAL_DONATION, and SetOption().

Referenced by ProjectOptionsManager(), and SetDonationsWelcome().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetOnlyDefaultPage

void ProjectOptionsManager::SetOnlyDefaultPage ( bool State)
privateslot

Set Only Default Page Option to desired State.

Parameters
StateState to set the Option

Definition at line 31 of file projectoptionsmanager.cpp.

32{
33 bool state = (bool)State;
34 uint mask = ONLY_DEFAULT_PAGE;
35
36 SetOption(state, mask);
37}

References ONLY_DEFAULT_PAGE, and SetOption().

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetOption()

void ProjectOptionsManager::SetOption ( bool State,
int Mask )
private

Set the Project's Selected Option to the Required State.

Parameters
StateOn (true) or Off (false)
MaskMask to identifiy the Option Bit

Definition at line 133 of file projectoptionsmanager.cpp.

134{
135 if (State) project_options |= Mask; else project_options &= ~Mask;
137}
void SendOptionState(uint ProjectOptions)
Set the Project's Options State.

References project_options, and SendOptionState().

Referenced by SetAllowAutomaticInstall(), SetAssistanceWelcome(), SetCaveatLector(), SetControlDocAccess(), SetCreateSourceArchive(), SetDonationsWelcome(), SetEnableCustomDoxygen(), SetExcludeProjectList(), SetGroupAccessOnly(), SetOfferPaypalDonation(), SetOnlyDefaultPage(), SetPotentialHazard(), and SetUpdateGitRevision().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetPotentialHazard

void ProjectOptionsManager::SetPotentialHazard ( Qt::CheckState State)
privateslot

Definition at line 75 of file projectoptionsmanager.cpp.

76{
77 bool state = (bool)State;
78 uint mask = POTENTIAL_HAZARD;
79
80 SetOption(state, mask);
81}

References POTENTIAL_HAZARD, and SetOption().

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetUpdateGitRevision

void ProjectOptionsManager::SetUpdateGitRevision ( Qt::CheckState State)
privateslot

Set the Update Git Revision Option to desired state.

Parameters
StateState to set the Option

Definition at line 118 of file projectoptionsmanager.cpp.

119{
120 bool state = (bool)State;
121 uint mask = UPDATE_GIT_REVISION;
122 SetOption(state, mask);
123}

References SetOption(), and UPDATE_GIT_REVISION.

Referenced by ProjectOptionsManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WriteOptionState()

uint ProjectOptionsManager::WriteOptionState ( void )

Get the Options Encoded from User Interface.

Returns
Encoded List of Options

Definition at line 189 of file projectoptionsmanager.cpp.

190{
191 uint option_state = 0;
192
193 if (ui->ExcludeFromProjectList->isChecked()) option_state |= EXCLUDE_PROJECT_LIST;
194 if (ui->ControlDocAccess->isChecked()) option_state |= CONTROL_DOC_ACCESS;
195 if (ui->OnlyInfoPage->isChecked()) option_state |= ONLY_DEFAULT_PAGE;
196 if (ui->LimitToAssoc->isChecked()) option_state |= GROUP_ACCESS_ONLY;
197 if (ui->EnableDoxyOptions->isChecked()) option_state |= ENABLE_CUSTOM_DOXYGEN;
198 if (ui->CaveatLector->isChecked()) option_state |= CAVEAT_LECTOR;
199 if (ui->PossiblyHazardous->isChecked()) option_state |= POTENTIAL_HAZARD;
200 if (ui->AssistanceWelcome->isChecked()) option_state |= ASSISTANCE_WELCOME;
201 if (ui->DonationsWelcome->isChecked()) option_state|= DONATIONS_WELCOME;
202 if (ui->OfferPaypal->isChecked()) option_state |= OFFER_PAYPAL_DONATION;
203 if (ui->CreateSourceArchive->isChecked()) option_state |= CREATE_SOURCE_ARCHIVE;
204 if (ui->AutomaticInstall->isChecked()) option_state |= ALLOW_AUTOMATIC_INSTALL;
205
206 LogAdd(LOG_DEBUG, MODE_OPERATOR, "Project's Encoded Options loaded into display");
207
208 return(option_state);
209}

References ALLOW_AUTOMATIC_INSTALL, ASSISTANCE_WELCOME, CAVEAT_LECTOR, CONTROL_DOC_ACCESS, CREATE_SOURCE_ARCHIVE, DONATIONS_WELCOME, ENABLE_CUSTOM_DOXYGEN, EXCLUDE_PROJECT_LIST, GROUP_ACCESS_ONLY, LOG_DEBUG, LogAdd(), MODE_OPERATOR, OFFER_PAYPAL_DONATION, ONLY_DEFAULT_PAGE, POTENTIAL_HAZARD, and ui.

Here is the call graph for this function:

Field Documentation

◆ project_options

uint ProjectOptionsManager::project_options
private

Encoded Project Options Storage.

Definition at line 180 of file projectoptionsmanager.h.

Referenced by DoClear(), ProjectOptionsManager(), and SetOption().

◆ ui

Ui::MainWindow* ProjectOptionsManager::ui
private

brief Pointer to the main window

Definition at line 174 of file projectoptionsmanager.h.

Referenced by DoClear(), ProjectOptionsManager(), ReadOptionState(), SetControlDocAccess(), SetDonationsWelcome(), and WriteOptionState().


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