////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // // copyright : (C) 2008 by Eran Ifrah // file name : movefuncimplbasedlg.cpp // // ------------------------------------------------------------------------- // A // _____ _ _ _ _ // / __ \ | | | | (_) | // | / \/ ___ __| | ___| | _| |_ ___ // | | / _ \ / _ |/ _ \ | | | __/ _ ) // | \__/\ (_) | (_| | __/ |___| | || __/ // \____/\___/ \__,_|\___\_____/_|\__\___| // // F i l e // // 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. // ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// // C++ code generated with wxFormBuilder (version Sep 26 2007) // http://www.wxformbuilder.org/ // // PLEASE DO "NOT" EDIT THIS FILE! /////////////////////////////////////////////////////////////////////////// #include "movefuncimplbasedlg.h" /////////////////////////////////////////////////////////////////////////// MoveFuncImplBaseDlg::MoveFuncImplBaseDlg( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) { this->SetSizeHints( wxDefaultSize, wxDefaultSize ); wxBoxSizer* bSizer6; bSizer6 = new wxBoxSizer( wxVERTICAL ); wxBoxSizer* bSizer7; bSizer7 = new wxBoxSizer( wxVERTICAL ); m_staticText4 = new wxStaticText( this, wxID_ANY, wxT("Select file to place the function implementation:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText4->Wrap( -1 ); bSizer7->Add( m_staticText4, 0, wxALL|wxEXPAND, 5 ); m_filePicker = new FilePicker(this); bSizer7->Add( m_filePicker, 0, wxALL|wxEXPAND, 5 ); m_staticText5 = new wxStaticText( this, wxID_ANY, wxT("Function's implementation (you can edit the below code):"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText5->Wrap( -1 ); bSizer7->Add( m_staticText5, 0, wxALL, 5 ); m_preview = new wxScintilla( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, wxEmptyString ); m_preview->SetUseTabs( true ); m_preview->SetTabWidth( 4 ); m_preview->SetIndent( 4 ); m_preview->SetTabIndents( true ); m_preview->SetBackSpaceUnIndents( true ); m_preview->SetViewEOL( false ); m_preview->SetViewWhiteSpace( false ); m_preview->SetMarginWidth( 2, 0 ); m_preview->SetIndentationGuides( true ); m_preview->SetMarginType( 1, wxSCI_MARGIN_SYMBOL ); m_preview->SetMarginMask( 1, wxSCI_MASK_FOLDERS ); m_preview->SetMarginWidth( 1, 16); m_preview->SetMarginSensitive( 1, true ); m_preview->SetProperty( wxT("fold"), wxT("1") ); m_preview->SetFoldFlags( wxSCI_FOLDFLAG_LINEBEFORE_CONTRACTED | wxSCI_FOLDFLAG_LINEAFTER_CONTRACTED ); m_preview->SetMarginType( 0, wxSCI_MARGIN_NUMBER ); m_preview->SetMarginWidth( 0, m_preview->TextWidth( wxSCI_STYLE_LINENUMBER, wxT("_99999") ) ); m_preview->StyleSetFont( wxSCI_STYLE_DEFAULT, wxFont( wxNORMAL_FONT->GetPointSize(), 76, 90, 90, false, wxEmptyString ) ); m_preview->MarkerDefine( wxSCI_MARKNUM_FOLDER, wxSCI_MARK_BOXPLUS ); m_preview->MarkerSetBackground( wxSCI_MARKNUM_FOLDER, wxColour( wxT("BLACK") ) ); m_preview->MarkerSetForeground( wxSCI_MARKNUM_FOLDER, wxColour( wxT("WHITE") ) ); m_preview->MarkerDefine( wxSCI_MARKNUM_FOLDEROPEN, wxSCI_MARK_BOXMINUS ); m_preview->MarkerSetBackground( wxSCI_MARKNUM_FOLDEROPEN, wxColour( wxT("BLACK") ) ); m_preview->MarkerSetForeground( wxSCI_MARKNUM_FOLDEROPEN, wxColour( wxT("WHITE") ) ); m_preview->MarkerDefine( wxSCI_MARKNUM_FOLDERSUB, wxSCI_MARK_EMPTY ); m_preview->MarkerDefine( wxSCI_MARKNUM_FOLDEREND, wxSCI_MARK_BOXPLUS ); m_preview->MarkerSetBackground( wxSCI_MARKNUM_FOLDEREND, wxColour( wxT("BLACK") ) ); m_preview->MarkerSetForeground( wxSCI_MARKNUM_FOLDEREND, wxColour( wxT("WHITE") ) ); m_preview->MarkerDefine( wxSCI_MARKNUM_FOLDEROPENMID, wxSCI_MARK_BOXMINUS ); m_preview->MarkerSetBackground( wxSCI_MARKNUM_FOLDEROPENMID, wxColour( wxT("BLACK") ) ); m_preview->MarkerSetForeground( wxSCI_MARKNUM_FOLDEROPENMID, wxColour( wxT("WHITE") ) ); m_preview->MarkerDefine( wxSCI_MARKNUM_FOLDERMIDTAIL, wxSCI_MARK_EMPTY ); m_preview->MarkerDefine( wxSCI_MARKNUM_FOLDERTAIL, wxSCI_MARK_EMPTY ); m_preview->SetSelBackground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); m_preview->SetSelForeground( true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) ); m_preview->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 76, 90, 90, false, wxEmptyString ) ); bSizer7->Add( m_preview, 1, wxEXPAND | wxALL, 5 ); bSizer6->Add( bSizer7, 1, wxEXPAND, 5 ); m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); bSizer6->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 ); wxBoxSizer* bSizer8; bSizer8 = new wxBoxSizer( wxHORIZONTAL ); m_buttonOK = new wxButton( this, wxID_OK, wxT("&OK"), wxDefaultPosition, wxDefaultSize, 0 ); bSizer8->Add( m_buttonOK, 0, wxALL, 5 ); m_buttoncancel = new wxButton( this, wxID_CANCEL, wxT("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 ); bSizer8->Add( m_buttoncancel, 0, wxALL, 5 ); bSizer6->Add( bSizer8, 0, wxALIGN_CENTER_HORIZONTAL, 5 ); this->SetSizer( bSizer6 ); this->Layout(); // Connect Events m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MoveFuncImplBaseDlg::OnButtonOK ), NULL, this ); m_buttoncancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( MoveFuncImplBaseDlg::OnButtonCancel ), NULL, this ); }