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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
|
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
// copyright : (C) 2014 Eran Ifrah
// file name : uisettings.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 May 7 2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "uisettings.h"
///////////////////////////////////////////////////////////////////////////
uisettings::uisettings( 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 );
wxFlexGridSizer* fgSizer1;
fgSizer1 = new wxFlexGridSizer( 0, 3, 0, 0 );
fgSizer1->AddGrowableCol( 1 );
fgSizer1->SetFlexibleDirection( wxBOTH );
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
m_staticText_path_gprog = new wxStaticText( this, wxID_ANY, _("Select path for Gprof:"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText_path_gprog->Wrap( -1 );
fgSizer1->Add( m_staticText_path_gprog, 1, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
m_textCtrl_path_gprof = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 300,-1 ), wxTE_READONLY );
fgSizer1->Add( m_textCtrl_path_gprof, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP, 5 );
m_button_select_gprof = new wxButton( this, wxID_ANY, _("Select..."), wxDefaultPosition, wxDefaultSize, 0 );
fgSizer1->Add( m_button_select_gprof, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
m_staticText_path_dot = new wxStaticText( this, wxID_ANY, _("Select path for Dot:"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText_path_dot->Wrap( -1 );
fgSizer1->Add( m_staticText_path_dot, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
m_textCtrl_path_dot = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 300,-1 ), wxTE_READONLY );
fgSizer1->Add( m_textCtrl_path_dot, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP, 5 );
m_button_select_dot = new wxButton( this, wxID_ANY, _("Select..."), wxDefaultPosition, wxDefaultSize, 0 );
fgSizer1->Add( m_button_select_dot, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
mainSizer->Add( fgSizer1, 0, wxEXPAND|wxALL, 5 );
wxStaticBoxSizer* sbSizer;
sbSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Settings for CALL graph") ), wxVERTICAL );
m_staticText5 = new wxStaticText( this, wxID_ANY, _("Resolutions:"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText5->Wrap( -1 );
sbSizer->Add( m_staticText5, 0, wxALL, 5 );
wxFlexGridSizer* fgSizer2;
fgSizer2 = new wxFlexGridSizer( 2, 2, 0, 0 );
fgSizer2->AddGrowableCol( 0 );
fgSizer2->AddGrowableRow( 0 );
fgSizer2->AddGrowableRow( 1 );
fgSizer2->SetFlexibleDirection( wxBOTH );
fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
m_staticText6 = new wxStaticText( this, wxID_ANY, _("Node threshold (0 - 100) [%]:"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText6->Wrap( -1 );
fgSizer2->Add( m_staticText6, 1, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
m_spinCtrl_treshold_node = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 0 );
fgSizer2->Add( m_spinCtrl_treshold_node, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
m_staticText7 = new wxStaticText( this, wxID_ANY, _("Edge threshold (0 - 100) [%]:"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText7->Wrap( -1 );
fgSizer2->Add( m_staticText7, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
m_spinCtrl_treshold_edge = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 100, 0 );
fgSizer2->Add( m_spinCtrl_treshold_edge, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
sbSizer->Add( fgSizer2, 0, wxEXPAND, 5 );
wxBoxSizer* bSizer1;
bSizer1 = new wxBoxSizer( wxVERTICAL );
m_staticline6 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
bSizer1->Add( m_staticline6, 0, wxEXPAND | wxALL, 5 );
m_staticText8 = new wxStaticText( this, wxID_ANY, _("Options:"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText8->Wrap( -1 );
bSizer1->Add( m_staticText8, 0, wxALL, 5 );
sbSizer->Add( bSizer1, 0, wxEXPAND, 5 );
wxFlexGridSizer* fgSizer3;
fgSizer3 = new wxFlexGridSizer( 0, 3, 0, 0 );
fgSizer3->AddGrowableCol( 2 );
fgSizer3->SetFlexibleDirection( wxBOTH );
fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
m_checkBox_Names = new wxCheckBox( this, wxID_ANY, _("Hide parameters"), wxDefaultPosition, wxDefaultSize, 0 );
fgSizer3->Add( m_checkBox_Names, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
m_staticText9 = new wxStaticText( this, wxID_ANY, _("Number of node load level colors (max 10):"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText9->Wrap( -1 );
fgSizer3->Add( m_staticText9, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
m_spinCtrl_colors_node = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 10, 1 );
fgSizer3->Add( m_spinCtrl_colors_node, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
m_checkBox_Parameters = new wxCheckBox( this, wxID_ANY, _("Strip parameters "), wxDefaultPosition, wxDefaultSize, 0 );
fgSizer3->Add( m_checkBox_Parameters, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
m_staticText10 = new wxStaticText( this, wxID_ANY, _("Number of edge load level colors (max 10):"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText10->Wrap( -1 );
fgSizer3->Add( m_staticText10, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
m_spinCtrl_colors_edge = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 1, 10, 1 );
fgSizer3->Add( m_spinCtrl_colors_edge, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
m_checkBox_Namespaces = new wxCheckBox( this, wxID_ANY, _("Hide namespaces"), wxDefaultPosition, wxDefaultSize, 0 );
fgSizer3->Add( m_checkBox_Namespaces, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
sbSizer->Add( fgSizer3, 1, wxEXPAND|wxBOTTOM, 5 );
mainSizer->Add( sbSizer, 1, wxEXPAND|wxALL, 5 );
wxBoxSizer* bSizer2;
bSizer2 = new wxBoxSizer( wxHORIZONTAL );
m_buttonOk = new wxButton( this, wxID_OK, _("&Ok"), wxDefaultPosition, wxDefaultSize, 0 );
m_buttonOk->SetDefault();
bSizer2->Add( m_buttonOk, 0, wxALL, 5 );
m_buttonCancel = new wxButton( this, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
bSizer2->Add( m_buttonCancel, 0, wxALL, 5 );
mainSizer->Add( bSizer2, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
this->SetSizer( mainSizer );
this->Layout();
mainSizer->Fit( this );
this->Centre( wxBOTH );
// Connect Events
m_button_select_gprof->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_select_gprof ), NULL, this );
m_button_select_dot->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_select_dot ), NULL, this );
m_checkBox_Names->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( uisettings::OnCheckName ), NULL, this );
m_checkBox_Parameters->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( uisettings::OnCheckParam ), NULL, this );
m_buttonOk->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_ok ), NULL, this );
m_buttonCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_cancel ), NULL, this );
}
uisettings::~uisettings()
{
// Disconnect Events
m_button_select_gprof->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_select_gprof ), NULL, this );
m_button_select_dot->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_select_dot ), NULL, this );
m_checkBox_Names->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( uisettings::OnCheckName ), NULL, this );
m_checkBox_Parameters->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( uisettings::OnCheckParam ), NULL, this );
m_buttonOk->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_ok ), NULL, this );
m_buttonCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( uisettings::OnButton_click_cancel ), NULL, this );
}
|