1 toccy 1.1 /*
2 * Copyright (C) 2003-2006 Funambol
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
19 #include "afxwin.h"
20 #include "afxcmn.h"
|
21 toccy 1.2 #include "animatedicon.h"
22
|
23 toccy 1.1 #if !defined(AFX_FORM1_H__FA98B71B_D0B7_11D3_BC39_00C04F602FEE__INCLUDED_)
24 #define AFX_FORM1_H__FA98B71B_D0B7_11D3_BC39_00C04F602FEE__INCLUDED_
25
26 #if _MSC_VER > 1000
27 #pragma once
28 #endif // _MSC_VER > 1000
29
30 /////////////////////////////////////////////////////////////////////////////
31 // CSyncForm form view
32
33 #ifndef __AFXEXT_H__
34 #include <afxext.h>
35 #endif
36
|
37 toccy 1.2 #include "CustomGroupbox.h"
38 #include "CustomLabel.h"
39
|
40 toccy 1.1 class CSyncForm : public CFormView
41 {
42 protected:
43 CSyncForm(); // protected constructor used by dynamic creation
44 DECLARE_DYNCREATE(CSyncForm)
45
46 public:
47 //{{AFX_DATA(CSyncForm)
48 enum { IDD = IDD_SYNC_FORM };
49 // NOTE: the ClassWizard will add data members here
50 //}}AFX_DATA
51
52 public:
53
54 // Overrides
55 // ClassWizard generated virtual function overrides
56 //{{AFX_VIRTUAL(CSyncForm)
57 protected:
|
58 rvultursv 1.3 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
59 virtual void OnDraw(CDC* pDC);
60
|
61 toccy 1.1 //}}AFX_VIRTUAL
62
|
63 rvultursv 1.3 virtual ~CSyncForm();
|
64 toccy 1.1
65 #ifdef _DEBUG
|
66 rvultursv 1.3 virtual void AssertValid() const;
67 virtual void Dump(CDumpContext& dc) const;
|
68 toccy 1.1 #endif
69
70 // Generated message map functions
71 //{{AFX_MSG(CSyncForm)
72 // NOTE - the ClassWizard will add and remove member functions here.
73 //}}AFX_MSG
|
74 rvultursv 1.3 DECLARE_MESSAGE_MAP()
|
75 toccy 1.1 public:
|
76 toccy 1.2 CFont fontBold;
77 CBrush brush;
78 CAnimatedIcon butStart;
79 CAnimatedIcon iconContacts;
80 CAnimatedIcon iconCalendar;
81 CAnimatedIcon iconTasks;
82 CAnimatedIcon iconNotes;
83 CCustomGroupbox groupSync;
84 CButton groupSources;
85 CCustomLabel linkCalendar;
86 CCustomLabel linkContacts;
87 CCustomLabel linkNotes;
88 CCustomLabel linkTasks;
89 CBitmap bmpBackground;
90 CBrush brushHollow;
|
91 toccy 1.1
|
92 rvultursv 1.5 //
93 int syncSourceContactState, syncSourceCalendarState;
94 int syncSourceTaskState, syncSourceNoteState;
|
95 toccy 1.1
|
96 toccy 1.2 void refreshSources();
|
97 toccy 1.1 void showSyncControls(BOOL show);
98 void resetSyncControls();
|
99 toccy 1.2 void changeContactsStatus(CString status);
100 void changeCalendarStatus(CString status);
101 void changeTasksStatus(CString status);
102 void changeNotesStatus(CString status);
103
|
104 toccy 1.1 afx_msg LRESULT OnInitForm(WPARAM, LPARAM);
105 afx_msg void OnBnClickedMainButSync();
106 afx_msg void OnNcPaint( );
|
107 toccy 1.2 afx_msg HBRUSH OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor);
108 afx_msg void OnStnClickedMainLinkCalendar();
109 afx_msg void OnStnClickedMainLinkContacts();
110 afx_msg void OnStnClickedMainLinkNotes();
111 afx_msg void OnStnClickedMainLinkTasks();
112 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message );
113 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
114 afx_msg void OnPaint();
115 afx_msg void OnStnClickedMainButStart();
|
116 toccy 1.1 };
117
118 /////////////////////////////////////////////////////////////////////////////
119
120 //{{AFX_INSERT_LOCATION}}
121 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
122
123 #endif // !defined(AFX_FORM1_H__FA98B71B_D0B7_11D3_BC39_00C04F602FEE__INCLUDED_)
|