File: InstallVerifyFrame_Base.cpp

package info (click to toggle)
freedink-dfarc 3.12-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,680 kB
  • ctags: 387
  • sloc: sh: 4,127; cpp: 2,550; makefile: 110
file content (65 lines) | stat: -rwxr-xr-x 2,398 bytes parent folder | download | duplicates (3)
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
// -*- C++ -*-
//
// generated by wxGlade b221e052e911 on Thu Oct 16 22:01:18 2014
//
// Example for compiling a single file project under Linux using g++:
//  g++ MyApp.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp
//
// Example for compiling a multi file project under Linux using g++:
//  g++ main.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp Dialog1.cpp Frame1.cpp
//

#include "InstallVerifyFrame_Base.h"

// begin wxGlade: ::extracode
// end wxGlade



InstallVerifyFrame_Base::InstallVerifyFrame_Base(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):
    wxDialog(parent, id, title, pos, size, wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxTHICK_FRAME)
{
    // begin wxGlade: InstallVerifyFrame_Base::InstallVerifyFrame_Base
    mDmodDescription = new wxTextCtrl(this, wxID_ANY, _("Preparing..."), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY);
    const wxString mDestdirBox_choices[] = {
        _("Main Dink directory"),
        _("Additional D-Mods directory")
    };
    mDestdirBox = new wxRadioBox(this, wxID_ANY, _("Where do you want to install this D-Mod?"), wxDefaultPosition, wxDefaultSize, 2, mDestdirBox_choices, 0, wxRA_SPECIFY_ROWS);
    mInstallButton = new wxButton(this, wxID_OK, _("Install"));
    mCancelButton = new wxButton(this, wxID_CANCEL, wxEmptyString);

    set_properties();
    do_layout();
    // end wxGlade
}


void InstallVerifyFrame_Base::set_properties()
{
    // begin wxGlade: InstallVerifyFrame_Base::set_properties
    SetTitle(_("DFArc - Install D-Mod"));
    mDmodDescription->SetMinSize(wxSize(390,150));
    mDestdirBox->SetSelection(0);
    mInstallButton->SetFocus();
    mInstallButton->SetDefault();
    // end wxGlade
}


void InstallVerifyFrame_Base::do_layout()
{
    // begin wxGlade: InstallVerifyFrame_Base::do_layout
    wxBoxSizer* lVerticalSizer = new wxBoxSizer(wxVERTICAL);
    wxBoxSizer* lHorizontalSizer = new wxBoxSizer(wxHORIZONTAL);
    lVerticalSizer->Add(mDmodDescription, 1, wxLEFT|wxRIGHT|wxTOP|wxEXPAND, 5);
    lVerticalSizer->Add(mDestdirBox, 0, wxEXPAND, 0);
    lHorizontalSizer->Add(mInstallButton, 0, 0, 0);
    lHorizontalSizer->Add(mCancelButton, 0, wxLEFT, 5);
    lVerticalSizer->Add(lHorizontalSizer, 0, wxALL|wxEXPAND, 5);
    SetSizer(lVerticalSizer);
    lVerticalSizer->Fit(this);
    Layout();
    // end wxGlade
}