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