robertsim007: Updated the file dialog filter to include MIS and GUI files, in addition to CS files.

This commit is contained in:
robertsim007 2005-04-11 02:28:11 +00:00
parent 73645a6b4c
commit 427097b85e
1 changed files with 4 additions and 1 deletions

View File

@ -55,6 +55,9 @@ TorqueIDEFrame::TorqueIDEFrame(const wxString &title) : wxFrame ((wxFrame *)NULL
{
scintilla = new TorqueIDESTC(this); // The other params default
// Give the app our icon
SetIcon(wxIcon("torque")); // Does this mess with cross-platform abilities?
// StatusBar
InitStatusBar();
@ -183,7 +186,7 @@ void TorqueIDEFrame::OnMenuFileNew(wxCommandEvent &event)
void TorqueIDEFrame::OnMenuFileOpen(wxCommandEvent &event)
{
wxFileDialog *dlg = new wxFileDialog(this, "Open", "", "", "TorqueSCRIPT Files(*.cs)|*.cs|All files(*.*)|*.*", wxOPEN, wxDefaultPosition);
wxFileDialog *dlg = new wxFileDialog(this, "Open", "", "", "TorqueSCRIPT Files(*.cs, *.gui, *.mis)|*.cs;*.gui;*.mis|All files(*.*)|*.*", wxOPEN, wxDefaultPosition);
if(dlg->ShowModal() == wxID_OK)
{
scintilla->LoadFile(dlg->GetPath());