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 rvultursv 1.6 #include "AnimatedIcon.h"
|
22 toccy 1.2
|
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 rvultursv 1.6 CFont fontNormal;
|
78 toccy 1.2 CBrush brush;
79 CAnimatedIcon butStart;
80 CAnimatedIcon iconContacts;
81 CAnimatedIcon iconCalendar;
82 CAnimatedIcon iconTasks;
83 CAnimatedIcon iconNotes;
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.6 CBrush brushRed;
|
93 rvultursv 1.5 //
94 int syncSourceContactState, syncSourceCalendarState;
95 int syncSourceTaskState, syncSourceNoteState;
|
96 toccy 1.1
|
97 toccy 1.2 void refreshSources();
|
98 toccy 1.1 void showSyncControls(BOOL show);
99 void resetSyncControls();
|
100 toccy 1.2 void changeContactsStatus(CString status);
101 void changeCalendarStatus(CString status);
102 void changeTasksStatus(CString status);
103 void changeNotesStatus(CString status);
104
|
105 toccy 1.1 afx_msg LRESULT OnInitForm(WPARAM, LPARAM);
106 afx_msg void OnBnClickedMainButSync();
107 afx_msg void OnNcPaint( );
|
108 toccy 1.2 afx_msg HBRUSH OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor);
109 afx_msg void OnStnClickedMainLinkCalendar();
110 afx_msg void OnStnClickedMainLinkContacts();
111 afx_msg void OnStnClickedMainLinkNotes();
112 afx_msg void OnStnClickedMainLinkTasks();
113 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message );
114 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
115 afx_msg void OnPaint();
116 afx_msg void OnStnClickedMainButStart();
|
117 toccy 1.1 };
118
119 /////////////////////////////////////////////////////////////////////////////
120
121 //{{AFX_INSERT_LOCATION}}
122 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
123
124 #endif // !defined(AFX_FORM1_H__FA98B71B_D0B7_11D3_BC39_00C04F602FEE__INCLUDED_)
|