|
Project Documentation Manager BRIGADOON-0002
Project Documentation Manager
|
#include <projectstatus.h>
Public Slots | |
| void | TriggerSendStatus (void) |
| Respond to Request for Status by Sending it. | |
| void | DoClear (void) |
| Reset the Uer Interface Status Display. | |
| void | ReadProjectInfo (PROJECT_INFORMATION *Info) |
| Read teh Status from the Project Info to the User Interface. | |
Signals | |
| void | SendLogEntry (REMOTE_LOG_ENTRY LogEntry) |
| Send Log Entry to the Log \LogEntry Structure holding Log information. | |
| void | SendStatus (int StatusIndex) |
| Emit the current Status Database Index. | |
| void | SendStatusInfo (STATUS_INFO StatusInfo) |
| Emit the current Status Information Structure. | |
Public Member Functions | |
| ProjectStatus (Ui::MainWindow *UI_Window) | |
| ProjectStatus Constructor. | |
| void | LoadStatus (void) |
| Load Status definitions from the Database. | |
Private Slots | |
| void | StatusChanged (int StatusIndex) |
| When Status Changes Update the Next Status Level Button. | |
| void | DoIncrement (void) |
| Increment the Project's Status to the Next Level. | |
| void | SetStatusEditing (int EditStatus) |
| Turn Custom Status Setting On or Off. | |
| void | DoStatusDateNow (void) |
| Set the Status Date as the current DateTime. | |
Private Member Functions | |
| void | LogAdd (LOGGING_SEVERITY Severity, LOGGING_MODE Mode, QString Message) |
| Add a Log Entry. | |
| void | SetNextStatusPrompt (int NewStatus) |
| Set the Next Available Status Level in the Increment Button. | |
| void | PostStatus (void) |
| Get Current Status from User Inface, Save to Database & Forward. | |
Private Attributes | |
| Ui::MainWindow * | ui |
| Pointer to the Main Window. | |
| QString | project_ident_prefix |
| The text prefix of the Project Identifier. | |
| uint | project_suffix_size |
| Number of digits in the Project Idenifier. | |
| int | project_index |
| The Database Table index of the Project. | |
Definition at line 15 of file projectstatus.h.
| ProjectStatus::ProjectStatus | ( | Ui::MainWindow * | UI_Window | ) |
ProjectStatus Constructor.
| UI_Window | Pointer to the Main Window |
Definition at line 6 of file projectstatus.cpp.
References DoIncrement(), DoStatusDateNow(), SetStatusEditing(), StatusChanged(), and ui.
|
slot |
Reset the Uer Interface Status Display.
Definition at line 110 of file projectstatus.cpp.
References LoadStatus(), and ui.
|
privateslot |
Increment the Project's Status to the Next Level.
Definition at line 78 of file projectstatus.cpp.
References SetNextStatusPrompt(), and ui.
Referenced by ProjectStatus().
|
privateslot |
Set the Status Date as the current DateTime.
Definition at line 105 of file projectstatus.cpp.
References ui.
Referenced by ProjectStatus().
| void ProjectStatus::LoadStatus | ( | void | ) |
Load Status definitions from the Database.
Definition at line 16 of file projectstatus.cpp.
References LOG_DEBUG, LOG_ERROR, LogAdd(), MODE_DATABASE, and ui.
Referenced by DoClear().
|
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 42 of file projectstatus.cpp.
References REMOTE_LOG_ENTRY::Message, REMOTE_LOG_ENTRY::Mode, SendLogEntry(), and REMOTE_LOG_ENTRY::Severity.
Referenced by LoadStatus(), PostStatus(), StatusChanged(), and TriggerSendStatus().
|
private |
Get Current Status from User Inface, Save to Database & Forward.
Definition at line 116 of file projectstatus.cpp.
References DATETIME_DATABASE_FORMAT, LOG_DEBUG, LOG_ERROR, LogAdd(), MODE_DATABASE, project_index, SendStatusInfo(), STATUS_INFO::StatusDateTime, STATUS_INFO::StatusDateTimeString, STATUS_INFO::StatusIndex, STATUS_INFO::StatusName, and ui.
Referenced by SetNextStatusPrompt().
|
slot |
Read teh Status from the Project Info to the User Interface.
| Info | Pointer to ProjectInformation |
Definition at line 143 of file projectstatus.cpp.
References project_index, PROJECT_INFORMATION::ProjectDesc, PROJECT_DESCRIPTION::ProjectIndex, STATUS_INFO::StatusDateTime, STATUS_INFO::StatusIndex, PROJECT_INFORMATION::StatusInfo, and ui.
|
signal |
Send Log Entry to the Log \LogEntry Structure holding Log information.
Referenced by LogAdd().
|
signal |
Emit the current Status Database Index.
| StatusIndex | Database Index of current Status Level |
Referenced by TriggerSendStatus().
|
signal |
Emit the current Status Information Structure.
| StatusInfo | Status Inforamtion Structure |
Referenced by PostStatus().
|
private |
Set the Next Available Status Level in the Increment Button.
| The | just set Status Level |
Definition at line 57 of file projectstatus.cpp.
References PostStatus(), and ui.
Referenced by DoIncrement(), and StatusChanged().
|
privateslot |
Turn Custom Status Setting On or Off.
| EditStatus | On (true) or Off (false) |
Definition at line 90 of file projectstatus.cpp.
References ui.
Referenced by ProjectStatus().
|
privateslot |
When Status Changes Update the Next Status Level Button.
| StatusIndex | The New Status Level |
Definition at line 51 of file projectstatus.cpp.
References LOG_DEBUG, LogAdd(), MODE_OPERATOR, SetNextStatusPrompt(), and ui.
Referenced by ProjectStatus().
|
slot |
Respond to Request for Status by Sending it.
Definition at line 99 of file projectstatus.cpp.
References LOG_DEBUG, LogAdd(), MODE_OPERATOR, SendStatus(), and ui.
|
private |
The text prefix of the Project Identifier.
Definition at line 66 of file projectstatus.h.
|
private |
The Database Table index of the Project.
Definition at line 78 of file projectstatus.h.
Referenced by PostStatus(), and ReadProjectInfo().
|
private |
Number of digits in the Project Idenifier.
Definition at line 72 of file projectstatus.h.
|
private |
Pointer to the Main Window.
Definition at line 60 of file projectstatus.h.
Referenced by DoClear(), DoIncrement(), DoStatusDateNow(), LoadStatus(), PostStatus(), ProjectStatus(), ReadProjectInfo(), SetNextStatusPrompt(), SetStatusEditing(), StatusChanged(), and TriggerSendStatus().