/LuaEdit/frmNewProject.h

http://modstudio2.googlecode.com/ · C Header · 79 lines · 40 code · 11 blank · 28 comment · 0 complexity · 48459c4b8d1edefaa2df30daf1140a01 MD5 · raw file

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