About dialog, very basic, :P
This commit is contained in:
parent
dcb5f29353
commit
bd17a2ac3f
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* Torque IDE -- An open source integrated development environment for the
|
||||
* Torque Game Engine
|
||||
*
|
||||
* Copyright (C) 2004 Robert Pierce
|
||||
*
|
||||
* Refer to the file CONTRIB.txt for the people who have helped.
|
||||
*
|
||||
* This program is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* either version 2 of the License, or (at your option) any
|
||||
* later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public
|
||||
* License along with this program; if not, write to the Free
|
||||
* Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
// For compilers that supports precompilation, include "wx/wx.h"
|
||||
#include <wx/wxprec.h>
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include <wx/wx.h>
|
||||
#endif
|
||||
|
||||
#include "torqueideabout.h"
|
||||
|
||||
TorqueIDEAbout::TorqueIDEAbout(wxWindow *parent)
|
||||
: wxDialog(parent, -1, "About the Torque IDE", wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE)
|
||||
{
|
||||
about_text = new wxStaticText(this, -1, "", wxPoint(5, 5), wxSize(100, 100), wxALIGN_CENTRE);
|
||||
ok = new wxButton(this, wxID_OK, "Ok", wxPoint(5, 40));
|
||||
}
|
||||
|
||||
void TorqueIDEAbout::SetText(const wxString& text)
|
||||
{
|
||||
about_text->SetLabel(text);
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
#ifndef _TORQUEIDEABOUT_H
|
||||
#define _TORQUEIDEABOUT_H
|
||||
/*
|
||||
* Torque IDE -- An open source integrated development environment for the
|
||||
* Torque Game Engine
|
||||
*
|
||||
* Copyright (C) 2004 Robert Pierce
|
||||
*
|
||||
* Refer to the file CONTRIB.txt for the people who have helped.
|
||||
*
|
||||
* This program is free software; you can redistribute it
|
||||
* and/or modify it under the terms of the GNU General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* either version 2 of the License, or (at your option) any
|
||||
* later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public
|
||||
* License along with this program; if not, write to the Free
|
||||
* Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
class TorqueIDEAbout : public wxDialog
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
TorqueIDEAbout(wxWindow *parent);
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
virtual ~TorqueIDEAbout() { }
|
||||
|
||||
/**
|
||||
* Sets the text on the dialog
|
||||
*/
|
||||
void SetText(const wxString& text);
|
||||
|
||||
private:
|
||||
wxStaticText *about_text;
|
||||
wxButton *ok;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue