Running Manager  1.7
API for Running Manager (https://github.com/HWiman-ICONIC/running-manager)
Public Member Functions | Protected Attributes | List of all members
DragGrid Class Reference

Grid which can change order of columns. More...

#include <WeekDay.h>

Inheritance diagram for DragGrid:

Public Member Functions

 DragGrid (wxWindow *parent, wxWindowID id, wxButton *createButton)
 Constructor. More...
 
void OnColumnMoved (wxGridEvent &e)
 Handle a column darg event. More...
 
wxArrayInt GetColumnOrder ()
 Return the current order of the columns. More...
 
void SetColumnOrder (wxArrayInt order)
 Set current order of columns. More...
 
void OnPaint (wxPaintEvent &e)
 Refresh this panel. More...
 

Protected Attributes

bool isColumnOrderChanged
 
wxButton * createButton
 

Detailed Description

Grid which can change order of columns.

USe to change which week days long runs, intervals etc are on.

Constructor & Destructor Documentation

◆ DragGrid()

DragGrid::DragGrid ( wxWindow *  parent,
wxWindowID  id,
wxButton *  createButton 
)

Constructor.

Parameters
parentParent
idWindow ID
createButtonButton for updating according to current drag state

Member Function Documentation

◆ GetColumnOrder()

wxArrayInt DragGrid::GetColumnOrder ( )

Return the current order of the columns.

Returns
current order of the columns

◆ OnColumnMoved()

void DragGrid::OnColumnMoved ( wxGridEvent &  e)

Handle a column darg event.

Parameters
e

◆ OnPaint()

void DragGrid::OnPaint ( wxPaintEvent &  e)

Refresh this panel.

Parameters
eevent

◆ SetColumnOrder()

void DragGrid::SetColumnOrder ( wxArrayInt  order)

Set current order of columns.

Parameters
ordercurrent order of columns

Member Data Documentation

◆ createButton

wxButton* DragGrid::createButton
protected

◆ isColumnOrderChanged

bool DragGrid::isColumnOrderChanged
protected

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