|
Project Documentation Manager BRIGADOON-0002
Project Documentation Manager
|
#include <projectlistmanager.h>
Public Slots | |
| void | ProjectTabChanged (int Index) |
| Process the Change in Window Tab. | |
| void | LoadProjectTable (void) |
| Clear and Reload the Project table, Sort by Selected Button \SortButton Button pressed to sort the Table List. | |
| void | ProcessFullList (void) |
| Add all Projects for Documentation Creation. | |
| void | ProcessSelection (void) |
| Add th Selected Project for Documentation Creation. | |
| void | PrStateChange (PROJECT_INFORMATION *Project) |
| Update the Lock/Queued Status of Project in the Project List Table. | |
Signals | |
| void | SendLogEntry (REMOTE_LOG_ENTRY log_entry) |
Public Member Functions | |
| ProjectListManager (Ui::MainWindow *UI_Window) | |
| Project List Manager Class Constructor. | |
| ~ProjectListManager () | |
| Project List Manager Class Destructor. | |
| QString | MakeHTMLProjectPage (QString HeaderTemplateFile, QString FooterTemplateFile, QString LineTemplateFile, bool TableOnly=true) |
| QString | MakeOSProjectPage (void) |
Private Slots | |
| void | PressedInstallOff (void) |
| Turn all Install Check boxes off in List table. | |
| void | PressedInstallOn (void) |
| Turn all Install Check boxes on in List table. | |
| void | PressedArchiveOff (void) |
| Turn all Archive Check boxes off in List table. | |
| void | PressedArchiveOn (void) |
| Turn all Archive Check boxes on in List table. | |
Private Member Functions | |
| void | InitaliseProjectTable (void) |
| Clear and Load the Project List Table. | |
| void | SetMaximumProjects (void) |
| Set the Initial Line Count in the Project List table. | |
| QString | ReadTableTemplate (QString TemplateFile) |
| Read an HTML template from a File. | |
| bool | WriteTextFile (QString FileName, QString Contents) |
| Write a String to a File. | |
| int | FindSelections (int index) |
| Read and Encode selected options for a Project. | |
| void | SetCheckState (int column, bool InstallState) |
| Set the State of all Project Selection in Table List. | |
| void | LogAdd (LOGGING_SEVERITY Severity, LOGGING_MODE Mode, QString Message) |
| Send Message to the Log. | |
Private Attributes | |
| Ui::MainWindow * | ui |
| QButtonGroup * | sort_group |
| Pointer to Button Group for sorting Project List Table. | |
| QString | base_project_query |
| Basic SQL Query for listing Projects. | |
| QList< PROJECT_INFORMATION * > | ProjectList |
| A list of Projects to be processed. | |
Definition at line 131 of file projectlistmanager.h.
| ProjectListManager::ProjectListManager | ( | Ui::MainWindow * | UI_Window | ) |
Project List Manager Class Constructor.
| UI_Window | Pointer to the Main Window |
Definition at line 15 of file projectlistmanager.cpp.
References ARCHIVE_BUTTON_COLUMN, ARCHIVE_BUTTON_SIZE, ASSOCIATION_COLUMN, ASSOCIATION_SIZE, base_project_query, BRIEF_DESC_COLUMN, BRIEF_DESC_SIZE, COMPILER_FAMILY_COLUMN, COMPILER_FAMILY_SIZE, DEV_FAMILY_COLUMN, DEV_FAMILY_SIZE, DOC_LICENCE_COLUMN, DOC_LICENCE_SIZE, HARDWARE_LICENCE_COLUMN, HARDWARE_LICENCE_SIZE, INSTALL_BUTTON_COLUMN, INSTALL_BUTTON_SIZE, PressedArchiveOff(), PressedArchiveOn(), PressedInstallOff(), PressedInstallOn(), PROJECT_CONTACT_COLUMN, PROJECT_CONTACT_SIZE, PROJECT_IDENT_COLUMN, PROJECT_IDENT_SIZE, PROJECT_NAME_COLUMN, PROJECT_NAME_SIZE, PROJECT_STATUS_COLUMN, PROJECT_STATUS_SIZE, ProjectList, PUBLISH_BUTTON_COLUMN, PUBLISH_BUTTON_SIZE, SetMaximumProjects(), SOFTWARE_LICENCE_COLUMN, SOFTWARE_LICENCE_SIZE, TABLE_COLUMN_COUNT, TARGET_FAMILY_COLUMN, TARGET_FAMILY_SIZE, and ui.
| ProjectListManager::~ProjectListManager | ( | void | ) |
Project List Manager Class Destructor.
Definition at line 51 of file projectlistmanager.cpp.
|
private |
Read and Encode selected options for a Project.
| index | The row index in the Project List Table |
Definition at line 237 of file projectlistmanager.cpp.
References ARCHIVE_BUTTON_COLUMN, CREATE_SOURCE_ARCHIVE, INSTALL_BUTTON_COLUMN, INSTALL_SCRIPT_MASK, PUBLISH_BUTTON_COLUMN, and ui.
Referenced by ProcessSelection().
|
private |
Clear and Load the Project List Table.
Definition at line 85 of file projectlistmanager.cpp.
References LoadProjectTable().
Referenced by ProjectTabChanged().
|
slot |
Clear and Reload the Project table, Sort by Selected Button \SortButton Button pressed to sort the Table List.
Definition at line 90 of file projectlistmanager.cpp.
References ALLOW_AUTOMATIC_INSTALL, ARCHIVE_BUTTON_COLUMN, ASSOCIATION_COLUMN, base_project_query, BRIEF_DESC_COLUMN, PROJECT_DESCRIPTION::BriefDescription, COMPILER_FAMILY_COLUMN, CREATE_SOURCE_ARCHIVE, DEV_FAMILY_COLUMN, PROJECT_INFORMATION::Developer, PROJECT_INFORMATION::DevFamilyInfo, DOC_LICENCE_COLUMN, PROJECT_INFORMATION::DocLicence, HARDWARE_LICENCE_COLUMN, PROJECT_INFORMATION::HardwareLicence, PROJECT_INFORMATION::InAssocInfo, INSTALL_BUTTON_COLUMN, PROJECT_INFORMATION::LangFamilyInfo, DEVELOPER_INFO::Name, PROJECT_CONTACT_COLUMN, PROJECT_IDENT_COLUMN, PROJECT_NAME_COLUMN, PROJECT_STATUS_COLUMN, project_subs_manager, PROJECT_INFORMATION::ProjectDesc, PROJECT_DESCRIPTION::ProjectIdent, ProjectList, PROJECT_DESCRIPTION::ProjectName, PROJECT_DESCRIPTION::ProjectOptions, PrStateChange(), PUBLISH_BUTTON_COLUMN, read_project_info, SetMaximumProjects(), ASSOCIATED_GROUP_INFO::ShortName, DEV_FAMILY_INFO::ShortName, LANG_FAMILY_INFO::ShortName, LICENCE_INFO::ShortName, TARGET_FAMILY_INFO::ShortName, SOFTWARE_LICENCE_COLUMN, PROJECT_INFORMATION::SoftwareLicence, PROJECT_INFORMATION::StatusInfo, STATUS_INFO::StatusName, TARGET_FAMILY_COLUMN, PROJECT_INFORMATION::TargetFamilyInfo, and ui.
Referenced by InitaliseProjectTable().
|
private |
Send Message to the Log.
| Severity | Severity of the Log Message |
| Mode | Which part of the program does the message relate to |
| Message | Text message to be added to the Log |
Definition at line 275 of file projectlistmanager.cpp.
References REMOTE_LOG_ENTRY::Message, REMOTE_LOG_ENTRY::Mode, SendLogEntry(), and REMOTE_LOG_ENTRY::Severity.
Referenced by MakeHTMLProjectPage(), PrStateChange(), and WriteTextFile().
| QString ProjectListManager::MakeHTMLProjectPage | ( | QString | HeaderTemplateFile, |
| QString | FooterTemplateFile, | ||
| QString | LineTemplateFile, | ||
| bool | TableOnly = true ) |
Definition at line 309 of file projectlistmanager.cpp.
References ASSOCIATED_GROUP_INFO::AssociationURL, base_project_query, PROJECT_DESCRIPTION::BriefDescription, PROJECT_INFORMATION::Developer, PROJECT_INFORMATION::DevFamilyInfo, PROJECT_INFORMATION::DocLicence, DEVELOPER_INFO::Email, EXCLUDE_PROJECT_LIST, DEVELOPER_INFO::Handle, PROJECT_INFORMATION::HardwareLicence, ASSOCIATED_GROUP_INFO::InAssociationIndex, PROJECT_INFORMATION::InAssocInfo, PROJECT_INFORMATION::LangFamilyInfo, LICENCE_INFO::LicenceIndex, LICENCE_INFO::LicenceURL, LOG_DEBUG, LOG_INFO, LogAdd(), MODE_FILE, PROJECT_INFORMATION::ProgramInformation, PROJECT_INFORMATION::ProjectDesc, PROJECT_DESCRIPTION::ProjectIdent, PROJECT_DESCRIPTION::ProjectName, PROJECT_DESCRIPTION::ProjectOptions, read_project_info, ReadTableTemplate(), ASSOCIATED_GROUP_INFO::ShortName, DEV_FAMILY_INFO::ShortName, LANG_FAMILY_INFO::ShortName, LICENCE_INFO::ShortName, TARGET_FAMILY_INFO::ShortName, PROGRAM_INFORMATION::SiteURL, PROJECT_INFORMATION::SoftwareLicence, PROJECT_INFORMATION::StatusInfo, STATUS_INFO::StatusName, PROJECT_INFORMATION::TargetFamilyInfo, and ui.
Referenced by ProjectTabChanged().
| QString ProjectListManager::MakeOSProjectPage | ( | void | ) |
Definition at line 284 of file projectlistmanager.cpp.
References base_project_query, PROJECT_INFORMATION::ProgramInformation, PROJECT_INFORMATION::ProjectDesc, PROJECT_DESCRIPTION::ProjectIdent, PROJECT_DESCRIPTION::ProjectName, read_project_info, PROGRAM_INFORMATION::SiteURL, and ui.
Referenced by ProjectTabChanged().
|
privateslot |
Turn all Archive Check boxes off in List table.
Definition at line 567 of file projectlistmanager.cpp.
References ARCHIVE_BUTTON_COLUMN, and SetCheckState().
Referenced by ProjectListManager().
|
privateslot |
Turn all Archive Check boxes on in List table.
Definition at line 562 of file projectlistmanager.cpp.
References ARCHIVE_BUTTON_COLUMN, and SetCheckState().
Referenced by ProjectListManager().
|
privateslot |
Turn all Install Check boxes off in List table.
Definition at line 556 of file projectlistmanager.cpp.
References INSTALL_BUTTON_COLUMN, and SetCheckState().
Referenced by ProjectListManager().
|
privateslot |
Turn all Install Check boxes on in List table.
Definition at line 551 of file projectlistmanager.cpp.
References INSTALL_BUTTON_COLUMN, and SetCheckState().
Referenced by ProjectListManager().
|
slot |
Add all Projects for Documentation Creation.
Definition at line 263 of file projectlistmanager.cpp.
References doxy_manager, ProjectList, and ui.
|
slot |
Add th Selected Project for Documentation Creation.
Definition at line 227 of file projectlistmanager.cpp.
References doxy_manager, FindSelections(), ProjectList, and ui.
|
slot |
Process the Change in Window Tab.
| Selected | Window Tab Index |
Definition at line 57 of file projectlistmanager.cpp.
References CREATE_UPDATE_TAB, InitaliseProjectTable(), LICENCE_ACK_TAB, LOG_TAB, MakeHTMLProjectPage(), MakeOSProjectPage(), PROGRAM_SETUP_TAB, ui, UPDATE_PROJECTS_TAB, and WriteTextFile().
|
slot |
Update the Lock/Queued Status of Project in the Project List Table.
| Project | POinter to Project's Information |
Definition at line 528 of file projectlistmanager.cpp.
References INACTIVE_COLOUR, LOCK_COLOUR, LOG_ERROR, LogAdd(), MODE_QT, PROJECT_INFORMATION::ProjectDesc, PROJECT_DESCRIPTION::ProjectIdent, PROJECT_INFORMATION::ProjectLock, PROJECT_INFORMATION::ProjectQueued, QUEUED_COLOUR, and ui.
Referenced by LoadProjectTable().
|
private |
Read an HTML template from a File.
| TemplateFile | Name of the Template File |
Definition at line 494 of file projectlistmanager.cpp.
Referenced by MakeHTMLProjectPage().
|
signal |
|
private |
Set the State of all Project Selection in Table List.
| Colum | of Project List Table |
| InstallState | State (Off/On) to be Install in all Switches |
Definition at line 572 of file projectlistmanager.cpp.
References ui.
Referenced by PressedArchiveOff(), PressedArchiveOn(), PressedInstallOff(), and PressedInstallOn().
|
private |
Set the Initial Line Count in the Project List table.
Definition at line 212 of file projectlistmanager.cpp.
References ui.
Referenced by LoadProjectTable(), and ProjectListManager().
|
private |
Write a String to a File.
| FileName | The name of the Target File |
| Contents | The String to be written to the File |
Definition at line 509 of file projectlistmanager.cpp.
References LOG_DEBUG, LOG_ERROR, LogAdd(), and MODE_FILE.
Referenced by ProjectTabChanged().
|
private |
Basic SQL Query for listing Projects.
Definition at line 170 of file projectlistmanager.h.
Referenced by LoadProjectTable(), MakeHTMLProjectPage(), MakeOSProjectPage(), and ProjectListManager().
|
private |
A list of Projects to be processed.
Definition at line 176 of file projectlistmanager.h.
Referenced by LoadProjectTable(), ProcessFullList(), ProcessSelection(), and ProjectListManager().
|
private |
Pointer to Button Group for sorting Project List Table.
Definition at line 164 of file projectlistmanager.h.
|
private |
brief Pointer to the main window
Definition at line 158 of file projectlistmanager.h.
Referenced by FindSelections(), LoadProjectTable(), MakeHTMLProjectPage(), MakeOSProjectPage(), ProcessFullList(), ProcessSelection(), ProjectListManager(), ProjectTabChanged(), PrStateChange(), SetCheckState(), and SetMaximumProjects().