PageRenderTime 18ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/LuaEdit/utility.h

http://modstudio2.googlecode.com/
C++ Header | 58 lines | 24 code | 6 blank | 28 comment | 0 complexity | f5355f38a53e321a413fd52df06667c1 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/filedlg.h>
41extern "C" {
42#include <lua.h>
43}
44
45void luaX_pushrstring(lua_State *L, const RainString& s);
46void luaX_pushwstring(lua_State *L, const wchar_t* s);
47RainString GetParentFolder(RainString sPath, int iNumLevelsUp = 1);
48
49class PipelineFileOpenDialog : public wxFileDialog
50{
51public:
52  PipelineFileOpenDialog(wxWindow *pParent, wxComboBox *pFileList);
53
54  bool show();
55
56protected:
57  wxComboBox *m_pFileList;
58};