|
Project Documentation Manager BRIGADOON-0002
Project Documentation Manager
|
#include <projectsubstitute.h>
Public Slots | |
| void | DoClear (void) |
| Clear the Substitution lists and display. | |
| void | LoadSubsTable (int ProjectNo) |
| void | ReadProjectId (PROJECT_INFORMATION *ProjectInfo) |
| Load the Substitution Table for th Project. | |
| void | UpdateVersion (REMOTE_VERSION_ENTRY Version) |
| Update the Version Information in the Substitute Table. | |
| void | UpdateDevFamily (DEVELOPMENT_FAMILY DevelopmentTypes) |
| Update the Dev Families Information in the Substitute Table. | |
| void | UpdateStatus (STATUS_INFO StatusInfo) |
| Update the Deve Families Information in the Substitute Table. | |
| void | SaveLocalSubstitutes (void) |
| Save the Local Substitutes to the Database. | |
| void | UpdateSoftwareLicence (QString LicenceName) |
| Update the Software Licence Information in the Substitute Table. | |
| void | UpdateHardwareLicence (QString LicenceName) |
| Update the Hardware Licence Information in the Substitute Table. | |
| void | UpdateDocumentationLicence (QString LicenceName) |
| Update the Documentation Licence Information in the Substitute Table. | |
| void | UpdateFullDescription (QString FullDescription) |
| Update the Full Description in the Substitute Table. | |
| void | ReadMajorVersion (int MajorVersion) |
| Update the Major Version in the Substitute Table. | |
| void | ReadMinorVersion (int MinorVersion) |
| Update the Minor Version in the Substitute Table. | |
| void | ReadRevision (int Revision) |
| Update the Revision in the Substitute Table. | |
| void | UpdateProjectName (QString Name) |
| Update Project Name in Substitute Table. | |
| void | UpdateDepartureURL (QString Name) |
| Update Exit URL in Substitute Table. | |
| void | UpdateProjectIcon (QString Name) |
| void | UpdateProjectBrief (QString Text) |
| Update Project Brief in Substitute Table. | |
| void | UpdateProjectContact (QString ContactName) |
| void | UpdateProjectDateTime (QString ProjectDateTime) |
| Update Project's DateTime in Substitute Table. | |
| void | UpdateDoxyProjectLogo (QString DoxyProjectLogo) |
| Update Doxygen's Project Logo Filename in Substitute Table. | |
| void | UpdateDoxyHeader (QString DoxyHeader) |
| Update Doxygen's Header Filename in Substitute Table. | |
| void | UpdateDoxyFooter (QString DoxyFooter) |
| Update Doxygen's Footer Filename in Substitute Table. | |
| void | UpdateDoxyStylesheet (QString DoxyStylesheet) |
| Update Doxygen's Stylesheet Filename in Substitute Table. | |
| void | UpdateInAssocation (QString Association) |
| void | LoadPresets (void) |
| Load the Substitution Table. | |
Signals | |
| void | SendLogEntry (REMOTE_LOG_ENTRY LogEntry) |
Public Member Functions | |
| ProjectSubstitute (Ui::MainWindow *UI_Window, ProjectOptionsManager *ProjectOptsManager) | |
| LicenceManager Construction routine. | |
| void | LoadFileSubsList (PROJECT_INFORMATION *Project) |
| Load the Substitution table from the Project Information. | |
Private Slots | |
| void | ReloadSubstituteTable (void) |
| Reload the Substituition Table & Display. | |
| void | ClearSubstituteEntry (void) |
| Clear the Select Substitution Row & data. | |
| void | SetSubstituteState (bool State) |
| void | SetOptionState (uint Options) |
| void | SetEditableState (QTableWidgetItem *Item) |
Private Member Functions | |
| QTableWidgetItem * | FindItemByKey (QString Key) |
| Find a Substitution Entry in the Substitution List by Name. | |
| bool | UpdateItem (QString Key, QString Value) |
| Update the Value of an Entry in the Substitution List. | |
| void | LogAdd (LOGGING_SEVERITY Severity, LOGGING_MODE Mode, QString Message) |
| Add a Log Entry. | |
| void | AddKeyValue (QString Key, QString Value, int RowIndex) |
| Add a New Key-Value pair to the Substitution List. | |
| int | DecodeProjectOptions (uint Options, int RowIndex, bool NewProject) |
| Add Key-Value items for all Project Options. | |
| bool | SaveKeyValuePair (int ProjectId, QString Key, QString Value, bool Lock) |
| void | LoadBasePresets (int RowIndex, int ProjectNo) |
| QString | GetProjectEmail (int Index) |
| void | LoadUserSubstitutes (PROJECT_INFORMATION *Project) |
Private Attributes | |
| Ui::MainWindow * | ui |
| Pointer to the Main Window. | |
| PROJECT_INFORMATION * | project_info |
| Structure to hold Project Information. | |
| QString | leadin_string |
| Lead in Characters for substitution blocks. | |
| QString | leadout_string |
| Lead out Characters for substitution blocks. | |
| QColor | system_colour |
| table Background Colour | |
| ProjectOptionsManager * | project_opts_manager |
| Pointer the Project Options Manager Class. | |
| QStringList | option_name |
| List of Option Names for Subtitution process. | |
| QStringList | sys_item_name |
| List of System Names for Subtitution process. | |
Definition at line 80 of file projectsubstitute.h.
|
explicit |
LicenceManager Construction routine.
| UI_Window | POinter to the main window |
| ProjectOptsManager | Pointer to the Project Options Manager Class |
Definition at line 7 of file projectsubstitute.cpp.
References ClearSubstituteEntry(), leadin_string, leadout_string, MAXIMUM_KEY_VALUE_PAIRS, option_name, PROJECT_KEY_COLUMN_WIDTH, project_opts_manager, ReloadSubstituteTable(), SaveLocalSubstitutes(), sys_item_name, system_colour, and ui.
|
private |
Add a New Key-Value pair to the Substitution List.
| Key | The Key to be inserted into the List |
| Value | The Value to be associated with the New Key in the list |
Definition at line 246 of file projectsubstitute.cpp.
References system_colour, and ui.
Referenced by DecodeProjectOptions(), and LoadSubsTable().
|
privateslot |
Clear the Select Substitution Row & data.
Definition at line 279 of file projectsubstitute.cpp.
References ui.
Referenced by ProjectSubstitute().
|
private |
Add Key-Value items for all Project Options.
| Options | Encoded Project Options |
| RowIndex | The Row in the Substitution table Display |
| New | Project Flag if this is a new Project |
Definition at line 297 of file projectsubstitute.cpp.
References AddKeyValue(), ASSISTANCE_WELCOME_BIT, CAVEAT_LECTOR_BIT, CONTROL_DOC_ACCESS_BIT, DONATIONS_WELCOME_BIT, ENABLE_CUSTOM_DOXYGEN_BIT, EXCLUDE_PROJECT_LIST_BIT, GROUP_ACCESS_ONLY_BIT, OFFER_PAYPAL_DONATION_BIT, ONLY_DEFAULT_PAGE_BIT, option_name, POTENTIAL_HAZARD_BIT, and project_opts_manager.
Referenced by LoadSubsTable().
|
slot |
Clear the Substitution lists and display.
Definition at line 259 of file projectsubstitute.cpp.
References ui.
|
private |
Find a Substitution Entry in the Substitution List by Name.
| Key | The Key String |
Definition at line 367 of file projectsubstitute.cpp.
References LOG_DEBUG, LogAdd(), MODE_DATABASE, and ui.
Referenced by UpdateItem().
|
private |
Definition at line 197 of file projectsubstitute.cpp.
Referenced by LoadSubsTable().
|
private |
Definition at line 213 of file projectsubstitute.cpp.
References system_colour, and ui.
Referenced by LoadSubsTable().
| void ProjectSubstitute::LoadFileSubsList | ( | PROJECT_INFORMATION * | Project | ) |
Load the Substitution table from the Project Information.
| Project | Inforamtion about the Project |
Definition at line 643 of file projectsubstitute.cpp.
References ASSOCIATED_GROUP_INFO::AssociationLogo, ASSOCIATED_GROUP_INFO::AssociationURL, PROJECT_DESCRIPTION::BriefDescription, PROJECT_INFORMATION::CompFamilyInfo, COMP_FAMILY_INFO::CompilerDirectory, COMP_FAMILY_INFO::CompilerToolImage, CPP_CHECK_FILE, CREATE_SOURCE_ARCHIVE, PROGRAM_INFORMATION::CurrentUser, VERSION_INFO::CurrentVersionString, PROJECT_DESCRIPTION::DepartureURL, PROJECT_INFORMATION::Developer, DEV_FAMILY_INFO::DevFamilyImage, PROJECT_INFORMATION::DevFamilyInfo, PROJECT_INFORMATION::DocLicence, DOXY_LOG_FILE, DOXY_OPTIONS::DoxyExtraStylesheetFilename, DOXY_OPTIONS::DoxyHtmlFooterFilename, DOXY_OPTIONS::DoxyHtmlHeaderFilename, DOXY_OPTIONS::DoxyLogoFilename, PROJECT_INFORMATION::DoxyOptions, DEVELOPER_INFO::Email, PROJECT_DESCRIPTION::ExeDirectory, PROJECT_DESCRIPTION::ExeName, PROJECT_DESCRIPTION::FullDescription, ASSOCIATED_GROUP_INFO::FullName, COMP_FAMILY_INFO::FullName, DEV_FAMILY_INFO::FullName, LANG_FAMILY_INFO::FullName, LICENCE_INFO::FullName, TARGET_FAMILY_INFO::FullName, VERSION_INFO::FullVersionString, DEVELOPER_INFO::Handle, PROJECT_INFORMATION::HardwareLicence, PROJECT_INFORMATION::InAssocInfo, DEVELOPER_INFO::Info, LANG_FAMILY_INFO::LangFamilyImage, LANG_FAMILY_INFO::LangFamilyIndex, PROJECT_INFORMATION::LangFamilyInfo, LICENCE_INFO::LicenceImage, LICENCE_INFO::LicenceURL, LoadUserSubstitutes(), PROGRAM_INFORMATION::LocalDevelopmentDirectory, DEVELOPER_INFO::Name, DEVELOPER_INFO::Phone, PROGRAM_INFORMATION::PrimaryWebsiteDirectory, PROJECT_INFORMATION::ProgramInformation, project_opts_manager, PROJECT_INFORMATION::ProjectDesc, PROJECT_DESCRIPTION::ProjectDirectory, PROJECT_DESCRIPTION::ProjectIcon, PROJECT_DESCRIPTION::ProjectIdent, PROJECT_DESCRIPTION::ProjectIndex, PROJECT_DESCRIPTION::ProjectName, PROJECT_DESCRIPTION::ProjectOptions, PROGRAM_INFORMATION::PublisherContactEmail, PROGRAM_INFORMATION::PublisherName, PROGRAM_INFORMATION::PublisherWebsite, PROGRAM_INFORMATION::SharedTemplateDirectory, ASSOCIATED_GROUP_INFO::ShortName, COMP_FAMILY_INFO::ShortName, DEV_FAMILY_INFO::ShortName, LANG_FAMILY_INFO::ShortName, LICENCE_INFO::ShortName, TARGET_FAMILY_INFO::ShortName, PROGRAM_INFORMATION::SiteLogo, PROGRAM_INFORMATION::SiteName, PROGRAM_INFORMATION::SiteURL, PROJECT_INFORMATION::SoftwareLicence, STATUS_INFO::StatusDateTimeString, STATUS_INFO::StatusDescription, STATUS_INFO::StatusImage, PROJECT_INFORMATION::StatusInfo, STATUS_INFO::StatusName, PROJECT_INFORMATION::SubsMap, TARGET_FAMILY_INFO::TargetFamilyImage, PROJECT_INFORMATION::TargetFamilyInfo, ui, VERSION_INFO::VersionDateString, PROJECT_INFORMATION::VersionInfo, and VERSION_INFO::VersionString.
|
slot |
Load the Substitution Table.
Definition at line 208 of file projectsubstitute.cpp.
References LoadSubsTable().
|
slot |
Definition at line 85 of file projectsubstitute.cpp.
References AddKeyValue(), ASSOCIATED_GROUP, BRIEF_DESCRIPTION, DATETIME_DISPLAY_FORMAT, DecodeProjectOptions(), DEPARTURE_URL, DEV_FAMILY, DOCUMENT_LICENCE, DOXY_EXTRA_STYLESHEET, DOXY_HTML_FOOTER, DOXY_HTML_HEADER, DOXY_LOGO, EXECUTABLE_DIR, FULL_DESCRIPTION, GetProjectEmail(), HARDWARE_LICENCE, LANGUAGE_FAMILY, LoadBasePresets(), LOG_DEBUG, LogAdd(), MAJOR_VERSION, MINOR_VERSION, MODE_DATABASE, PRIMARY_TOOL, PROJECT_CONTACT, PROJECT_DIRECTORY, PROJECT_EMAIL, PROJECT_HISTORY, PROJECT_ICON, PROJECT_IDENT, project_info, PROJECT_NAME, PROJECT_STATUS, REVISION, SITE_URL, SOFTWARE_LICENCE, STATUS_DATE, sys_item_name, SYSTEM_FAMILY, and ui.
Referenced by LoadPresets(), ReadProjectId(), ReloadSubstituteTable(), and SaveLocalSubstitutes().
|
private |
Definition at line 804 of file projectsubstitute.cpp.
References leadin_string, leadout_string, PROJECT_INFORMATION::ProjectDesc, PROJECT_DESCRIPTION::ProjectIndex, and PROJECT_INFORMATION::SubsMap.
Referenced by LoadFileSubsList().
|
private |
Add a Log Entry.
| Severity | Severity of the Logged Event |
| Mode | Part of the Program being Logged |
| Message | Description of the Log Event |
Definition at line 70 of file projectsubstitute.cpp.
References REMOTE_LOG_ENTRY::Message, REMOTE_LOG_ENTRY::Mode, SendLogEntry(), and REMOTE_LOG_ENTRY::Severity.
Referenced by FindItemByKey(), LoadSubsTable(), SaveKeyValuePair(), SaveLocalSubstitutes(), and UpdateItem().
|
slot |
Update the Major Version in the Substitute Table.
| MajorVersion | Major Version as Integer |
Definition at line 573 of file projectsubstitute.cpp.
References MAJOR_VERSION, sys_item_name, and UpdateItem().
|
slot |
Update the Minor Version in the Substitute Table.
| MinorVersion | Minor Version as Integer |
Definition at line 578 of file projectsubstitute.cpp.
References MINOR_VERSION, sys_item_name, and UpdateItem().
|
slot |
Load the Substitution Table for th Project.
| ProjectInfo | Pointer to the Project Information |
Definition at line 79 of file projectsubstitute.cpp.
References LoadSubsTable(), and project_info.
|
slot |
Update the Revision in the Substitute Table.
| Revision | Revision as Integer |
Definition at line 583 of file projectsubstitute.cpp.
References REVISION, sys_item_name, and UpdateItem().
|
privateslot |
Reload the Substituition Table & Display.
Definition at line 274 of file projectsubstitute.cpp.
References LoadSubsTable(), and project_info.
Referenced by ProjectSubstitute().
|
private |
Definition at line 536 of file projectsubstitute.cpp.
References LOG_DEBUG, LOG_ERROR, LogAdd(), and MODE_DATABASE.
Referenced by SaveLocalSubstitutes().
|
slot |
Save the Local Substitutes to the Database.
Definition at line 482 of file projectsubstitute.cpp.
References LoadSubsTable(), LOG_DEBUG, LOG_ERROR, LogAdd(), MODE_DATABASE, project_info, SaveKeyValuePair(), and ui.
Referenced by ProjectSubstitute().
|
signal |
|
privateslot |
Definition at line 553 of file projectsubstitute.cpp.
|
privateslot |
Definition at line 433 of file projectsubstitute.cpp.
References ASSISTANCE_WELCOME, ASSISTANCE_WELCOME_BIT, CAVEAT_LECTOR, CAVEAT_LECTOR_BIT, CONTROL_DOC_ACCESS, CONTROL_DOC_ACCESS_BIT, DONATIONS_WELCOME, DONATIONS_WELCOME_BIT, ENABLE_CUSTOM_DOXYGEN, ENABLE_CUSTOM_DOXYGEN_BIT, EXCLUDE_PROJECT_LIST, EXCLUDE_PROJECT_LIST_BIT, GROUP_ACCESS_ONLY_BIT, OFFER_PAYPAL_DONATION, OFFER_PAYPAL_DONATION_BIT, ONLY_DEFAULT_PAGE, ONLY_DEFAULT_PAGE_BIT, option_name, POTENTIAL_HAZARD, POTENTIAL_HAZARD_BIT, and UpdateItem().
|
privateslot |
Definition at line 264 of file projectsubstitute.cpp.
References ui.
|
slot |
Update Exit URL in Substitute Table.
| ExitURL | URL of exit destination |
Definition at line 593 of file projectsubstitute.cpp.
References DEPARTURE_URL, sys_item_name, and UpdateItem().
|
slot |
Update the Dev Families Information in the Substitute Table.
| Structure | holding the Dev Families Information |
Definition at line 419 of file projectsubstitute.cpp.
References DEVELOPMENT_FAMILY::CompilerFamilyString, DEVELOPMENT_FAMILY::DevelopmentFamilyString, DEVELOPMENT_FAMILY::LanguageFamilyString, DEVELOPMENT_FAMILY::TargetFamilyString, and UpdateItem().
|
slot |
Update the Documentation Licence Information in the Substitute Table.
| LicenceName | String holding the Documentation Licence Name |
Definition at line 568 of file projectsubstitute.cpp.
References DOCUMENT_LICENCE, sys_item_name, and UpdateItem().
|
slot |
Update Doxygen's Footer Filename in Substitute Table.
| DoxyFooter | Filename of the Doxygen's Header |
Definition at line 628 of file projectsubstitute.cpp.
References DOXY_HTML_FOOTER, sys_item_name, and UpdateItem().
|
slot |
Update Doxygen's Header Filename in Substitute Table.
| DoxyHeader | Filename of the Doxygen's Header |
Definition at line 623 of file projectsubstitute.cpp.
References DOXY_HTML_HEADER, sys_item_name, and UpdateItem().
|
slot |
Update Doxygen's Project Logo Filename in Substitute Table.
| DoxyProjectLogo | Filename of the Doxygen's Project Logo |
Definition at line 618 of file projectsubstitute.cpp.
References DOXY_LOGO, sys_item_name, and UpdateItem().
|
slot |
Update Doxygen's Stylesheet Filename in Substitute Table.
| DoxyStylesheet | Filename of the Doxygen's Stylesheet |
Definition at line 633 of file projectsubstitute.cpp.
References DOXY_EXTRA_STYLESHEET, sys_item_name, and UpdateItem().
|
slot |
Update the Full Description in the Substitute Table.
| FullDescription | String holding the Full Description |
Definition at line 407 of file projectsubstitute.cpp.
References UpdateItem().
|
slot |
Update the Hardware Licence Information in the Substitute Table.
| LicenceName | String holding the Hardware Licence Name |
Definition at line 563 of file projectsubstitute.cpp.
References HARDWARE_LICENCE, sys_item_name, and UpdateItem().
|
slot |
Definition at line 638 of file projectsubstitute.cpp.
References ASSOCIATED_GROUP, sys_item_name, and UpdateItem().
|
private |
Update the Value of an Entry in the Substitution List.
| Key | The Value of the Key in the List |
| Value | The New Value to be associated with the Key |
Definition at line 385 of file projectsubstitute.cpp.
References FindItemByKey(), LOG_DEBUG, LogAdd(), MODE_GENERAL, and ui.
Referenced by ReadMajorVersion(), ReadMinorVersion(), ReadRevision(), SetOptionState(), UpdateDepartureURL(), UpdateDevFamily(), UpdateDocumentationLicence(), UpdateDoxyFooter(), UpdateDoxyHeader(), UpdateDoxyProjectLogo(), UpdateDoxyStylesheet(), UpdateFullDescription(), UpdateHardwareLicence(), UpdateInAssocation(), UpdateProjectBrief(), UpdateProjectContact(), UpdateProjectDateTime(), UpdateProjectIcon(), UpdateProjectName(), UpdateSoftwareLicence(), UpdateStatus(), and UpdateVersion().
|
slot |
Update Project Brief in Substitute Table.
| Name | URL of exit destination |
Definition at line 603 of file projectsubstitute.cpp.
References BRIEF_DESCRIPTION, sys_item_name, and UpdateItem().
|
slot |
Definition at line 608 of file projectsubstitute.cpp.
References PROJECT_CONTACT, sys_item_name, and UpdateItem().
|
slot |
Update Project's DateTime in Substitute Table.
| ProjectDateTime | Project's Status DateTime |
Definition at line 613 of file projectsubstitute.cpp.
References STATUS_DATE, sys_item_name, and UpdateItem().
|
slot |
Definition at line 598 of file projectsubstitute.cpp.
References PROJECT_ICON, sys_item_name, and UpdateItem().
|
slot |
Update Project Name in Substitute Table.
| Name | Name of the Project |
Definition at line 588 of file projectsubstitute.cpp.
References PROJECT_NAME, sys_item_name, and UpdateItem().
|
slot |
Update the Software Licence Information in the Substitute Table.
| LicenceName | String holding the Software Licence Name |
Definition at line 558 of file projectsubstitute.cpp.
References SOFTWARE_LICENCE, sys_item_name, and UpdateItem().
|
slot |
Update the Deve Families Information in the Substitute Table.
| Structure | holding the Status Information |
Definition at line 427 of file projectsubstitute.cpp.
References STATUS_INFO::StatusDateTimeString, STATUS_INFO::StatusName, and UpdateItem().
|
slot |
Update the Version Information in the Substitute Table.
| Version | Structure holding the Version Information |
Definition at line 412 of file projectsubstitute.cpp.
References VERSION_INFO::MajorVersion, VERSION_INFO::MinorVersion, VERSION_INFO::Revision, UpdateItem(), and REMOTE_VERSION_ENTRY::VersionInfo.
|
private |
Lead in Characters for substitution blocks.
Definition at line 303 of file projectsubstitute.h.
Referenced by LoadUserSubstitutes(), and ProjectSubstitute().
|
private |
Lead out Characters for substitution blocks.
Definition at line 309 of file projectsubstitute.h.
Referenced by LoadUserSubstitutes(), and ProjectSubstitute().
|
private |
List of Option Names for Subtitution process.
Definition at line 327 of file projectsubstitute.h.
Referenced by DecodeProjectOptions(), ProjectSubstitute(), and SetOptionState().
|
private |
Structure to hold Project Information.
Definition at line 297 of file projectsubstitute.h.
Referenced by LoadSubsTable(), ReadProjectId(), ReloadSubstituteTable(), and SaveLocalSubstitutes().
|
private |
Pointer the Project Options Manager Class.
Definition at line 321 of file projectsubstitute.h.
Referenced by DecodeProjectOptions(), LoadFileSubsList(), and ProjectSubstitute().
|
private |
List of System Names for Subtitution process.
Definition at line 333 of file projectsubstitute.h.
Referenced by LoadSubsTable(), ProjectSubstitute(), ReadMajorVersion(), ReadMinorVersion(), ReadRevision(), UpdateDepartureURL(), UpdateDocumentationLicence(), UpdateDoxyFooter(), UpdateDoxyHeader(), UpdateDoxyProjectLogo(), UpdateDoxyStylesheet(), UpdateHardwareLicence(), UpdateInAssocation(), UpdateProjectBrief(), UpdateProjectContact(), UpdateProjectDateTime(), UpdateProjectIcon(), UpdateProjectName(), and UpdateSoftwareLicence().
|
private |
table Background Colour
Definition at line 315 of file projectsubstitute.h.
Referenced by AddKeyValue(), LoadBasePresets(), and ProjectSubstitute().
|
private |
Pointer to the Main Window.
Definition at line 291 of file projectsubstitute.h.
Referenced by AddKeyValue(), ClearSubstituteEntry(), DoClear(), FindItemByKey(), LoadBasePresets(), LoadFileSubsList(), LoadSubsTable(), ProjectSubstitute(), SaveLocalSubstitutes(), SetSubstituteState(), and UpdateItem().