Class: QDA::GUI::MDIWorkArea

Inherits:
Wx::MDIParentFrame
  • Object
show all
Includes:
InspectorWindowManager
Defined in:
lib/weft/wxgui/workarea.rb

Instance Attribute Summary

Attributes included from InspectorWindowManager

#active_child

Instance Method Summary collapse

Methods included from InspectorWindowManager

#app, #close_all, #get_open_window, #get_open_windows, #launch_window, #notify, #proportional_size, #remember_layout, #remember_layouts, #remember_size, #restore_layout, #restore_layouts, #restore_size, #set_active_category

Methods included from Subscriber

#notify, #subscribe

Constructor Details

#initialize(weft_client) ⇒ MDIWorkArea

Returns a new instance of MDIWorkArea.



207
208
209
210
211
212
213
# File 'lib/weft/wxgui/workarea.rb', line 207

def initialize(weft_client)
  @client = weft_client
  @window_map = {}
  super(nil, -1, "Weft QDA")
  restore_size()
  subscribe(@client, :all)
end

Instance Method Details

#close_d_and_cObject



232
233
234
235
236
237
# File 'lib/weft/wxgui/workarea.rb', line 232

def close_d_and_c()
  return if not @sidebar
  @sidebar.remember_size()
  @sidebar.close()
  @sidebar = nil
end

#d_and_cObject



215
216
217
# File 'lib/weft/wxgui/workarea.rb', line 215

def d_and_c()
  @sidebar
end

#d_and_c_visible?Boolean

Returns:

  • (Boolean)


239
240
241
# File 'lib/weft/wxgui/workarea.rb', line 239

def d_and_c_visible?()
  @sidebar.shown?
end

#hide_allObject



243
244
245
246
# File 'lib/weft/wxgui/workarea.rb', line 243

def hide_all()
  hide_d_and_c()
  self.hide()
end

#hide_d_and_cObject



228
229
230
# File 'lib/weft/wxgui/workarea.rb', line 228

def hide_d_and_c()
  @sidebar.hide() if @sidebar
end

#show_d_and_cObject

display the listings of documents and categories



220
221
222
223
224
225
226
# File 'lib/weft/wxgui/workarea.rb', line 220

def show_d_and_c()
  if not @sidebar
    # see sidebar.rb
		@sidebar = SideBar.new( self, @client )
  end
  @sidebar.show()
end