Class: Findview
- Inherits:
-
TkFloatTitledFrame
- Object
- TkFrame
- TkBaseTitledFrame
- TkFloatTitledFrame
- Findview
- Defined in:
- ext/ae-editor/ae-editor.rb
Direct Known Subclasses
Constant Summary
Constants included from TkResizable
TkResizable::MIN_HEIGHT, TkResizable::MIN_WIDTH
Instance Attribute Summary
Attributes inherited from TkBaseTitledFrame
Instance Method Summary collapse
-
#initialize(_parent) ⇒ Findview
constructor
A new instance of Findview.
- #show ⇒ Object
Methods inherited from TkFloatTitledFrame
#head_buttons, #hide, #hide_if_visible, #on_arcadia, #on_close=, #show_grabbed, #title
Methods included from TkResizable
#resizing_do_move_obj, #resizing_do_press, #start_resizing, #stop_resizing
Methods included from TkMovable
#moving_do_move_obj, #moving_do_press, #start_moving, #stop_moving
Methods inherited from TkBaseTitledFrame
#add_fixed_button, #add_fixed_menu_button, #add_fixed_panel, #add_fixed_progress, #add_fixed_sep, #create_frame, #head_buttons, #menu_button, #visible?
Constructor Details
#initialize(_parent) ⇒ Findview
Returns a new instance of Findview.
6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 |
# File 'ext/ae-editor/ae-editor.rb', line 6247 def initialize(_parent) super(_parent) #stop_resizing y0 = 10 d = 23 TkLabel.new(self.frame, Arcadia.style('label')){ text Arcadia.text('ext.editor.search.label.find_what') place('x' => 8,'y' => y0,'height' => 19) } y0 = y0 + d # @e_what = Tk::BWidget::ComboBox.new(self.frame, Arcadia.style('combobox')){ @e_what = Arcadia.wf.combobox(self.frame){ # editable true justify 'left' # autocomplete 'true' # expand 'tab' exportselection true width 100 takefocus true place('relwidth' => 1, 'width'=>-16,'x' => 8,'y' => y0,'height' => 19) } @e_what.extend(TkInputThrow) # @e_what_entry = TkWinfo.children(@e_what)[0] # @e_what_entry.extend(TkInputThrow) y0 = y0 + d TkLabel.new(self.frame, Arcadia.style('label')){ text Arcadia.text('ext.editor.search.label.replace_with') place('x' => 8,'y' => y0,'height' => 19) } y0 = y0 + d # @e_with = Tk::BWidget::ComboBox.new(self.frame, Arcadia.style('combobox')){ @e_with = Arcadia.wf.combobox(self.frame){ # editable true justify 'left' # autocomplete 'true' # expand 'tab' exportselection true width 100 takefocus true place('relwidth' => 1, 'width'=>-16,'x' => 8,'y' => y0,'height' => 19) } @e_with.extend(TkInputThrow) # @e_with_entry = TkWinfo.children(@e_with)[0] # @e_with_entry.extend(TkInputThrow) y0 = y0 + d # @cb_reg = TkCheckButton.new(self.frame, Arcadia.style('checkbox')){|_cb_reg| @cb_reg = Arcadia.wf.(self.frame){|_cb_reg| text Arcadia.text('ext.editor.search.label.use_regexp') # justify 'left' variable TkVariable.new place('x' => 8,'y' => y0,'height' => 22) } y0 = y0 + d #@cb_back = TkCheckButton.new(self.frame, Arcadia.style('checkbox')){|_cb_reg| @cb_back = Arcadia.wf.(self.frame){|_cb_reg| text Arcadia.text('ext.editor.search.label.search_back') variable TkVariable.new # justify 'left' place('x' => 8,'y' => y0,'height' => 22) } y0 = y0 + d #@cb_ignore_case = TkCheckButton.new(self.frame, Arcadia.style('checkbox')){|_cb_reg| @cb_ignore_case = Arcadia.wf.(self.frame){|_cb_reg| text Arcadia.text('ext.editor.search.label.ignore_case') # justify 'left' variable TkVariable.new place('x' => 8,'y' => y0,'height' => 22) } y0 = y0 + d y0 = y0 + d y0 = y0 + d @buttons_frame = TkFrame.new(self.frame, Arcadia.style('panel')).pack('fill'=>'x', 'side'=>'bottom') #@b_replace_all = TkButton.new(@buttons_frame, Arcadia.style('button')){|_b_go| @b_replace_all = Arcadia.wf.(@buttons_frame){|_b_go| state 'disabled' # default 'disabled' text Arcadia.text('ext.editor.search.label.replace_all') # justify 'center' width 10 pack('side'=>'right','ipadx'=>5, 'padx'=>5) } # @b_replace = TkButton.new(@buttons_frame, Arcadia.style('button')){|_b_go| @b_replace = Arcadia.wf.(@buttons_frame){|_b_go| state 'disabled' # default 'disabled' text Arcadia.text('ext.editor.search.label.replace') # justify 'center' width 10 pack('side'=>'right','ipadx'=>5, 'padx'=>5) } # @b_go = TkButton.new(@buttons_frame, Arcadia.style('button')){|_b_go| @b_go = Arcadia.wf.(@buttons_frame){|_b_go| compound 'none' # default 'disabled' text Arcadia.text('ext.editor.search.label.find_next') # justify 'center' width 10 pack('side'=>'right','ipadx'=>5, 'padx'=>5) } #place('x'=>0,'y'=>0,'relheight'=> 1,'relwidth'=> 1) place('x'=>100,'y'=>100,'height'=> 240,'width'=> 310) end |
Instance Method Details
#show ⇒ Object
6365 6366 6367 6368 6369 6370 6371 6372 6373 |
# File 'ext/ae-editor/ae-editor.rb', line 6365 def show super self.focus @e_what.focus @e_what.select_throw @e_what.selection_range(0,'end') # @e_what_entry.select_throw # @e_what_entry.selection_range(0,'end') end |