00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023 #include "afxwin.h"
00024 #include "afxcmn.h"
00025 #include "AnimatedIcon.h"
00026
00027 #if !defined(AFX_FORM1_H__FA98B71B_D0B7_11D3_BC39_00C04F602FEE__INCLUDED_)
00028 #define AFX_FORM1_H__FA98B71B_D0B7_11D3_BC39_00C04F602FEE__INCLUDED_
00029
00030 #if _MSC_VER > 1000
00031 #pragma once
00032 #endif // _MSC_VER > 1000
00033
00035
00036
00037 #ifndef __AFXEXT_H__
00038 #include <afxext.h>
00039 #endif
00040
00041 #include "CustomPane.h"
00042
00043
00048 class CSyncForm : public CFormView
00049 {
00050 protected:
00051 CSyncForm();
00052 DECLARE_DYNCREATE(CSyncForm)
00053
00054 public:
00055
00056 enum { IDD = IDD_SYNC_FORM };
00057
00058
00059
00060 public:
00061
00062
00063
00064
00065 protected:
00066 virtual void DoDataExchange(CDataExchange* pDX);
00067 virtual void OnDraw(CDC* pDC);
00068
00069
00070
00071 virtual ~CSyncForm();
00072
00073 #ifdef _DEBUG
00074 virtual void AssertValid() const;
00075 virtual void Dump(CDumpContext& dc) const;
00076 #endif
00077
00078
00079
00080
00081
00082 DECLARE_MESSAGE_MAP()
00083
00084 private:
00085
00086 bool lockedUI;
00087
00088
00089 CString contactsStatusLabel;
00090 CString calendarStatusLabel;
00091 CString tasksStatusLabel;
00092 CString notesStatusLabel;
00093
00094
00095 CString contactsLabel;
00096 CString calendarLabel;
00097 CString tasksLabel;
00098 CString notesLabel;
00099
00100 public:
00101 CFont fontBold;
00102 CFont fontNormal;
00103 CAnimatedIcon butStart;
00104 CAnimatedIcon iconContacts;
00105 CAnimatedIcon iconCalendar;
00106 CAnimatedIcon iconTasks;
00107 CAnimatedIcon iconNotes;
00108 CBrush brushHollow;
00109
00110
00111 CAnimatedIcon iconStatusContacts;
00112 CAnimatedIcon iconStatusCalendar;
00113 CAnimatedIcon iconStatusTasks;
00114 CAnimatedIcon iconStatusNotes;
00115 CAnimatedIcon iconStatusSync;
00116
00117
00118 CCustomPane paneSync;
00119 CCustomPane paneContacts;
00120 CCustomPane paneCalendar;
00121 CCustomPane paneTasks;
00122 CCustomPane paneNotes;
00123
00124
00125
00126 int syncSourceContactState, syncSourceCalendarState;
00127 int syncSourceTaskState, syncSourceNoteState;
00128
00129
00134 void refreshSource(int sourceId);
00135
00136
00137 void refreshSources();
00138
00143 void repaintPaneControls(int paneType);
00144
00145
00146 void showSyncControls(BOOL show);
00147
00148 void lockButtons();
00149 void unlockButtons();
00150
00151
00152 void changeContactsStatus(CString& status);
00153 void changeCalendarStatus(CString& status);
00154 void changeTasksStatus (CString& status);
00155 void changeNotesStatus (CString& status);
00156
00157 afx_msg LRESULT OnInitForm(WPARAM, LPARAM);
00158 afx_msg void OnBnClickedMainButSync();
00159 afx_msg void OnNcPaint( );
00160 afx_msg HBRUSH OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor);
00161 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00162
00163
00164 afx_msg void OnStnClickedMainBkSync();
00165
00166
00167 afx_msg void OnStnClickedMainBkContacts();
00168 afx_msg void OnStnClickedMainBkCalendar();
00169 afx_msg void OnStnClickedMainBkTasks();
00170 afx_msg void OnStnClickedMainBkNotes();
00171
00172 };
00173
00175
00176
00177
00178
00181 #endif // !defined(AFX_FORM1_H__FA98B71B_D0B7_11D3_BC39_00C04F602FEE__INCLUDED_)