-
Notifications
You must be signed in to change notification settings - Fork 0
/
forms.cpp
91 lines (65 loc) · 3.48 KB
/
forms.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "forms.h"
#include "tsnsoft.xpm"
///////////////////////////////////////////////////////////////////////////
Frame1::Frame1( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
this->SetSizeHints( wxSize( -1,-1 ), wxSize( -1,-1 ) );
wxBoxSizer* mainSizer;
mainSizer = new wxBoxSizer( wxVERTICAL );
m_staticText1 = new wxStaticText( this, wxID_ANY, wxT("Введите пароль:"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText1->Wrap( -1 );
mainSizer->Add( m_staticText1, 0, wxALL, 5 );
m_textCtrl1 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
mainSizer->Add( m_textCtrl1, 0, wxALL, 5 );
m_button1 = new wxButton( this, wxID_ANY, wxT("ВОЙТИ"), wxDefaultPosition, wxDefaultSize, 0 );
mainSizer->Add( m_button1, 0, wxALL, 5 );
this->SetSizer( mainSizer );
this->Layout();
this->Centre( wxBOTH );
// Connect Events
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( Frame1::OnCloseFrame ) );
m_button1->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Frame1::myClick ), NULL, this );
}
Frame1::~Frame1()
{
// Disconnect Events
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( Frame1::OnCloseFrame ) );
m_button1->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Frame1::myClick ), NULL, this );
}
Frame2::Frame2( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
this->SetSizeHints( wxSize( -1,-1 ), wxSize( -1,-1 ) );
wxBoxSizer* bSizer2;
bSizer2 = new wxBoxSizer( wxVERTICAL );
m_staticText1 = new wxStaticText( this, wxID_ANY, wxT("Пароль:"), wxDefaultPosition, wxSize( 100,-1 ), 0 );
m_staticText1->Wrap( -1 );
bSizer2->Add( m_staticText1, 0, wxALL, 5 );
m_bitmap1 = new wxStaticBitmap( this, wxID_ANY, wxBitmap( tsnsoft_xpm ), wxDefaultPosition, wxDefaultSize, 0 );
bSizer2->Add( m_bitmap1, 0, wxALL, 5 );
m_button1 = new wxButton( this, wxID_ANY, wxT("Назад"), wxDefaultPosition, wxDefaultSize, 0 );
bSizer2->Add( m_button1, 0, wxALL, 5 );
m_button2 = new wxButton( this, wxID_ANY, wxT("Выход"), wxDefaultPosition, wxDefaultSize, 0 );
bSizer2->Add( m_button2, 0, wxALL, 5 );
this->SetSizer( bSizer2 );
this->Layout();
this->Centre( wxBOTH );
// Connect Events
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( Frame2::OnCloseFrame ) );
this->Connect( wxEVT_SHOW, wxShowEventHandler( Frame2::OnShow ) );
m_button1->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Frame2::myClick ), NULL, this );
m_button2->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Frame2::myExit ), NULL, this );
}
Frame2::~Frame2()
{
// Disconnect Events
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( Frame2::OnCloseFrame ) );
this->Disconnect( wxEVT_SHOW, wxShowEventHandler( Frame2::OnShow ) );
m_button1->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Frame2::myClick ), NULL, this );
m_button2->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( Frame2::myExit ), NULL, this );
}