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

main window of this Program More...

#include <mainwindow.h>

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

Signals

void UpdateFullDescription (QString DescText)
 Emit the Full Description text.

Public Member Functions

 MainWindow (QWidget *parent=nullptr)
 Constructor for Main Window.
 ~MainWindow ()
 Main Window Deconstructor.

Data Fields

Loggerlog
 Pointer to the Log Class.

Private Slots

void SetProjectNameColor (QString TextString)
 Set the Colour of the Project Name.
void SetProjectIdentColor (QString TextString)
 Set the Colour of the Project Identifier.
void SetBriefDescriptionColor (QString TextString)
 Set the Colour of the Project's Brief Description.
void SetDepartureURLColor (QString TextString)
 Set the Colour of the Project's Departure URL.
void SetFullDesriptionColor ()
void SetVersionDesriptionColor ()
 Set the Colour of the Version Description.
void SetProjectIconColor (QString TextString)
 Set the Colour of the Project Icon.
void SetDoxyProjectLogoColor (QString TextString)
 Set the Colour of the Doxygen Project Logo.
void SetDoxyHeaderColor (QString TextString)
 Set the Colour of the Doxygen Header Colour.
void SetDoxyFooterColor (QString TextString)
 Set the Colour of the Doxygen Footer Colour.
void SetDoxyStylesheetColor (QString TextString)
 Set the Colour of the Doxygen Stylesheet Colour.
void SetExeDirColor (QString TextString)
 Set the Colour of the Exe Directory Stylesheet Colour.
void SetProgramName (QString ProgramName)
 Set the Program Name.
void SelectExeDir (void)
void SetExeNameColor (QString TextString)
 Set the Colour of the Exe Name Stylesheet Colour.
void SetDefaultDeparture (void)
 Set the Default Departure URL.

Private Attributes

Ui::MainWindow * ui
 POinter to the Main Window.
ProgramIdentificationprogram_id
 Point to the Program's identification.
DatabaseManagerdb_manager
 Pointer to the Database Class.
DevelopmentFamilydev_manager
 Pointer to the Development Class.
LicenceManagerlicence_manager
 Pointer to the Licence Class.
ProjectStatusstatus_manager
 Pointer to the Status Class.
ProjectIdentifierproject_id_manager
 Pointer to the Project Id3entification Class.
ProgramVersionversion_manager
 Pointer to the Progra's Version Class.
QString red_stylesheet = "color: rgb(224, 27, 36)"
 Stylesheet for the colour red.
QString purple_stylesheet = "color: rgb(192, 97, 203)"
 Stylesheet for the colour purple.
QString grey_stylesheet = "color: rgb(200, 200, 200)"
 Stylesheet for the colour grey.
QString no_color_stylesheet = ""
 Stylesheet for no colour definition.

Detailed Description

main window of this Program

Definition at line 28 of file mainwindow.h.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( QWidget * parent = nullptr)

Constructor for Main Window.

Parameters
parentParent Widget

Definition at line 26 of file mainwindow.cpp.

