示例#1
0
void
BaseCommon_c::init()
{
  isoaglib_assert (!initialized());

  getSchedulerInstance().registerTask(mt_task, 0);
  // set configure values with call for config
  config_base (NULL, IsoAgLib::IdentModeImplement, 0 /* No individual PGN disabling */);
  // now let concrete specialized classes init their part...
  init_specialized();

  setInitialized();
}
示例#2
0
	/**
	 * Initializes the widget.
	 *
	 * This routine is called before the dialog is shown and the pre_show() is
	 * called. So the user can override the values set. This routine does the
	 * following:
	 * - If no widget available exit gives feedback it the widget must exist.
	 * - If a getter is defined we use to set value_ and the widget.
	 * - If no setter is defined we use the widget value to set value_.
	 *
	 * The function calls two functions
	 *  - init_generic which is to be used in the template subclass.
	 *  - init_specialized which is to be used in subclasses of the template
	 *     class. This way they can override this function without to use their
	 *     signature to inherit.
	 *
	 * @param window              The window containing the widget.
	 */
	void widget_init(twindow& window)
	{
		init_generic(window);
		init_specialized(window);
	}