summaryrefslogtreecommitdiff
path: root/LiteEditor/newversionbasedlg.cpp
diff options
context:
space:
mode:
authorChow Loong Jin <hyperair@gmail.com>2009-03-18 01:38:42 +0800
committerChow Loong Jin <hyperair@gmail.com>2009-03-18 01:38:42 +0800
commit88bf04fce19ef94891d54e11c3604ad31bd1d46e (patch)
tree34fa3ad4f9768f63d86273468fd60c84fa05f553 /LiteEditor/newversionbasedlg.cpp
parent3d717c7047ccf0181289325da69e555556d759b3 (diff)
Imported Upstream version 1.0.2785
Diffstat (limited to 'LiteEditor/newversionbasedlg.cpp')
-rw-r--r--LiteEditor/newversionbasedlg.cpp82
1 files changed, 82 insertions, 0 deletions
diff --git a/LiteEditor/newversionbasedlg.cpp b/LiteEditor/newversionbasedlg.cpp
new file mode 100644
index 00000000..44246d0b
--- /dev/null
+++ b/LiteEditor/newversionbasedlg.cpp
@@ -0,0 +1,82 @@
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//
+// copyright : (C) 2008 by Eran Ifrah
+// file name : newversionbasedlg.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 Mar 19 2008)
+// http://www.wxformbuilder.org/
+//
+// PLEASE DO "NOT" EDIT THIS FILE!
+///////////////////////////////////////////////////////////////////////////
+
+#include "newversionbasedlg.h"
+
+///////////////////////////////////////////////////////////////////////////
+
+NewVersionBaseDlg::NewVersionBaseDlg( 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* mainSizer;
+ mainSizer = new wxBoxSizer( wxVERTICAL );
+
+ m_staticText = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
+ m_staticText->Wrap( -1 );
+ mainSizer->Add( m_staticText, 1, wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5 );
+
+ m_hyperlink1 = new wxHyperlinkCtrl( this, wxID_ANY, wxT("Show me whats new !"), wxT("http://www.wxformbuilder.org"), wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
+ mainSizer->Add( m_hyperlink1, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
+
+ m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
+ mainSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
+
+ wxBoxSizer* bSizer2;
+ bSizer2 = new wxBoxSizer( wxHORIZONTAL );
+
+ m_buttonOk = new wxButton( this, wxID_OK, wxT("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
+ m_buttonOk->SetDefault();
+ bSizer2->Add( m_buttonOk, 0, wxALL, 5 );
+
+ m_buttonCancel = new wxButton( this, wxID_CANCEL, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer2->Add( m_buttonCancel, 0, wxALL, 5 );
+
+ mainSizer->Add( bSizer2, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
+
+ this->SetSizer( mainSizer );
+ this->Layout();
+ mainSizer->Fit( this );
+
+ this->Centre( wxBOTH );
+
+ // Connect Events
+ m_buttonOk->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( NewVersionBaseDlg::OnOk ), NULL, this );
+ m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( NewVersionBaseDlg::OnCancel ), NULL, this );
+}
+
+NewVersionBaseDlg::~NewVersionBaseDlg()
+{
+ // Disconnect Events
+ m_buttonOk->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( NewVersionBaseDlg::OnOk ), NULL, this );
+ m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( NewVersionBaseDlg::OnCancel ), NULL, this );
+}