1 #ifndef GUI_FRAMEWORK___TASK_VIEW__HPP
2 #define GUI_FRAMEWORK___TASK_VIEW__HPP
123 DECLARE_EVENT_TABLE()
139 virtual void CreateControls();
142 virtual void Create(wxWindow* parent,
144 const wxPoint& pos = wxDefaultPosition,
145 const wxSize&
size = wxDefaultSize);
148 virtual void DestroyModel();
149 virtual void UpdateTable();
158 virtual void AppendMenuItems( wxMenu& aMenu );
162 void OnContextMenu(wxContextMenuEvent& event);
163 void OnItemActivated(wxListEvent& event);
164 void OnShowDetailsDialog(
long vis_index);
166 void OnCancel(wxCommandEvent& event);
167 void OnDetails(wxCommandEvent& event);
169 void OnUpdateCancel(wxUpdateUIEvent& event);
170 void OnUpdateDetails(wxUpdateUIEvent& event);
172 void OnEventTimer(wxTimerEvent& event);
176 void x_GetSelectedTasks(vector<TTaskRef>& tasks);
177 void x_SetSelectedTasks(vector<TTaskRef>& tasks);
208 virtual void SetWorkbench(
IWorkbench* workbench);
209 virtual void CreateViewWindow(wxWindow* parent);
210 virtual void DestroyViewWindow();
215 virtual wxWindow* GetWindow();
218 virtual string GetIconAlias()
const;
221 virtual const wxMenu* GetMenu();
222 virtual void UpdateMenu(wxMenu& root_menu);
223 virtual CFingerprint GetFingerprint()
const;
254 virtual string GetExtensionIdentifier()
const;
255 virtual string GetExtensionLabel()
const;
262 virtual IView* CreateInstance()
const;
263 virtual IView* CreateInstanceByFingerprint(
const TFingerprint& fingerprint)
const;
CAppTaskService - Application Task Service.
CEvent - generic event implementation TODO TODO - Attachments.
class CRgbaColor provides a simple abstraction for managing colors.
CTaskTablePanel - panel that owns a Table and a Table Model, this is the window for CTaskView.
CTaskViewModel - table model for Task View.
CTaskView - IView, that uses CTaskTablePanel as its window.
CViewTypeDescriptor - holds description of a view type.
CwxAbstractTableModel - simple TableModel implementation.
CwxTableListCtrl - generic wxListCtrl-based Table Control.
IExtension IExtension interface represents an abstract pluggable component.
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
virtual void SaveSettings() const =0
virtual void LoadSettings()=0
virtual void SetRegistryPath(const string &path)=0
IViewFactory - view factory for use with IViewManagerService.
IView - represents a standard visual part of Workbench UI.
CFingerprint identifies an instance of IWMClient and is used for labeling layout positions.
IWClient - abstract Window Manager client.
ELabel
Different flavors of label types for different GUI aspects.
IWorkbench is the central interface in the application framework.
GUI command routing and handling framework.
Include a standard set of the NCBI C++ Toolkit most basic headers.
CRgbaColor & GetColor(CSeqFeatData::ESubtype subtype)
CAppTaskService * m_TaskService
virtual wxString GetColumnName(int col) const
Returns a default name for the column using spreadsheet conventions: A, B, C, ...
virtual wxString GetColumnType(int col) const
Tries to extract actual type from row 0 value if it exists.
CAppTaskService * m_TaskService
CTaskTablePanel * m_Panel
virtual wxEvtHandler * GetCommandHandler()
returns a pointer to the command handler (for menu commands and updates)
virtual int GetNumRows() const
Returns the number of rows in the model.
void ShowTasksByState(IAppTask::ETaskState state, bool show, bool up=true)
CwxTableListCtrl * m_Table
CAppTaskService::TRecRefVec TRecRefVec
virtual wxVariant GetValueAt(int row, int col) const
void x_AddTasks(TRecRefVec &tasks)
CAppTaskService * m_TaskService
vector< TRecordRef > m_Records
vector< TRecordRef > TRecRefVec
ETaskState
List of task states defining the task management FSM.
CAppTaskService::TTaskRef TTaskRef
bool IsStateShown(IAppTask::ETaskState state)
static CViewTypeDescriptor m_TypeDescr
CTaskView.
TTaskRef GetTask(int row)
CTaskViewModel(CAppTaskService *task_srv)
CTaskView.
vector< TTaskRef > TTaskRefVec
virtual int GetNumColumns() const
Returns the number of columns in the model.
CAppTaskService::TTaskRef TTaskRef
CAppTaskService::TRecordRef TRecordRef
@ eMaxCols
this must be the last!
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIFRAMEWORK_EXPORT
Defines to provide correct exporting from DLLs in Windows.
const struct ncbi::grid::netcache::search::fields::SIZE size
Defines: CTimeFormat - storage class for time format.
#define row(bind, expected)