38 wxPanel(parent, -1, wxDefaultPosition, size)
43 wxSize sizepanel(190,300);
44 wxPanel *panel =
this;
47 wxString lstOptions[2];
48 lstOptions[0]= wxString(
"General options",wxConvUTF8);
49 lstOptions[1]= wxString(
"Detail options",wxConvUTF8);
50 _radioboxBullEyeGenOpt =
new wxRadioBox(panel, -1, wxString(
"General/Detail options",wxConvUTF8), wxDefaultPosition, wxSize(200,45), 2 , lstOptions, 2, wxRA_SPECIFY_COLS);
62 _sliderBullEyeAngle =
new wxSlider( panel , -1 ,0,0,180, wxDefaultPosition, wxSize(200,35), wxSL_HORIZONTAL|wxSL_LABELS, wxDefaultValidator);
64 wxFlexGridSizer * sizerGeneralOptions =
new wxFlexGridSizer(10);
66 wxFlexGridSizer * sizerGeneralOptionsA =
new wxFlexGridSizer(1);
67 wxFlexGridSizer * sizerGeneralOptionsB =
new wxFlexGridSizer(1);
68 wxFlexGridSizer * sizerGeneralOptionsC =
new wxFlexGridSizer(1);
69 sizerGeneralOptionsA -> Add(
new wxStaticText(panel,-1,_T(
"Crowns")) , 1, wxGROW );
71 sizerGeneralOptionsB -> Add(
new wxStaticText(panel,-1,_T(
"Sections")) , 1, wxGROW );
73 sizerGeneralOptionsC -> Add(
new wxStaticText(panel,-1,_T(
" Angle")) , 1, wxGROW );
76 sizerGeneralOptions -> Add( sizerGeneralOptionsA , 1 );
77 sizerGeneralOptions -> Add(
new wxStaticText(panel,-1,_T(
" ")) , 1, wxGROW );
78 sizerGeneralOptions -> Add( sizerGeneralOptionsB , 1 );
79 sizerGeneralOptions -> Add(
new wxStaticText(panel,-1,_T(
" ")) , 1, wxGROW );
80 sizerGeneralOptions -> Add( sizerGeneralOptionsC , 1 );
83 wxSpinCtrl *tmpSpinSection;
84 wxSlider *tmpSliderRadio;
85 wxSlider *tmpSliderAng;
87 wxFlexGridSizer * sizerDetailOptions =
new wxFlexGridSizer(6);
89 sizerDetailOptions -> Add(
new wxStaticText(panel,-1,_T(
"Crown ")) , 1, wxGROW );
90 sizerDetailOptions -> Add(
new wxStaticText(panel,-1,_T(
" Sections ")) , 1, wxGROW );
91 sizerDetailOptions -> Add(
new wxStaticText(panel,-1,_T(
" ")) , 1, wxGROW );
92 sizerDetailOptions -> Add(
new wxStaticText(panel,-1,_T(
" Radio %")) , 1, wxGROW );
93 sizerDetailOptions -> Add(
new wxStaticText(panel,-1,_T(
" ")) , 1, wxGROW );
94 sizerDetailOptions -> Add(
new wxStaticText(panel,-1,_T(
" Angle")) , 1, wxGROW );
99 tmpSpinSection =
new wxSpinCtrl( panel , -1,_T(
""),wxDefaultPosition, wxSize(40,20) );
100 tmpSliderRadio =
new wxSlider( panel , -1 ,0,0,100, wxDefaultPosition, wxSize(110,35), wxSL_HORIZONTAL|wxSL_LABELS, wxDefaultValidator);
101 tmpSliderAng =
new wxSlider( panel , -1 ,0,0,180, wxDefaultPosition, wxSize(200,35), wxSL_HORIZONTAL|wxSL_LABELS, wxDefaultValidator);
105 tmpwxstring.Printf(_T(
" %d. "),i+1);
106 sizerDetailOptions -> Add(
new wxStaticText(panel,-1,tmpwxstring) , 1, wxGROW );
107 sizerDetailOptions -> Add( tmpSpinSection, 1 );
108 sizerDetailOptions -> Add(
new wxStaticText(panel,-1,_T(
" ")) , 1, wxGROW );
109 sizerDetailOptions -> Add( tmpSliderRadio, 1, wxGROW );
110 sizerDetailOptions -> Add(
new wxStaticText(panel,-1,_T(
" ")) , 1, wxGROW );
111 sizerDetailOptions -> Add( tmpSliderAng, 1, wxGROW );
113 tmpSpinSection -> SetValue(5);
114 tmpSliderRadio -> SetValue( 100-(
double)((i)*100.0/_maxLevels) );
115 tmpSliderAng -> SetValue(0);
126 wxFlexGridSizer * sizer =
new wxFlexGridSizer(1);
127 sizer -> Add(
new wxStaticText(panel,-1,_T(
"")) , 1, wxGROW );
128 sizer -> Add(
new wxStaticText(panel,-1,_T(
"")) , 1, wxGROW );
130 sizer -> Add(
new wxStaticText(panel,-1,_T(
"")) , 1, wxGROW );
131 sizer -> Add(
new wxStaticText(panel,-1,_T(
" -- Bull Eye general options --")) , 1, wxGROW );
132 sizer -> Add(
new wxStaticText(panel,-1,_T(
"")) , 1, wxGROW );
133 sizer -> Add( sizerGeneralOptions , 1, wxGROW );
134 sizer -> Add(
new wxStaticText(panel,-1,_T(
"")) , 1, wxGROW );
135 sizer -> Add(
new wxStaticText(panel,-1,_T(
"")) , 1, wxGROW );
136 sizer -> Add(
new wxStaticText(panel,-1,_T(
" -- Bull Eye detail options --")) , 1, wxGROW );
137 sizer -> Add(
new wxStaticText(panel,-1,_T(
"")) , 1, wxGROW );
138 sizer -> Add( sizerDetailOptions , 1, wxGROW );
143 panel->SetSizer( sizer );
144 panel->SetSize( sizepanel );
145 panel->SetAutoLayout(
true );
179 ok = (i < spinSelec);
221 result = 100.0 * (nCrown+1)/sizeCrowns ;
240 return angle + section*deltaSec ;
247 return 360.0/numOfSec;