-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first commit, add what I had back in 2006
- Loading branch information
0 parents
commit 874b0d2
Showing
221 changed files
with
43,107 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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){} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.