public PrinterConfigurationWidget()
		{
			SetDisplayAttributes();

			HAnchor = Agg.UI.HAnchor.ParentLeftRight;
			VAnchor = Agg.UI.VAnchor.FitToChildren;

			FlowLayoutWidget mainLayoutContainer = new FlowLayoutWidget(FlowDirection.TopToBottom);
			mainLayoutContainer.HAnchor = Agg.UI.HAnchor.ParentLeftRight;
			mainLayoutContainer.VAnchor = Agg.UI.VAnchor.FitToChildren;
			mainLayoutContainer.Padding = new BorderDouble(top: 10);

			HardwareSettingsWidget hardwareGroupbox = new HardwareSettingsWidget();
			mainLayoutContainer.AddChild(hardwareGroupbox);

			CloudSettingsWidget cloudGroupbox = new CloudSettingsWidget();
			mainLayoutContainer.AddChild(cloudGroupbox);

			ApplicationSettingsWidget applicationGroupbox = new ApplicationSettingsWidget();
			mainLayoutContainer.AddChild(applicationGroupbox);

			AddChild(mainLayoutContainer);

			AddHandlers();
			//SetVisibleControls();
		}
		public PrinterConfigurationWidget()
		{
			SetDisplayAttributes();

			HAnchor = Agg.UI.HAnchor.ParentLeftRight;
			VAnchor = Agg.UI.VAnchor.FitToChildren;

			FlowLayoutWidget mainLayoutContainer = new FlowLayoutWidget(FlowDirection.TopToBottom);
			mainLayoutContainer.HAnchor = Agg.UI.HAnchor.ParentLeftRight;
			mainLayoutContainer.VAnchor = Agg.UI.VAnchor.FitToChildren;
			mainLayoutContainer.Padding = new BorderDouble(top: 10);

			if (!ActiveSliceSettings.Instance.GetValue<bool>(SettingsKey.has_hardware_leveling))
			{
				mainLayoutContainer.AddChild(new CalibrationSettingsWidget());
			}

			mainLayoutContainer.AddChild(new HardwareSettingsWidget());

			CloudSettingsWidget cloudGroupbox = new CloudSettingsWidget();
			mainLayoutContainer.AddChild(cloudGroupbox);

			ApplicationSettingsWidget applicationGroupbox = new ApplicationSettingsWidget();
			mainLayoutContainer.AddChild(applicationGroupbox);

			AddChild(mainLayoutContainer);

			AddHandlers();
			//SetVisibleControls();
		}