PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/LuaEdit/frmNewProject.h

http://modstudio2.googlecode.com/
C++ Header | 79 lines | 40 code | 11 blank | 28 comment | 0 complexity | 48459c4b8d1edefaa2df30daf1140a01 MD5 | raw file
 1/*
 2Copyright (c) 2008 Peter "Corsix" Cawley
 3
 4Permission is hereby granted, free of charge, to any person
 5obtaining a copy of this software and associated documentation
 6files (the "Software"), to deal in the Software without
 7restriction, including without limitation the rights to use,
 8copy, modify, merge, publish, distribute, sublicense, and/or sell
 9copies of the Software, and to permit persons to whom the
10Software is furnished to do so, subject to the following
11conditions:
12
13The above copyright notice and this permission notice shall be
14included in all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23OTHER DEALINGS IN THE SOFTWARE.
24*/
25#pragma once
26// For compilers that support precompilation, includes "wx/wx.h".
27#include "wx/wxprec.h"
28
29#ifdef __BORLANDC__
30    #pragma hdrstop
31#endif
32
33// for all others, include the necessary headers (this file is usually all you
34// need because it includes almost all "standard" wxWidgets headers)
35#ifndef WX_PRECOMP
36    #include "wx/wx.h"
37#endif
38// ----------------------------
39#include <Rainman2.h>
40#include <wx/wizard.h>
41
42class NewPipelineProjectWizard : public wxWizard
43{
44public:
45  NewPipelineProjectWizard(wxWindow* pParent, int iID = wxID_ANY);
46
47  bool RunWizard();
48
49  class WelcomePage : public wxWizardPageSimple
50  {
51  public:
52    WelcomePage(NewPipelineProjectWizard* pWizard);
53  };
54
55  class GamePipelineSelect : public wxWizardPageSimple
56  {
57  public:
58    GamePipelineSelect(NewPipelineProjectWizard* pWizard);
59
60    enum
61    {
62      BTN_BROWSEPIPELINE = wxID_HIGHEST + 1,
63      BTN_BROWSEGAMEFOLDER,
64      CMB_PIPELINES,
65    };
66
67    void onBrowsePipeline  (wxCommandEvent& e);
68    void onPipelineSelect  (wxCommandEvent& e);
69    void onBrowseGameFolder(wxCommandEvent& e);
70
71  protected:
72    wxComboBox *m_pPipelineFileList;
73    wxTextCtrl *m_pGameFolder;
74
75    static wxString _findGameFolder(wxString sPipelineFile);
76
77    DECLARE_EVENT_TABLE();
78  };
79};