- Main Page
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

# PPageWebServer.h

    00001 /*
    00002  *      Copyright (C) 2003-2005 Gabest
    00003  *      http://www.gabest.org
    00004  *
    00005  *  This Program is free software; you can redistribute it and/or modify
    00006  *  it under the terms of the GNU General Public License as published by
    00007  *  the Free Software Foundation; either version 2, or (at your option)
    00008  *  any later version.
    00009  *
    00010  *  This Program is distributed in the hope that it will be useful,
    00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    00013  *  GNU General Public License for more details.
    00014  *
    00015  *  You should have received a copy of the GNU General Public License
    00016  *  along with GNU Make; see the file COPYING.  If not, write to
    00017  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
    00018  *  http://www.gnu.org/copyleft/gpl.html
    00019  *
    00020  */
    00021
    00022 #pragma once
    00023
    00024 #include "PPageBase.h"
    00025 #include "FloatEdit.h"
    00026 #include "StaticLink.h"
    00027
    00028 // CPPageWebServer dialog
    00029
    00030 class CPPageWebServer : public CPPageBase
    00031 {
    00032         DECLARE_DYNAMIC(CPPageWebServer)
    00033
    00034 private:
    00035         CString GetMPCDir();
    00036         CString GetCurWebRoot();
    00037         bool PickDir(CString& dir);
    00038
    00039 public:
    00040         CPPageWebServer();
    00041         virtual ~CPPageWebServer();
    00042
    00043 // Dialog Data
    00044         enum { IDD = IDD_PPAGEWEBSERVER };
    00045         BOOL m_fEnableWebServer;
    00046         int m_nWebServerPort;
    00047         CIntEdit m_nWebServerPortCtrl;
    00048         CStaticLink m_launch;
    00049         BOOL m_fWebServerPrintDebugInfo;
    00050         BOOL m_fWebServerUseCompression;
    00051         BOOL m_fWebServerLocalhostOnly;
    00052         BOOL m_fWebRoot;
    00053         CString m_WebRoot;
    00054         CString m_WebServerCGI;
    00055         CString m_WebDefIndex;
    00056
    00057 protected:
    00058         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    00059         virtual BOOL OnInitDialog();
    00060         virtual BOOL OnApply();
    00061         virtual BOOL PreTranslateMessage(MSG* pMsg);
    00062
    00063         DECLARE_MESSAGE_MAP()
    00064
    00065 public:
    00066         afx_msg void OnEnChangeEdit1();
    00067         afx_msg void OnBnClickedButton1();
    00068         afx_msg void OnBnClickedButton2();
    00069         afx_msg void OnUpdateButton2(CCmdUI* pCmdUI);
    00070 };