diff --git a/Projects/CodeLite/OSX/Info.plist b/Projects/CodeLite/OSX/Info.plist new file mode 100644 index 00000000..a12d75b5 --- /dev/null +++ b/Projects/CodeLite/OSX/Info.plist @@ -0,0 +1,37 @@ + + + + + + CFBundleExecutable + SleepyHead + + CFBundleGetInfoString + SleepyHead, version 0.7, copyright Mark Watkins, Troy Schultz + + CFBundleIconFile + SleepyHead.icns + + CFBundleIdentifier + com.mycompany.sleepyhead + + CFBundleSignature + SLEE + + CFBundleVersion + 0.7 + + CFBundleInfoDictionaryVersion + 6.0 + + CFBundleDevelopmentRegion + English + + CFBundlePackageType + APPL + + CFBundleShortVersionString + 0.7 + + + diff --git a/Projects/CodeLite/OSX/SleepyHead.icns b/Projects/CodeLite/OSX/SleepyHead.icns new file mode 100644 index 00000000..b0946bfa Binary files /dev/null and b/Projects/CodeLite/OSX/SleepyHead.icns differ diff --git a/Projects/CodeLite/OSX/SleepyHead.project b/Projects/CodeLite/OSX/SleepyHead.project new file mode 100644 index 00000000..69d70fcb --- /dev/null +++ b/Projects/CodeLite/OSX/SleepyHead.project @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + None + + + + + $(IntermediateDirectory)/$(ProjectName).app/Contents/Info.plist $(IntermediateDirectory)/$(ProjectName).app/Contents/Resources/SleepyHead.icns +## rule to copy the Info.plist file into the bundle +$(IntermediateDirectory)/$(ProjectName).app/Contents/Info.plist: Info.plist + mkdir -p '$(IntermediateDirectory)/$(ProjectName).app/Contents' && cp -f Info.plist '$(IntermediateDirectory)/$(ProjectName).app/Contents/Info.plist' +## rule to copy the icon file into the bundle +$(IntermediateDirectory)/$(ProjectName).app/Contents/Resources/SleepyHead.icns: SleepyHead.icns + mkdir -p '$(IntermediateDirectory)/$(ProjectName).app/Contents/Resources/' && cp -f SleepyHead.icns '$(IntermediateDirectory)/$(ProjectName).app/Contents/Resources/SleepyHead.icns' + + + + + + + + + + + + + + + + + + + + + + + + + None + + + + + $(IntermediateDirectory)/$(ProjectName).app/Contents/Info.plist $(IntermediateDirectory)/$(ProjectName).app/Contents/Resources/SleepyHead.icns +## rule to copy the Info.plist file into the bundle +$(IntermediateDirectory)/$(ProjectName).app/Contents/Info.plist: Info.plist + mkdir -p '$(IntermediateDirectory)/$(ProjectName).app/Contents' && cp -f Info.plist '$(IntermediateDirectory)/$(ProjectName).app/Contents/Info.plist' +## rule to copy the icon file into the bundle +$(IntermediateDirectory)/$(ProjectName).app/Contents/Resources/SleepyHead.icns: SleepyHead.icns + mkdir -p '$(IntermediateDirectory)/$(ProjectName).app/Contents/Resources/' && cp -f SleepyHead.icns '$(IntermediateDirectory)/$(ProjectName).app/Contents/Resources/SleepyHead.icns' + + + + + + + diff --git a/Projects/CodeLite/OSX/SleepyHead.tags b/Projects/CodeLite/OSX/SleepyHead.tags new file mode 100644 index 00000000..31847843 Binary files /dev/null and b/Projects/CodeLite/OSX/SleepyHead.tags differ diff --git a/Projects/CodeLite/OSX/SleepyHead.workspace b/Projects/CodeLite/OSX/SleepyHead.workspace new file mode 100644 index 00000000..3a9ad05d --- /dev/null +++ b/Projects/CodeLite/OSX/SleepyHead.workspace @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/Projects/CodeLite/OSX/SleepyHead.workspace.session b/Projects/CodeLite/OSX/SleepyHead.workspace.session new file mode 100644 index 00000000..c9797e92 --- /dev/null +++ b/Projects/CodeLite/OSX/SleepyHead.workspace.session @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Projects/CodeLite/OSX/gui.cpp b/Projects/CodeLite/OSX/gui.cpp new file mode 100644 index 00000000..3a9abdd9 --- /dev/null +++ b/Projects/CodeLite/OSX/gui.cpp @@ -0,0 +1,45 @@ +/////////////////////////////////////////////////////////////////////////// +// C++ code generated with wxFormBuilder (version Feb 8 2009) +// http://www.wxformbuilder.org/ +// +// PLEASE DO "NOT" EDIT THIS FILE! +/////////////////////////////////////////////////////////////////////////// + +#include "gui.h" + +/////////////////////////////////////////////////////////////////////////// + +MainFrameBase::MainFrameBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style ) +{ + this->SetSizeHints( wxDefaultSize, wxDefaultSize ); + + m_menuBar = new wxMenuBar( 0 ); + m_menuFile = new wxMenu(); + wxMenuItem* menuFileExit; + menuFileExit = new wxMenuItem( m_menuFile, wxID_EXIT, wxString( _("E&xit") ) + wxT('\t') + wxT("Alt+X"), wxEmptyString, wxITEM_NORMAL ); + m_menuFile->Append( menuFileExit ); + + m_menuBar->Append( m_menuFile, _("&File") ); + + this->SetMenuBar( m_menuBar ); + + wxBoxSizer* mainSizer; + mainSizer = new wxBoxSizer( wxVERTICAL ); + + this->SetSizer( mainSizer ); + this->Layout(); + m_statusBar = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY ); + + this->Centre( wxBOTH ); + + // Connect Events + this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( MainFrameBase::OnCloseFrame ) ); + this->Connect( menuFileExit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameBase::OnExitClick ) ); +} + +MainFrameBase::~MainFrameBase() +{ + // Disconnect Events + this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( MainFrameBase::OnCloseFrame ) ); + this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( MainFrameBase::OnExitClick ) ); +} diff --git a/Projects/CodeLite/OSX/gui.fbp b/Projects/CodeLite/OSX/gui.fbp new file mode 100644 index 00000000..3d99a094 --- /dev/null +++ b/Projects/CodeLite/OSX/gui.fbp @@ -0,0 +1,204 @@ + + + + + + C++ + 1 + UTF-8 + connect + impl_virtual + gui + 1000 + none + 1 + gui + + . + + 1 + 0 + 0 + + + wxBOTH + + 1 + + + + 0 + wxID_ANY + + + MainFrameBase + + 500,300 + wxCLOSE_BOX|wxDEFAULT_FRAME_STYLE + + wxMiniApp + + + wxFILTER_NONE + wxDefaultValidator + + + + wxTAB_TRAVERSAL + 1 + + + + OnCloseFrame + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + 0 + wxID_ANY + MainMenu + + + m_menuBar + protected + + + + + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + + + + + + + + + + + + + + + + + + + + &File + m_menuFile + protected + + + 0 + 1 + + wxID_EXIT + wxITEM_NORMAL + E&xit + menuFileExit + none + Alt+X + + OnExitClick + + + + + + + mainSizer + wxVERTICAL + none + + + + + 1 + + 1 + + 0 + wxID_ANY + + + m_statusBar + protected + + + wxST_SIZEGRIP + + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Projects/CodeLite/OSX/gui.h b/Projects/CodeLite/OSX/gui.h new file mode 100644 index 00000000..beb8463a --- /dev/null +++ b/Projects/CodeLite/OSX/gui.h @@ -0,0 +1,53 @@ +/////////////////////////////////////////////////////////////////////////// +// C++ code generated with wxFormBuilder (version Feb 8 2009) +// http://www.wxformbuilder.org/ +// +// PLEASE DO "NOT" EDIT THIS FILE! +/////////////////////////////////////////////////////////////////////////// + +#ifndef __gui__ +#define __gui__ + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/////////////////////////////////////////////////////////////////////////// + + +/////////////////////////////////////////////////////////////////////////////// +/// Class MainFrameBase +/////////////////////////////////////////////////////////////////////////////// +class MainFrameBase : public wxFrame +{ + private: + + protected: + wxMenuBar* m_menuBar; + wxMenu* m_menuFile; + wxStatusBar* m_statusBar; + + // Virtual event handlers, overide them in your derived class + virtual void OnCloseFrame( wxCloseEvent& event ) { event.Skip(); } + virtual void OnExitClick( wxCommandEvent& event ) { event.Skip(); } + + + public: + + MainFrameBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("wxMiniApp"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxCLOSE_BOX|wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL ); + ~MainFrameBase(); + +}; + +#endif //__gui__ diff --git a/Projects/CodeLite/OSX/main.cpp b/Projects/CodeLite/OSX/main.cpp new file mode 100644 index 00000000..c6a764dc --- /dev/null +++ b/Projects/CodeLite/OSX/main.cpp @@ -0,0 +1,52 @@ +/********************************************************************* + * Name: main.cpp + * Purpose: Implements simple wxWidgets application with GUI + * created using wxFormBuilder. + * Author: + * Created: + * Copyright: + * License: wxWidgets license (www.wxwidgets.org) + * + * Notes: Note that all GUI creation code is implemented in + * gui.cpp source file which is generated by wxFormBuilder. + *********************************************************************/ + +#include "main.h" + +// initialize the application +IMPLEMENT_APP(MainApp); + +//////////////////////////////////////////////////////////////////////////////// +// application class implementation +//////////////////////////////////////////////////////////////////////////////// + +bool MainApp::OnInit() +{ + SetTopWindow( new MainFrame( NULL ) ); + GetTopWindow()->Show(); + + // true = enter the main loop + return true; +} + +//////////////////////////////////////////////////////////////////////////////// +// main application frame implementation +//////////////////////////////////////////////////////////////////////////////// + +MainFrame::MainFrame(wxWindow *parent) : MainFrameBase( parent ) +{ +} + +MainFrame::~MainFrame() +{ +} + +void MainFrame::OnCloseFrame(wxCloseEvent& event) +{ + Destroy(); +} + +void MainFrame::OnExitClick(wxCommandEvent& event) +{ + Destroy(); +} diff --git a/Projects/CodeLite/OSX/main.h b/Projects/CodeLite/OSX/main.h new file mode 100644 index 00000000..4330289e --- /dev/null +++ b/Projects/CodeLite/OSX/main.h @@ -0,0 +1,51 @@ +/********************************************************************* + * Name: main.h + * Purpose: Declares simple wxWidgets application with GUI + * created using wxFormBuilder. + * Author: + * Created: + * Copyright: + * License: wxWidgets license (www.wxwidgets.org) + * + * Notes: Note that all GUI creation code is declared in + * gui.h source file which is generated by wxFormBuilder. + *********************************************************************/ + +#ifndef __main__ +#define __main__ + +// main wxWidgets header file +#include +// gui classes generated by wxFormBuilder +#include "gui.h" + +//////////////////////////////////////////////////////////////////////////////// +// application class declaration +//////////////////////////////////////////////////////////////////////////////// + +class MainApp : public wxApp +{ + public: + virtual bool OnInit(); +}; + +// declare global static function wxGetApp() +DECLARE_APP(MainApp) + +//////////////////////////////////////////////////////////////////////////////// +// main application frame declaration +//////////////////////////////////////////////////////////////////////////////// + +class MainFrame : public MainFrameBase +{ + public: + MainFrame( wxWindow *parent ); + virtual ~MainFrame(); + + protected: + // protected event handlers + virtual void OnCloseFrame( wxCloseEvent& event ); + virtual void OnExitClick( wxCommandEvent& event ); +}; + +#endif //__main__