27 : QMainWindow(parent)
28 , ui(new Ui::MainWindow)
29{
30 // Set Up the Main Window
31 ui->setupUi(this);
32 ui->ProjectInfoGroupBox->setEnabled(false);
33
34 // Find the Current User
36
37 // Load the Log
38 qRegisterMetaType<REMOTE_LOG_ENTRY>("REMOTE_LOG_ENTRY"); // Register Custom Meta Types for the "QObject::connect" Definitions
39 log = new Logger(ui);
40 log->Add(LOG_DEBUG, MODE_CONFIG, "Logger \"log\" has been opened.");
41
42 //Create the Database Control Class
43 db_manager = new DatabaseManager(ui);
44 QObject::connect(db_manager, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
45 db_manager->ReconnectDatabase();
46
47 // Load the Program Identification
48 program_id = new ProgramIdentification(ui);
49 QObject::connect(program_id, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
50 program_id->LoadProgramIdentification(); // Default Site - Fix Later
51
52 // Load the Program Version Control Class
53 qRegisterMetaType<REMOTE_VERSION_ENTRY>("REMOTE_VERSION_ENTRY");
54 version_manager = new ProgramVersion(ui);
55 QObject::connect(version_manager, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
56
57 // Create the Development Family Class
58 qRegisterMetaType<DEVELOPMENT_FAMILY>("DEVELOPMENT_FAMILY");
59 dev_manager = new DevelopmentFamily(ui);
60 QObject::connect(dev_manager, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
61 dev_manager->LoadDevelopmentFamilies();
62
63 // Create the Licence Manager
64 licence_manager = new LicenceManager(ui);
65 licence_manager->LoadLicences();
66 QObject::connect(licence_manager, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
67 QObject::connect(dev_manager, SIGNAL(SendPrimaryToolChanged(int)), licence_manager, SLOT(ReadPrimaryTool(int)));
68
69 // Create the Status Manager
70 qRegisterMetaType<STATUS_INFO>("STATUS_INFO");
71 status_manager = new ProjectStatus(ui);
72 status_manager->LoadStatus();
73 QObject::connect(status_manager, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
74
75 // Create Project Identification Manager
76 qRegisterMetaType<REMOTE_LOG_ENTRY>("REMOTE_LOG_ENTRY");
77 project_id_manager = new ProjectIdentifier(ui);
78 QObject::connect(project_id_manager, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
79
80 // Instantiate Project Options Manager
81 project_opts_manager = new ProjectOptionsManager(ui);
82 QObject::connect(project_opts_manager, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
83
84 // Instantiate the ReadProjectInfo Library
85 //qRegisterMetaType<PROJECT_INFORMATION>("PROJECT_INFORMATION");
86 read_project_info = new ReadProjectInfo();
87 QObject::connect(read_project_info, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
88
89 // Create the Project Substitution List
90 project_subs_manager = new ProjectSubstitute(ui, project_opts_manager);
91 QObject::connect(project_subs_manager, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
92 QObject::connect(licence_manager, SIGNAL(UpdateSoftwareLicence(QString)), project_subs_manager, SLOT(UpdateSoftwareLicence(QString)));
93 QObject::connect(licence_manager, SIGNAL(UpdateHardwareLicence(QString)), project_subs_manager, SLOT(UpdateHardwareLicence(QString)));
94 QObject::connect(licence_manager, SIGNAL(UpdateDocumentationLicence(QString)), project_subs_manager, SLOT(UpdateDocumentationLicence(QString)));
95 QObject::connect(version_manager, SIGNAL(SendMajorVersion(int)), project_subs_manager, SLOT(ReadMajorVersion(int)));
96 QObject::connect(version_manager, SIGNAL(SendMinorVersion(int)), project_subs_manager, SLOT(ReadMinorVersion(int)));
97 QObject::connect(version_manager, SIGNAL(SendRevision(int)), project_subs_manager, SLOT(ReadRevision(int)));
98 QObject::connect(project_id_manager, SIGNAL(SendProjectName(QString)), project_subs_manager, SLOT(UpdateProjectName(QString)));
99 QObject::connect(project_id_manager, SIGNAL(SendDepartureURL(QString)), project_subs_manager, SLOT(UpdateDepartureURL(QString)));
100 QObject::connect(project_id_manager, SIGNAL(SendProjectIcon(QString)), project_subs_manager, SLOT(UpdateProjectIcon(QString)));
101 QObject::connect(project_id_manager, SIGNAL(SendProjectBrief(QString)), project_subs_manager, SLOT(UpdateProjectBrief(QString)));
102 QObject::connect(project_id_manager, SIGNAL(SendProjectContact(QString)), project_subs_manager, SLOT(UpdateProjectContact(QString)));
103 QObject::connect(ui->DoxyProjectLogo, SIGNAL(textChanged(QString)), project_subs_manager, SLOT(UpdateDoxyProjectLogo(QString)));
104 QObject::connect(ui->DoxyHeader, SIGNAL(textChanged(QString)), project_subs_manager, SLOT(UpdateDoxyHeader(QString)));
105 QObject::connect(ui->DoxyFooter, SIGNAL(textChanged(QString)), project_subs_manager, SLOT(UpdateDoxyFooter(QString)));
106 QObject::connect(ui->DoxyStylesheet, SIGNAL(textChanged(QString)), project_subs_manager, SLOT(UpdateDoxyStylesheet(QString)));
107 QObject::connect(project_id_manager, SIGNAL(SendInAssociation(QString)), project_subs_manager, SLOT(UpdateInAssocation(QString)));
108
109 // Instantiate the Project Documentation Manager
110 qRegisterMetaType<PROJECT_INFORMATION>("PROJECT_INFORMATION");
111 project_doc_manager = new ProjectDocManager(ui);
112 QObject::connect(project_doc_manager, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
113 QObject::connect(project_doc_manager, SIGNAL(LoadSubstituteTable()), project_subs_manager, SLOT(LoadPresets()));
114
115 // Instantiate the Project List Manager
116 project_list_manager = new ProjectListManager(ui);
117 QObject::connect(ui->tabWidgetProjectManager, SIGNAL(currentChanged(int)), project_list_manager, SLOT(ProjectTabChanged(int)));
118
119 // Instantiate DOxygen Manager
120 ui->DotImageType->addItem("SVG", 0);
121 ui->DotImageType->addItem("PNG", 1);
122 ui->DotImageType->addItem("JPG", 2);
123 ui->DotImageType->addItem("GIF", 3);
124 ui->DotImageType->setEnabled(true);
125
126 //qRegisterMetaType<DOXY_OPTIONS>("DOXY_OPTIONS");
127 doxy_manager = new DoxygenManager();
128 QObject::connect(doxy_manager, SIGNAL(SendLogEntry(REMOTE_LOG_ENTRY)), log, SLOT(RemoteLog(REMOTE_LOG_ENTRY)));
129 QObject::connect(doxy_manager, SIGNAL(PrStateChange(PROJECT_INFORMATION*)), project_list_manager, SLOT(PrStateChange(PROJECT_INFORMATION*)));
130
131 QObject::connect(project_doc_manager, SIGNAL(SendClear()), version_manager, SLOT(DoClear()));
132 QObject::connect(project_doc_manager, SIGNAL(SendClear()), dev_manager, SLOT(DoClear()));
133 QObject::connect(project_doc_manager, SIGNAL(SendClear()), licence_manager, SLOT(DoClear()));
134 QObject::connect(project_doc_manager, SIGNAL(SendClear()), status_manager, SLOT(DoClear()));
135 QObject::connect(project_doc_manager, SIGNAL(SendClear()), project_id_manager, SLOT(DoClear()));
136 QObject::connect(project_doc_manager, SIGNAL(SendClear()), project_subs_manager, SLOT(DoClear()));
137 QObject::connect(project_doc_manager, SIGNAL(SendClear()), project_opts_manager, SLOT(DoClear()));
138
139 QObject::connect(dev_manager, SIGNAL(SendDevelopmentFamily(DEVELOPMENT_FAMILY)), project_subs_manager, SLOT(UpdateDevFamily(DEVELOPMENT_FAMILY)));
140
141 QObject::connect(project_id_manager, SIGNAL(SendLicenceState(LICENCE_STATE)), licence_manager, SLOT(ReadLicenceState(LICENCE_STATE)));
142
143 QObject::connect(status_manager, SIGNAL(SendStatusInfo(STATUS_INFO)), project_subs_manager, SLOT(UpdateStatus(STATUS_INFO)));
144
145 QObject::connect(project_doc_manager, SIGNAL(SendProjectId(PROJECT_INFORMATION*)), project_id_manager, SLOT(ReadProjectId(PROJECT_INFORMATION*)));
146 QObject::connect(project_doc_manager, SIGNAL(SendProjectId(PROJECT_INFORMATION*)), dev_manager, SLOT(ReadProjectId(PROJECT_INFORMATION*)));
147 QObject::connect(project_doc_manager, SIGNAL(SendProjectId(PROJECT_INFORMATION*)), status_manager, SLOT(ReadProjectInfo(PROJECT_INFORMATION*)));
148 QObject::connect(project_doc_manager, SIGNAL(SendProjectId(PROJECT_INFORMATION*)), version_manager, SLOT(ReadProjectInfo(PROJECT_INFORMATION*)));
149 QObject::connect(project_doc_manager, SIGNAL(SendProjectId(PROJECT_INFORMATION*)), project_subs_manager, SLOT(ReadProjectId(PROJECT_INFORMATION*)));
150 QObject::connect(project_doc_manager, SIGNAL(SendProjectId(PROJECT_INFORMATION*)), project_opts_manager, SLOT(ReadProjectId(PROJECT_INFORMATION*)));
151 QObject::connect(project_doc_manager, SIGNAL(SaveLocalSubstitutes()), project_subs_manager, SLOT(SaveLocalSubstitutes()));
152
153 QObject::connect(ui->SaveProject, SIGNAL(pressed()), project_doc_manager, SLOT(SaveProject()));
154 QObject::connect(ui->UseDefaultDeparture, SIGNAL(pressed()), this, SLOT(SetDefaultDeparture()));
155
156 QObject::connect(project_doc_manager, SIGNAL(SendSubstituteState(bool)), project_subs_manager, SLOT(SetSubstituteState(bool)));
157
158 QObject::connect(project_id_manager, SIGNAL(SendProjectOptions(uint)), project_opts_manager, SLOT(ReadOptionState(uint)));
159 QObject::connect(project_opts_manager, SIGNAL(SendOptionState(uint)), project_subs_manager, SLOT(SetOptionState(uint)));
160
161 // Visual Cue Changes
162 QObject::connect(ui->ProjectName, SIGNAL(textChanged(QString)), this, SLOT(SetProjectNameColor(QString)));
163 QObject::connect(ui->DepartureURL, SIGNAL(textChanged(QString)), this, SLOT(SetDepartureURLColor(QString)));
164 QObject::connect(ui->ExecutableDirectory, SIGNAL(textChanged(QString)), this, SLOT(SetExeDirColor(QString)));
165 QObject::connect(ui->ExecutableName, SIGNAL(textChanged(QString)), this, SLOT(SetExeNameColor(QString)));
166 QObject::connect(ui->BriefDescription, SIGNAL(textChanged(QString)), this, SLOT(SetBriefDescriptionColor(QString)));
167 QObject::connect(ui->FullDescription, SIGNAL(textChanged()), this, SLOT(SetFullDesriptionColor()));
168 QObject::connect(this, SIGNAL(UpdateFullDescription(QString)), project_subs_manager, SLOT(UpdateFullDescription(QString)));
169 QObject::connect(ui->VersionDescription, SIGNAL(textChanged()), this, SLOT(SetVersionDesriptionColor()));
170 QObject::connect(ui->ProjectIcon, SIGNAL(textChanged(QString)), this, SLOT(SetProjectIconColor(QString)));
171 QObject::connect(ui->DoxyProjectLogo, SIGNAL(textChanged(QString)), this, SLOT(SetDoxyProjectLogoColor(QString)));
172 QObject::connect(ui->DoxyHeader, SIGNAL(textChanged(QString)), this, SLOT(SetDoxyHeaderColor(QString)));
173 QObject::connect(ui->DoxyFooter, SIGNAL(textChanged(QString)), this, SLOT(SetDoxyFooterColor(QString)));
174 QObject::connect(ui->DoxyStylesheet, SIGNAL(textChanged(QString)), this, SLOT(SetDoxyStylesheetColor(QString)));
175 QObject::connect(ui->ProjectIdent, SIGNAL(textChanged(QString)), this, SLOT(SetProjectIdentColor(QString)));
176
177 // Processing Buttons
178 QObject::connect(ui->UpdateSelectedProject, SIGNAL(pressed()), project_list_manager, SLOT(ProcessSelection()));
179 QObject::connect(ui->UpdateAllProjects, SIGNAL(pressed()), project_list_manager, SLOT(ProcessFullList()));
180 QObject::connect(ui->SelectExeDir, SIGNAL(pressed()), this, SLOT(SelectExeDir()));
181}
ProgramIdentification * program_id
Point to the Program's identification.
Definition mainwindow.h:64
void SetBriefDescriptionColor(QString TextString)
Set the Colour of the Project's Brief Description.
void SetDoxyProjectLogoColor(QString TextString)
Set the Colour of the Doxygen Project Logo.
void SetDoxyFooterColor(QString TextString)
Set the Colour of the Doxygen Footer Colour.
LicenceManager * licence_manager
Pointer to the Licence Class.
Definition mainwindow.h:82
Ui::MainWindow * ui
POinter to the Main Window.
Definition mainwindow.h:58
DevelopmentFamily * dev_manager
Pointer to the Development Class.
Definition mainwindow.h:76
ProgramVersion * version_manager
Pointer to the Progra's Version Class.
Definition mainwindow.h:100
void UpdateFullDescription(QString DescText)
Emit the Full Description text.
void SetVersionDesriptionColor()
Set the Colour of the Version Description.
void SelectExeDir(void)
ProjectStatus * status_manager
Pointer to the Status Class.
Definition mainwindow.h:88
void SetDoxyHeaderColor(QString TextString)
Set the Colour of the Doxygen Header Colour.
Logger * log
Pointer to the Log Class.
Definition mainwindow.h:50
void SetProjectIconColor(QString TextString)
Set the Colour of the Project Icon.
ProjectIdentifier * project_id_manager
Pointer to the Project Id3entification Class.
Definition mainwindow.h:94
void SetDoxyStylesheetColor(QString TextString)
Set the Colour of the Doxygen Stylesheet Colour.
void SetExeNameColor(QString TextString)
Set the Colour of the Exe Name Stylesheet Colour.
void SetDepartureURLColor(QString TextString)
Set the Colour of the Project's Departure URL.
void SetProjectNameColor(QString TextString)
Set the Colour of the Project Name.
DatabaseManager * db_manager
Pointer to the Database Class.
Definition mainwindow.h:70
void SetExeDirColor(QString TextString)
Set the Colour of the Exe Directory Stylesheet Colour.
void SetDefaultDeparture(void)
Set the Default Departure URL.
void SetFullDesriptionColor()
void SetProjectIdentColor(QString TextString)
Set the Colour of the Project Identifier.
ProjectListManager * project_list_manager
ReadProjectInfo * read_project_info
@ LOG_DEBUG
Definition logger.h:56
@ MODE_CONFIG
Definition logger.h:26
ProjectOptionsManager * project_opts_manager
PROJECT_INFORMATION project_information
DoxygenManager * doxy_manager
ProjectSubstitute * project_subs_manager
ProjectDocManager * project_doc_manager
PROGRAM_INFORMATION ProgramInformation

References db_manager, dev_manager, doxy_manager, licence_manager, log, LOG_DEBUG, MainWindow(), MODE_CONFIG, program_id, project_doc_manager, project_id_manager, project_information, project_list_manager, project_opts_manager, project_subs_manager, read_project_info, SelectExeDir(), SetBriefDescriptionColor(), SetDefaultDeparture(), SetDepartureURLColor(), SetDoxyFooterColor(), SetDoxyHeaderColor(), SetDoxyProjectLogoColor(), SetDoxyStylesheetColor(), SetExeDirColor(), SetExeNameColor(), SetFullDesriptionColor(), SetProjectIconColor(), SetProjectIdentColor(), SetProjectNameColor(), SetVersionDesriptionColor(), status_manager, ui, UpdateFullDescription(), and version_manager.

Referenced by MainWindow().

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

◆ ~MainWindow()

MainWindow::~MainWindow ( )

Main Window Deconstructor.

Definition at line 183 of file mainwindow.cpp.

184{
185 delete project_doc_manager; // Unlock the project (if locked);
186 delete log; // Save Log Parameters, If Required
187 delete ui;
188}

References log, project_doc_manager, and ui.

Member Function Documentation

◆ SelectExeDir

void MainWindow::SelectExeDir ( void )
privateslot

Definition at line 275 of file mainwindow.cpp.

276{
277 QString dir_name = QFileDialog::getExistingDirectory(this, "Select Directory", ui->ExecutableDirectory->text(), QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
278 if (!dir_name.isEmpty()) ui->ExecutableDirectory->setText(dir_name);
279}

References ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetBriefDescriptionColor

void MainWindow::SetBriefDescriptionColor ( QString TextString)
privateslot

Set the Colour of the Project's Brief Description.

Parameters
TextStringStylesheet for the desired colour

Definition at line 205 of file mainwindow.cpp.

206{
207 if (TextString.length() == 0) ui->BriefDescription->setStyleSheet(red_stylesheet); else ui->BriefDescription->setStyleSheet(no_color_stylesheet);
208}
QString red_stylesheet
Stylesheet for the colour red.
Definition mainwindow.h:106
QString no_color_stylesheet
Stylesheet for no colour definition.
Definition mainwindow.h:124

References no_color_stylesheet, red_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetDefaultDeparture

void MainWindow::SetDefaultDeparture ( void )
privateslot

Set the Default Departure URL.

Definition at line 281 of file mainwindow.cpp.

282{
283 ui->DepartureURL->setText(ui->DefaultReturnAddress->text());
284}

References ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetDepartureURLColor

void MainWindow::SetDepartureURLColor ( QString TextString)
privateslot

Set the Colour of the Project's Departure URL.

Parameters
TextStringStylesheet for the desired colour

Definition at line 195 of file mainwindow.cpp.

196{
197 if (TextString.length() == 0) ui->DepartureURL->setStyleSheet(purple_stylesheet); else ui->DepartureURL->setStyleSheet(no_color_stylesheet);
198}
QString purple_stylesheet
Stylesheet for the colour purple.
Definition mainwindow.h:112

References no_color_stylesheet, purple_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetDoxyFooterColor

void MainWindow::SetDoxyFooterColor ( QString TextString)
privateslot

Set the Colour of the Doxygen Footer Colour.

Parameters
TextStringStylesheet for the desired colour

Definition at line 242 of file mainwindow.cpp.

243{
244 if (TextString.length() == 0) ui->DoxyFooter->setStyleSheet(grey_stylesheet); else ui->DoxyFooter->setStyleSheet(no_color_stylesheet);
245}
QString grey_stylesheet
Stylesheet for the colour grey.
Definition mainwindow.h:118

References grey_stylesheet, no_color_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetDoxyHeaderColor

void MainWindow::SetDoxyHeaderColor ( QString TextString)
privateslot

Set the Colour of the Doxygen Header Colour.

Parameters
TextStringStylesheet for the desired colour

Definition at line 231 of file mainwindow.cpp.

232{
233 if (TextString.length() == 0) ui->DoxyHeader->setStyleSheet(grey_stylesheet); else ui->DoxyHeader->setStyleSheet(no_color_stylesheet);
234}

References grey_stylesheet, no_color_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetDoxyProjectLogoColor

void MainWindow::SetDoxyProjectLogoColor ( QString TextString)
privateslot

Set the Colour of the Doxygen Project Logo.

Parameters
TextStringStylesheet for the desired colour

Definition at line 226 of file mainwindow.cpp.

227{
228 if (TextString.length() == 0) ui->DoxyProjectLogo->setStyleSheet(grey_stylesheet); else ui->DoxyProjectLogo->setStyleSheet(no_color_stylesheet);
229}

References grey_stylesheet, no_color_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetDoxyStylesheetColor

void MainWindow::SetDoxyStylesheetColor ( QString TextString)
privateslot

Set the Colour of the Doxygen Stylesheet Colour.

Parameters
TextStringStylesheet for the desired colour

Definition at line 247 of file mainwindow.cpp.

248{
249 if (TextString.length() == 0) ui->DoxyStylesheet->setStyleSheet(grey_stylesheet); else ui->DoxyStylesheet->setStyleSheet(no_color_stylesheet);
250}

References grey_stylesheet, no_color_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetExeDirColor

void MainWindow::SetExeDirColor ( QString TextString)
privateslot

Set the Colour of the Exe Directory Stylesheet Colour.

Parameters
TextStringStylesheet for the desired colour

Definition at line 200 of file mainwindow.cpp.

201{
202 if (TextString.length() == 0) ui->ExecutableDirectory->setStyleSheet(red_stylesheet); else ui->ExecutableDirectory->setStyleSheet(no_color_stylesheet);
203}

References no_color_stylesheet, red_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetExeNameColor

void MainWindow::SetExeNameColor ( QString TextString)
privateslot

Set the Colour of the Exe Name Stylesheet Colour.

Parameters
TextStringStylesheet for the desired colour

Definition at line 236 of file mainwindow.cpp.

237{
238 if (TextString.length() == 0) ui->ExecutableName->setStyleSheet(red_stylesheet); else ui->ExecutableName->setStyleSheet(no_color_stylesheet);
239}

References no_color_stylesheet, red_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetFullDesriptionColor

void MainWindow::SetFullDesriptionColor ( )
privateslot

Definition at line 210 of file mainwindow.cpp.

211{
212 if (ui->FullDescription->toPlainText().length() == 0 ) ui->FullDescription->setStyleSheet(red_stylesheet); else ui->FullDescription->setStyleSheet(no_color_stylesheet);
213 emit UpdateFullDescription(QString(ui->FullDescription->toPlainText()));
214}

References no_color_stylesheet, red_stylesheet, ui, and UpdateFullDescription().

Referenced by MainWindow().

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

◆ SetProgramName

void MainWindow::SetProgramName ( QString ProgramName)
privateslot

Set the Program Name.

Parameters
TextStringStylesheet for the desired colour

Definition at line 257 of file mainwindow.cpp.

258{
259 QString exe_name; exe_name.clear();
260 QDir build_dir(DirectoryName);
261
262 if (build_dir.exists())
263 {
264 build_dir.setFilter(QDir::Files | QDir::NoSymLinks | QDir::Executable);
265 QFileInfoList list = build_dir.entryInfoList();
266 if (list.size() == 1)
267 {
268 QFileInfo file_info = list.at(0);
269 exe_name = file_info.fileName();
270 }
271 }
272 ui->ExecutableName->setText(exe_name);
273}

References ui.

◆ SetProjectIconColor

void MainWindow::SetProjectIconColor ( QString TextString)
privateslot

Set the Colour of the Project Icon.

Parameters
TextStringStylesheet for the desired colour

Definition at line 221 of file mainwindow.cpp.

222{
223 if (TextString.length() == 0) ui->ProjectIcon->setStyleSheet(grey_stylesheet); else ui->ProjectIcon->setStyleSheet(no_color_stylesheet);
224}

References grey_stylesheet, no_color_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetProjectIdentColor

void MainWindow::SetProjectIdentColor ( QString TextString)
privateslot

Set the Colour of the Project Identifier.

Parameters
TextStringStylesheet for the desired colour

Definition at line 252 of file mainwindow.cpp.

253{
254 if (TextString.length() == 0) ui->ProjectIdent->setStyleSheet(red_stylesheet); else ui->ProjectIdent->setStyleSheet(no_color_stylesheet);
255}

References no_color_stylesheet, red_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetProjectNameColor

void MainWindow::SetProjectNameColor ( QString TextString)
privateslot

Set the Colour of the Project Name.

Parameters
TextStringStylesheet for the desired colour

Definition at line 190 of file mainwindow.cpp.

191{
192 if (TextString.length() == 0) ui->ProjectName->setStyleSheet(red_stylesheet); else ui->ProjectName->setStyleSheet(no_color_stylesheet);
193}

References no_color_stylesheet, red_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ SetVersionDesriptionColor

void MainWindow::SetVersionDesriptionColor ( )
privateslot

Set the Colour of the Version Description.

Parameters
TextStringStylesheet for the desired colour

Change the colour based on whether the text field is empty or not.

Definition at line 216 of file mainwindow.cpp.

217{
218 if (ui->VersionDescription->toPlainText().length() == 0 ) ui->VersionDescription->setStyleSheet(red_stylesheet); else ui->VersionDescription->setStyleSheet(no_color_stylesheet);
219}

References no_color_stylesheet, red_stylesheet, and ui.

Referenced by MainWindow().

Here is the caller graph for this function:

◆ UpdateFullDescription

void MainWindow::UpdateFullDescription ( QString DescText)
signal

Emit the Full Description text.

Parameters
DescTextFull Project Description Text

Referenced by MainWindow(), and SetFullDesriptionColor().

Here is the caller graph for this function:

Field Documentation

◆ db_manager

DatabaseManager* MainWindow::db_manager
private

Pointer to the Database Class.

Definition at line 70 of file mainwindow.h.

Referenced by MainWindow().

◆ dev_manager

DevelopmentFamily* MainWindow::dev_manager
private

Pointer to the Development Class.

Definition at line 76 of file mainwindow.h.

Referenced by MainWindow().

◆ grey_stylesheet

QString MainWindow::grey_stylesheet = "color: rgb(200, 200, 200)"
private

Stylesheet for the colour grey.

Definition at line 118 of file mainwindow.h.

Referenced by SetDoxyFooterColor(), SetDoxyHeaderColor(), SetDoxyProjectLogoColor(), SetDoxyStylesheetColor(), and SetProjectIconColor().

◆ licence_manager

LicenceManager* MainWindow::licence_manager
private

Pointer to the Licence Class.

Definition at line 82 of file mainwindow.h.

Referenced by MainWindow().

◆ log

Logger* MainWindow::log

Pointer to the Log Class.

Definition at line 50 of file mainwindow.h.

Referenced by MainWindow(), and ~MainWindow().

◆ no_color_stylesheet

◆ program_id

ProgramIdentification* MainWindow::program_id
private

Point to the Program's identification.

Definition at line 64 of file mainwindow.h.

Referenced by MainWindow().

◆ project_id_manager

ProjectIdentifier* MainWindow::project_id_manager
private

Pointer to the Project Id3entification Class.

Definition at line 94 of file mainwindow.h.

Referenced by MainWindow().

◆ purple_stylesheet

QString MainWindow::purple_stylesheet = "color: rgb(192, 97, 203)"
private

Stylesheet for the colour purple.

Definition at line 112 of file mainwindow.h.

Referenced by SetDepartureURLColor().

◆ red_stylesheet

QString MainWindow::red_stylesheet = "color: rgb(224, 27, 36)"
private

◆ status_manager

ProjectStatus* MainWindow::status_manager
private

Pointer to the Status Class.

Definition at line 88 of file mainwindow.h.

Referenced by MainWindow().

◆ ui

◆ version_manager

ProgramVersion* MainWindow::version_manager
private

Pointer to the Progra's Version Class.

Definition at line 100 of file mainwindow.h.

Referenced by MainWindow().


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