Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

PageSettingsScheduler.h

Go to the documentation of this file.
00001 //
00002 // PageSettingsScheduler.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #if !defined(AFX_PAGESETTINGSSCHEDULER_H__INCLUDED_)
00023 #define AFX_PAGESETTINGSSCHEDULER_H__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "WndSettingsPage.h"
00028 
00029 
00030 class CSchedulerSettingsPage : public CSettingsPage
00031 {
00032 // Construction
00033 public:
00034         CSchedulerSettingsPage();
00035         virtual ~CSchedulerSettingsPage();
00036 
00037         DECLARE_DYNCREATE(CSchedulerSettingsPage)
00038 
00039 // Dialog Data
00040 public:
00041         //{{AFX_DATA(CSchedulerSettingsPage)
00042         enum { IDD = IDD_SETTINGS_SCHEDULER };
00043         BOOL    m_bSchedulerEnable;
00044         CSpinButtonCtrl m_wndLimitedSpin;
00045         int             m_nLimited;
00046         BOOL    m_bLimitedNetworks;
00047         CStatic m_wndDisplay;
00048         //}}AFX_DATA
00049 
00050 // Painting Data
00051 protected:
00052         BYTE                    m_pSchedule[7][24];             // 2D Array representing the schedule
00053 
00054         CImageList              m_pTimeSlices;                  // Images for the three states a time slice can be in
00055         CBitmap                 m_bmHeader;                             // Header graphic (times)
00056 
00057         BYTE                    m_nHoverDay;
00058         BYTE                    m_nHoverHour;
00059         BYTE                    m_nDownDay;
00060         BYTE                    m_nDownHour;
00061 
00062         BOOL                    m_bPaint;
00063         BYTE                    m_nPaintValue;
00064 
00065         CString                 m_sDayName[7];                  // List of day names
00066 
00067 // Overrides
00068 public:
00069         //{{AFX_VIRTUAL(CSchedulerSettingsPage)
00070         public:
00071         virtual void OnOK();
00072         protected:
00073         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00074         //}}AFX_VIRTUAL
00075 
00076 // Implementation
00077 protected:
00078         //{{AFX_MSG(CSchedulerSettingsPage)
00079         virtual BOOL OnInitDialog();
00080         afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00081         afx_msg void OnPaint();
00082         afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00083         afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00084         afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
00085         afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
00086         afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
00087         afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
00088         //}}AFX_MSG
00089         DECLARE_MESSAGE_MAP()
00090 
00091 };
00092 
00093 //{{AFX_INSERT_LOCATION}}
00094 
00095 #endif // !defined(AFX_PAGESETTINGSSCHEDULER_H__INCLUDED_)

Generated on Thu Dec 15 10:39:46 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2