Class: Findview

Inherits:
TkFloatTitledFrame show all
Defined in:
ext/ae-editor/ae-editor.rb

Direct Known Subclasses

Finder

Constant Summary

Constants included from TkResizable

TkResizable::MIN_HEIGHT, TkResizable::MIN_WIDTH

Instance Attribute Summary

Attributes inherited from TkBaseTitledFrame

#frame, #top

Instance Method Summary collapse

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.



6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
# File 'ext/ae-editor/ae-editor.rb', line 6132

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.checkbutton(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.checkbutton(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.checkbutton(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.button(@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.button(@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.button(@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

#showObject



6250
6251
6252
6253
6254
6255
6256
6257
6258
# File 'ext/ae-editor/ae-editor.rb', line 6250

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