Class: Ruber::ProjectDialog

Inherits:
SettingsDialog show all
Defined in:
lib/ruber/project.rb

Overview

Subclass of SettingsDialog which differs from it only in that it overrides the widget_from_class method.

<bb>Note:</bb> since the overridden widget_from_class method passes the project as argument to the widget’s class #new method, the widget’s constructor must explicitly pass nil to the superclass method as parent. To avoid any issues, you can derive your widget from ProjectConfigWidget rather than from Qt::Widget. If, for some reason, you can’t do that (for example because you need to derive from another specialized widget), your widget constructor must do something like this (assuming that the base class’s construcor take the same argument as Qt::Widget’s):

class MyWidget < SomeWidget

  def initialize prj
    super()
    # do (if you want) something with prj
  end

end

Instance Attribute Summary

Attributes inherited from SettingsDialog

#container

Method Summary

Methods inherited from SettingsDialog

#exec, #initialize, #read_default_settings, #read_settings, #show, #store_settings, #widgets

Constructor Details

This class inherits a constructor from Ruber::SettingsDialog