|
version 1.7, 2007/02/06 17:13:00
|
version 1.10, 2007/02/07 16:15:20
|
|
|
|
| | |
| #include "CustomGroupbox.h" | #include "CustomGroupbox.h" |
| #include "CustomLabel.h" | #include "CustomLabel.h" |
| |
#include "CustomPane.h" |
| | |
| class CSyncForm : public CFormView | class CSyncForm : public CFormView |
| { | { |
|
|
|
| CAnimatedIcon iconTasks; | CAnimatedIcon iconTasks; |
| CAnimatedIcon iconNotes; | CAnimatedIcon iconNotes; |
| CButton groupSources; | CButton groupSources; |
| CCustomLabel linkCalendar; |
|
| CCustomLabel linkContacts; |
|
| CCustomLabel linkNotes; |
|
| CCustomLabel linkTasks; |
|
| CBitmap bmpBackground; | CBitmap bmpBackground; |
| CBrush brushHollow; | CBrush brushHollow; |
| | |
| CBrush brushRed; |
// right hand status icons |
| // |
CAnimatedIcon iconStatusContacts; |
| |
CAnimatedIcon iconStatusCalendar; |
| |
CAnimatedIcon iconStatusTasks; |
| |
CAnimatedIcon iconStatusNotes; |
| |
CAnimatedIcon iconStatusSync; |
| |
|
| |
// panes |
| |
CCustomPane paneSync; |
| |
CCustomPane paneContacts; |
| |
CCustomPane paneCalendar; |
| |
CCustomPane paneTasks; |
| |
CCustomPane paneNotes; |
| |
|
| |
// sync source states {SYNCSOURCE_STATE_OK, SYNCSOURCE_STATE_NOT_SYNCED, SYNCSOURCE_STATE_CANCELED} |
| |
// defined in winmaincpp.h |
| int syncSourceContactState, syncSourceCalendarState; | int syncSourceContactState, syncSourceCalendarState; |
| int syncSourceTaskState, syncSourceNoteState; | int syncSourceTaskState, syncSourceNoteState; |
| | |
| |
|
| |
/** |
| |
* refresh UI info about a source |
| |
* @param sourceId : the source type id {SYNCSOURCE_CONTACTS,..}, defined in ClientUtil.h |
| |
*/ |
| |
void refreshSource(int sourceId); |
| |
|
| |
// refresh UI info about all sources, calls refreshSource for every sync source |
| void refreshSources(); | void refreshSources(); |
| |
|
| |
/** |
| |
* repaints sync controls from a pane associated to a source |
| |
* @param paneType : the pane type id {PANE_TYPE_CONTACTS, ..}, defined in CustomPane.h |
| |
*/ |
| |
void repaintPaneControls(int paneType); |
| |
|
| |
// shows/hides the sync controls |
| void showSyncControls(BOOL show); | void showSyncControls(BOOL show); |
| void resetSyncControls(); |
|
| |
// change UI status text for a source |
| void changeContactsStatus(CString status); | void changeContactsStatus(CString status); |
| void changeCalendarStatus(CString status); | void changeCalendarStatus(CString status); |
| void changeTasksStatus(CString status); | void changeTasksStatus(CString status); |
|
|
|
| afx_msg void OnBnClickedMainButSync(); | afx_msg void OnBnClickedMainButSync(); |
| afx_msg void OnNcPaint( ); | afx_msg void OnNcPaint( ); |
| afx_msg HBRUSH OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor); | afx_msg HBRUSH OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor); |
| afx_msg void OnStnClickedMainLinkCalendar(); |
|
| afx_msg void OnStnClickedMainLinkContacts(); |
|
| afx_msg void OnStnClickedMainLinkNotes(); |
|
| afx_msg void OnStnClickedMainLinkTasks(); |
|
| afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message ); | afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message ); |
| afx_msg BOOL OnEraseBkgnd(CDC* pDC); | afx_msg BOOL OnEraseBkgnd(CDC* pDC); |
| afx_msg void OnPaint(); |
|
| afx_msg void OnStnClickedMainButStart(); |
// when main sync pane is clicked |
| public: |
afx_msg void OnStnClickedMainBkSync(); |
| CAnimatedIcon iconStatusContacts; |
|
| public: |
// when sync source panes are clicked |
| CAnimatedIcon iconStatusCalendar; |
afx_msg void OnStnClickedMainBkContacts(); |
| public: |
afx_msg void OnStnClickedMainBkCalendar(); |
| CAnimatedIcon iconStatusTasks; |
afx_msg void OnStnClickedMainBkTasks(); |
| public: |
afx_msg void OnStnClickedMainBkNotes(); |
| CAnimatedIcon iconStatusNotes; |
|
| public: |
|
| CAnimatedIcon iconStatusSync; |
|
| public: |
|
| CStatic paneSync; |
|
| }; | }; |
| | |
| ///////////////////////////////////////////////////////////////////////////// | ///////////////////////////////////////////////////////////////////////////// |