Skip to content

Commit

Permalink
first commit, add what I had back in 2006
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-yan committed Aug 1, 2015
0 parents commit 874b0d2
Show file tree
Hide file tree
Showing 221 changed files with 43,107 additions and 0 deletions.
Binary file added 1159552974.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions AboutDialog.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@


#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif //WX_PRECOMP
#include "wx/utils.h"
#include "AboutDialog.h"
///////////////////////////////////////////////////////////////////////////

BEGIN_EVENT_TABLE(AboutDialog, wxDialog)
EVT_BUTTON(linkButtonPress, AboutDialog::onLinkButton)
EVT_BUTTON(closeButtonPress,AboutDialog::onClose)
END_EVENT_TABLE()

AboutDialog::AboutDialog( wxWindow* parent, int id, wxString title, wxPoint pos, wxSize size, int style ) : wxDialog( parent, id, title, pos, size, style )
{
wxBoxSizer* mainSizer;
mainSizer = new wxBoxSizer( wxVERTICAL );

wxStaticBoxSizer* aboutSizer;
aboutSizer = new wxStaticBoxSizer( new wxStaticBox( this, -1, wxT("About:") ), wxHORIZONTAL );

logoBitmap = new wxStaticBitmap( this, ID_DEFAULT, wxBitmap( wxT("about.dat"), wxBITMAP_TYPE_ANY ), wxDefaultPosition, wxDefaultSize, 0 );
aboutSizer->Add( logoBitmap, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );

wxBoxSizer* infoSizer;
infoSizer = new wxBoxSizer( wxVERTICAL );

infoStaticText = new wxStaticText( this, ID_DEFAULT, wxT("Pillow 0.1a \n Billconan Studio 2006 \n Blog:http://billconan.blogspot.com"), wxDefaultPosition, wxDefaultSize, 0 );
infoSizer->Add( infoStaticText, 1, wxALL, 5 );

linkButton = new wxButton( this, linkButtonPress, wxT("Go to the site!"), wxDefaultPosition, wxDefaultSize, 0 );
infoSizer->Add( linkButton, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );

aboutSizer->Add( infoSizer, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );

mainSizer->Add( aboutSizer, 1, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );

wxBoxSizer* buttonSizer;
buttonSizer = new wxBoxSizer( wxVERTICAL );

closeButton = new wxButton( this, closeButtonPress, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
buttonSizer->Add( closeButton, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );

mainSizer->Add( buttonSizer, 0, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );

this->SetSizer( mainSizer );
this->Layout();
this->Fit();
}

void AboutDialog::onLinkButton(wxCommandEvent& event)
{
wxLaunchDefaultBrowser(_T("http://billconan.blogspot.com"));
event;
};

void AboutDialog::onClose(wxCommandEvent& event)
{
Close();
event;
};

//AboutDialog::~AboutDialog(void){}
43 changes: 43 additions & 0 deletions AboutDialog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#pragma once

#ifdef WX_GCH
#include <wx_pch.h>
#else
#include <wx/wx.h>
#endif

#include <wx/button.h>
#include <wx/choice.h>
#include <wx/slider.h>
#include <wx/statbmp.h>
#include <wx/statline.h>

///////////////////////////////////////////////////////////////////////////

#define ID_DEFAULT wxID_ANY // Default

/**
* Class AboutDialog
*/
class AboutDialog : public wxDialog
{
private:

protected:
wxStaticBitmap* logoBitmap;
wxStaticText* infoStaticText;
wxButton* linkButton;
wxButton* closeButton;

public:
AboutDialog( wxWindow* parent, int id = -1, wxString title = wxT(""), wxPoint pos = wxDefaultPosition, wxSize size = wxDefaultSize, int style = wxDEFAULT_DIALOG_STYLE );
void onLinkButton(wxCommandEvent& event);
void onClose(wxCommandEvent& event);
DECLARE_EVENT_TABLE()
};

enum
{
linkButtonPress=2423,
closeButtonPress
};
16 changes: 16 additions & 0 deletions AxisCursor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "AxisCursor.h"

AxisCursor::~AxisCursor(void)
{
glDeleteLists(moveX,1);
glDeleteLists(rotateX,1);
glDeleteLists(scaleX,1);

glDeleteLists(moveY,1);
glDeleteLists(rotateY,1);
glDeleteLists(scaleY,1);

glDeleteLists(moveZ,1);
glDeleteLists(rotateZ,1);
glDeleteLists(scaleZ,1);
}
Loading

0 comments on commit 874b0d2

Please sign in to comment.