class CentralWidget < Qt::Splitter

  attr_reader :control_widget

  def initialize(parent = nil)
    super(Qt::Horizontal, parent)

    set_children_collapsible false


    @control_widget = ControlWidget.new
    add_widget @control_widget

    @preview_widget = PreviewWidget.new
    add_widget @preview_widget

    set_stretch_factor(0, 0)
    set_stretch_factor(1, 1)

    cw_width = 300
    set_sizes([cw_width, width - cw_width - handle_width])
  end

end
