diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-07-03 04:20:36 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-07-03 04:20:36 +0000 |
| commit | 65cc463f1d91fe99acf1c4dd9bce7e0038593022 (patch) | |
| tree | 95644c3c42a4a23db50dc42722cdeb4489427e14 /pokemodr/gui/menuEntry.cpp | |
| parent | 9102febc37475af113681eaaee02ecc2ea04b4da (diff) | |
| download | sigen-65cc463f1d91fe99acf1c4dd9bce7e0038593022.tar.gz sigen-65cc463f1d91fe99acf1c4dd9bce7e0038593022.tar.xz sigen-65cc463f1d91fe99acf1c4dd9bce7e0038593022.zip | |
Fixed Logging, minor fixes, got rid of NatureEffect, and started migration from wxGTK to Qt
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@22 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/gui/menuEntry.cpp')
| -rw-r--r-- | pokemodr/gui/menuEntry.cpp | 272 |
1 files changed, 0 insertions, 272 deletions
diff --git a/pokemodr/gui/menuEntry.cpp b/pokemodr/gui/menuEntry.cpp deleted file mode 100644 index 7256bd7a..00000000 --- a/pokemodr/gui/menuEntry.cpp +++ /dev/null @@ -1,272 +0,0 @@ -///////////////////////////////////////////////////////////////////////////// -// Name: menuEntry.cpp -// Purpose: -// Author: Ben Boeckel -// Modified by: -// Created: 14/02/2007 21:18:31 -// RCS-ID: -// Copyright: ©2006-2007 Ben Boeckel and Nerdy Productions -// Licence: -// 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., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -///////////////////////////////////////////////////////////////////////////// - -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "menuEntry.h" -#endif - -// For compilers that support precompilation, includes "wx/wx.h". -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ -#pragma hdrstop -#endif - -#ifndef WX_PRECOMP -#include "wx/wx.h" -#endif - -////@begin includes -////@end includes - -#include "menuEntry.h" - -////@begin XPM images -////@end XPM images - -/*! - * MenuItemPanel type definition - */ - -IMPLEMENT_DYNAMIC_CLASS( MenuItemPanel, wxPanel ) - -/*! - * MenuItemPanel event table definition - */ - -BEGIN_EVENT_TABLE( MenuItemPanel, wxPanel ) - -////@begin MenuItemPanel event table entries - EVT_INIT_DIALOG( MenuItemPanel::OnInitDialog ) - - EVT_BUTTON( ID_DELETE, MenuItemPanel::OnDeleteClick ) - - EVT_BUTTON( ID_MOVE_UP, MenuItemPanel::OnMoveUpClick ) - - EVT_BUTTON( ID_MOVE_DOWN, MenuItemPanel::OnMoveDownClick ) - -////@end MenuItemPanel event table entries - -END_EVENT_TABLE() - -/*! - * MenuItemPanel constructors - */ - -MenuItemPanel::MenuItemPanel() -{ - Init(); -} - -MenuItemPanel::MenuItemPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) -{ - Init(); - Create(parent, id, pos, size, style); -} - -/*! - * MenuItemPanel creator - */ - -bool MenuItemPanel::Create( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) -{ -////@begin MenuItemPanel creation - wxPanel::Create( parent, id, pos, size, style ); - - CreateControls(); - if (GetSizer()) - { - GetSizer()->SetSizeHints(this); - } -////@end MenuItemPanel creation - return true; -} - -/*! - * MenuItemPanel destructor - */ - -MenuItemPanel::~MenuItemPanel() -{ -////@begin MenuItemPanel destruction -////@end MenuItemPanel destruction -} - -/*! - * Member initialisation - */ - -void MenuItemPanel::Init() -{ -////@begin MenuItemPanel member initialisation - m_Option = NULL; - m_Dialog = NULL; -////@end MenuItemPanel member initialisation -} -/*! - * Control creation for MenuItemPanel - */ - -void MenuItemPanel::CreateControls() -{ -////@begin MenuItemPanel content construction - MenuItemPanel* itemPanel1 = this; - - wxStaticBox* itemStaticBoxSizer2Static = new wxStaticBox(itemPanel1, wxID_ANY, _T("")); - wxStaticBoxSizer* itemStaticBoxSizer2 = new wxStaticBoxSizer(itemStaticBoxSizer2Static, wxVERTICAL); - itemPanel1->SetSizer(itemStaticBoxSizer2); - - wxStaticBox* itemStaticBoxSizer3Static = new wxStaticBox(itemPanel1, wxID_ANY, _T("")); - wxStaticBoxSizer* itemStaticBoxSizer3 = new wxStaticBoxSizer(itemStaticBoxSizer3Static, wxHORIZONTAL); - itemStaticBoxSizer2->Add(itemStaticBoxSizer3, 0, wxGROW, 5); - - wxStaticText* itemStaticText4 = new wxStaticText( itemPanel1, wxID_STATIC, _("Option:"), wxDefaultPosition, wxDefaultSize, 0 ); - itemStaticBoxSizer3->Add(itemStaticText4, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5); - - itemStaticBoxSizer3->Add(5, 5, 1, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5); - - m_Option = new wxTextCtrl( itemPanel1, ID_OPTION, _T(""), wxDefaultPosition, wxDefaultSize, 0 ); - if (ShowToolTips()) - m_Option->SetToolTip(_("The name of the option")); - itemStaticBoxSizer3->Add(m_Option, 0, wxALIGN_TOP|wxLEFT|wxRIGHT, 5); - - wxStaticBox* itemStaticBoxSizer7Static = new wxStaticBox(itemPanel1, wxID_ANY, _T("")); - wxStaticBoxSizer* itemStaticBoxSizer7 = new wxStaticBoxSizer(itemStaticBoxSizer7Static, wxHORIZONTAL); - itemStaticBoxSizer2->Add(itemStaticBoxSizer7, 0, wxGROW, 5); - - wxStaticText* itemStaticText8 = new wxStaticText( itemPanel1, wxID_STATIC, _("Dialog:"), wxDefaultPosition, wxDefaultSize, 0 ); - itemStaticBoxSizer7->Add(itemStaticText8, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5); - - itemStaticBoxSizer7->Add(5, 5, 1, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5); - - wxArrayString m_DialogStrings; - m_Dialog = new wxComboBox( itemPanel1, ID_DIALOG, _T(""), wxDefaultPosition, wxDefaultSize, m_DialogStrings, wxCB_READONLY|wxCB_SORT ); - if (ShowToolTips()) - m_Dialog->SetToolTip(_("The dialog to hand control over to if this option is chosen")); - itemStaticBoxSizer7->Add(m_Dialog, 0, wxALIGN_TOP|wxLEFT|wxRIGHT, 5); - - wxStaticBox* itemStaticBoxSizer11Static = new wxStaticBox(itemPanel1, wxID_ANY, _T("")); - wxStaticBoxSizer* itemStaticBoxSizer11 = new wxStaticBoxSizer(itemStaticBoxSizer11Static, wxHORIZONTAL); - itemStaticBoxSizer2->Add(itemStaticBoxSizer11, 0, wxGROW, 5); - - wxButton* itemButton12 = new wxButton( itemPanel1, ID_DELETE, _("Delete"), wxDefaultPosition, wxDefaultSize, 0 ); - if (ShowToolTips()) - itemButton12->SetToolTip(_("Delete this menu item")); - itemStaticBoxSizer11->Add(itemButton12, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5); - - wxButton* itemButton13 = new wxButton( itemPanel1, ID_MOVE_UP, _("Move Up"), wxDefaultPosition, wxDefaultSize, 0 ); - if (ShowToolTips()) - itemButton13->SetToolTip(_("Move this menu item up")); - itemStaticBoxSizer11->Add(itemButton13, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5); - - wxButton* itemButton14 = new wxButton( itemPanel1, ID_MOVE_DOWN, _("Move Down"), wxDefaultPosition, wxDefaultSize, 0 ); - if (ShowToolTips()) - itemButton14->SetToolTip(_("Move this menu item down")); - itemStaticBoxSizer11->Add(itemButton14, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5); - -////@end MenuItemPanel content construction -} - -/*! - * wxEVT_INIT_DIALOG event handler for ID_MENU_ITEM - */ - -void MenuItemPanel::OnInitDialog( wxInitDialogEvent& event ) -{ -////@begin wxEVT_INIT_DIALOG event handler for ID_MENU_ITEM in MenuItemPanel. - // Before editing this code, remove the block markers. - event.Skip(); -////@end wxEVT_INIT_DIALOG event handler for ID_MENU_ITEM in MenuItemPanel. -} - -/*! - * wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_DELETE - */ - -void MenuItemPanel::OnDeleteClick( wxCommandEvent& event ) -{ -////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_DELETE in MenuItemPanel. - // Before editing this code, remove the block markers. - event.Skip(); -////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_DELETE in MenuItemPanel. -} - -/*! - * wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_MOVE_UP - */ - -void MenuItemPanel::OnMoveUpClick( wxCommandEvent& event ) -{ -////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_MOVE_UP in MenuItemPanel. - // Before editing this code, remove the block markers. - event.Skip(); -////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_MOVE_UP in MenuItemPanel. -} - -/*! - * wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_MOVE_DOWN - */ - -void MenuItemPanel::OnMoveDownClick( wxCommandEvent& event ) -{ -////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_MOVE_DOWN in MenuItemPanel. - // Before editing this code, remove the block markers. - event.Skip(); -////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_MOVE_DOWN in MenuItemPanel. -} - -/*! - * Should we show tooltips? - */ - -bool MenuItemPanel::ShowToolTips() -{ - return true; -} - -/*! - * Get bitmap resources - */ - -wxBitmap MenuItemPanel::GetBitmapResource( const wxString& name ) -{ - // Bitmap retrieval -////@begin MenuItemPanel bitmap retrieval - wxUnusedVar(name); - return wxNullBitmap; -////@end MenuItemPanel bitmap retrieval -} - -/*! - * Get icon resources - */ - -wxIcon MenuItemPanel::GetIconResource( const wxString& name ) -{ - // Icon retrieval -////@begin MenuItemPanel icon retrieval - wxUnusedVar(name); - return wxNullIcon; -////@end MenuItemPanel icon retrieval -} |
