GPC  v1.0.0-2516
Gorman Print Control
SummaryComponent Class Reference
Inheritance diagram for SummaryComponent:
Collaboration diagram for SummaryComponent:

Public Member Functions

virtual void resized (void)
 Inherited from Component. Used to re-layout the widgets. More...
 
virtual void buttonClicked (Button *button)
 Inherited from ButtonListener. More...
 
virtual int getNumRows (void)
 Inherited from TableListBoxModel. More...
 
virtual void paintCell (Graphics &g, int rowNumber, int columnId, int width, int height, bool rowIsSelected)
 Inherited from TableListBoxModel. More...
 
virtual void paintRowBackground (Graphics &g, int rowNumber, int width, int height, bool rowIsSelected)
 Inherited from TableListBoxModel. More...
 
virtual void sortOrderChanged (int newSortColumnId, bool isForwards)
 Inherited from TableListBoxModel. More...
 
virtual void selectedRowsChanged (int lastRowSelected)
 Inherited from TableListBoxModel. More...
 
virtual void cellDoubleClicked (int rowNumber, int columnId, const MouseEvent &mouseEvent)
 Inherited from TableListBoxModel. More...
 
virtual void returnKeyPressed (int rowNumber)
 Inherited from TableListBoxModel. More...
 
void openSession (const int rowNumber)
 Called from cellDoubleClicked() and returnKeyPressed() to open a specific session. More...
 
virtual void timerCallback (void)
 Inherited from Timer. Used to filter the records and update the status. More...
 
virtual void delete_hidden_session_windows (void)
 
void apply_log_filtering (const bool table_was_sorted=false)
 
void rebuild_index (void)
 Re-populate the uuid_index vector. More...
 
void remember_selected_rows (void)
 
void restore_selected_rows (void)
 

Public Attributes

VStr uuid_index
 Vector of UUIDs which determines how the rows are shown in the table. More...
 
SStr uuids_of_selected_rows
 
VStr filters
 Vector of strings to store the most recent text filters. More...
 
Label summary_label
 
TextEditor search_bar
 
TextButton import_button
 
TextButton clone_button
 
TextButton refresh_button
 
TableListBox table
 
CriticalSection critial_section_for_all_session_windows
 Stores all records from the database. This vector is not sorted nor filtered beyond what the database view provides by default. More...
 
MUuidSessionWnd all_session_windows
 std::map of all editor window pointers. More...
 

Member Function Documentation

◆ resized()

void SummaryComponent::resized ( void  )
virtual

Inherited from Component. Used to re-layout the widgets.

◆ buttonClicked()

void SummaryComponent::buttonClicked ( Button *  button)
virtual

◆ getNumRows()

int SummaryComponent::getNumRows ( void  )
virtual

Inherited from TableListBoxModel.

◆ paintCell()

void SummaryComponent::paintCell ( Graphics &  g,
int  rowNumber,
int  columnId,
int  width,
int  height,
bool  rowIsSelected 
)
virtual

Inherited from TableListBoxModel.

◆ paintRowBackground()

void SummaryComponent::paintRowBackground ( Graphics &  g,
int  rowNumber,
int  width,
int  height,
bool  rowIsSelected 
)
virtual

Inherited from TableListBoxModel.

◆ sortOrderChanged()

void SummaryComponent::sortOrderChanged ( int  newSortColumnId,
bool  isForwards 
)
virtual

◆ selectedRowsChanged()

void SummaryComponent::selectedRowsChanged ( int  lastRowSelected)
virtual

Inherited from TableListBoxModel.

◆ cellDoubleClicked()

void SummaryComponent::cellDoubleClicked ( int  rowNumber,
int  columnId,
const MouseEvent &  mouseEvent 
)
virtual

Inherited from TableListBoxModel.

◆ returnKeyPressed()

void SummaryComponent::returnKeyPressed ( int  rowNumber)
virtual

Inherited from TableListBoxModel.

◆ openSession()

void SummaryComponent::openSession ( const int  rowNumber)

Called from cellDoubleClicked() and returnKeyPressed() to open a specific session.

◆ timerCallback()

void SummaryComponent::timerCallback ( void  )
virtual

Inherited from Timer. Used to filter the records and update the status.

◆ apply_log_filtering()

void SummaryComponent::apply_log_filtering ( const bool  table_was_sorted = false)
Todo:
apply filter here

◆ rebuild_index()

void SummaryComponent::rebuild_index ( void  )

Re-populate the uuid_index vector.

Member Data Documentation

◆ uuid_index

VStr SummaryComponent::uuid_index

Vector of UUIDs which determines how the rows are shown in the table.

First UUID corresponds to the first row, etc.

◆ filters

VStr SummaryComponent::filters

Vector of strings to store the most recent text filters.

◆ critial_section_for_all_session_windows

CriticalSection SummaryComponent::critial_section_for_all_session_windows

Stores all records from the database. This vector is not sorted nor filtered beyond what the database view provides by default.

See also
table_records. Stores only the records shown to the user. This vector has been sorted and filtered.
all_records Lock used when managing editor windows. Editors are stored in a container which must not be modified by multiple threads at once. This lock ensures that things stay sane.

◆ all_session_windows

MUuidSessionWnd SummaryComponent::all_session_windows

std::map of all editor window pointers.

Make sure you lock critial_section_for_all_session_windows before using the map.