Esempio n. 1
0
 public virtual void ShowConfigurationInterface()
 {
     string dialogId = applet.Id() + "settings" + applet.Name;
     string windowTitle = KDE.I18nc("@title:window", applet.Name + " Settings");
     nullManager = new KConfigSkeleton();
     dialog = new KConfigDialog(null, dialogId, nullManager);
     dialog.SetFaceType(KPageDialog.FaceType.Auto);
     dialog.SetWindowTitle(windowTitle);
     dialog.SetAttribute(Qt.WidgetAttribute.WA_DeleteOnClose, true);
     CreateConfigurationInterface(dialog);
     //TODO: would be nice to not show dialog if there are no pages added?
     Connect(dialog, SIGNAL("finished()"), nullManager, SLOT("deleteLater()"));
     //TODO: Apply button does not correctly work for now, so do not show it
     dialog.ShowButton(KDialog.ButtonCode.Apply, false);
     dialog.Show();
 }
Esempio n. 2
0
 /// <remarks>
 ///  This method should be called after a scripting applet has added
 ///  its own pages to a configuration dialog
 /// </remarks>        <short>    This method should be called after a scripting applet has added  its own pages to a configuration dialog </short>
 protected void AddStandardConfigurationPages(KConfigDialog dialog)
 {
     interceptor.Invoke("addStandardConfigurationPages#", "addStandardConfigurationPages(KConfigDialog*)", typeof(void), typeof(KConfigDialog), dialog);
 }
Esempio n. 3
0
 /// <remarks>
 ///  Reimplement this method so provide a configuration interface,
 ///  parented to the supplied widget. Ownership of the widgets is passed
 ///  to the parent widget.
 /// <param> name="parent" the dialog which is the parent of the configuration
 ///                widgets
 ///          </param></remarks>        <short>    Reimplement this method so provide a configuration interface,  parented to the supplied widget.</short>
 public virtual void CreateConfigurationInterface(KConfigDialog parent)
 {
 }
Esempio n. 4
0
 public virtual void CreateConfigurationInterface(KConfigDialog parent)
 {
     interceptor.Invoke("createConfigurationInterface#", "createConfigurationInterface(KConfigDialog*)", typeof(void), typeof(KConfigDialog), parent);
 }