Exemplo 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();
 }
Exemplo n.º 2
0
 public KPageWidgetItem AddPage(QWidget page, KConfigSkeleton config, string itemName)
 {
     return (KPageWidgetItem) interceptor.Invoke("addPage##$", "addPage(QWidget*, KConfigSkeleton*, const QString&)", typeof(KPageWidgetItem), typeof(QWidget), page, typeof(KConfigSkeleton), config, typeof(string), itemName);
 }
Exemplo n.º 3
0
 /// <remarks>
 /// <param> name="parent" - The parent of this object.  Even though the class
 ///  deletes itself the parent should be set so the dialog can be centered
 ///  with the application on the screen.
 /// </param><param> name="name" - The name of this object.  The name is used in determining if
 ///  there can be more than one dialog at a time.  Use names such as:
 ///  "Font Settings" or "Color Settings" and not just "Settings" in
 ///  applications where there is more than one dialog.
 /// </param><param> name="config" - Config object containing settings.
 ///    </param></remarks>        <short>   </short>
 public KConfigDialog(QWidget parent, string name, KConfigSkeleton config)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KConfigDialog#$#", "KConfigDialog(QWidget*, const QString&, KConfigSkeleton*)", typeof(void), typeof(QWidget), parent, typeof(string), name, typeof(KConfigSkeleton), config);
 }
Exemplo n.º 4
0
 /// <remarks>
 ///  Constructor.
 /// <param> name="parent" Dialog widget to manage
 /// </param><param> name="conf" Object that contains settings
 ///    </param></remarks>        <short>    Constructor.</short>
 public KConfigDialogManager(QWidget parent, KConfigSkeleton conf)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KConfigDialogManager##", "KConfigDialogManager(QWidget*, KConfigSkeleton*)", typeof(void), typeof(QWidget), parent, typeof(KConfigSkeleton), conf);
 }