Problems w/ Dialog Editor

Steven Suson suson at TuckerEnergy.com
Tue Apr 18 00:31:42 BST 2000


Greetings Richard,

    My compliments. I have created a patch, built my kdk RPM, installed it, and it does in
fact fix the bug. Took a quick glance at the second problem, and couldn't see anything. I'm
sending along both the patch file, and the .kdevdlg file as attachments, so perhaps you'll
be able to give that dialog a try. I will also be sending the patch file along to
2862 at bugs.kde.com. Your help is much appreciated.

Steven Suson
"Keep the faith."


Richard Dale wrote:

> Steven
>
> On Fri, 14 Apr 2000, you wrote:
> > Richard,
> >
> >     What should I do to ensure that this gets into the 1.2 release of KDevelop? Should
> > I (or you, for that matter) submit this as a patch that fixes the bug?
>
> I'd send an email to '2862.bugs.kde.com' with the code for the fix (in diff
> format maybe), and confirm that you've tested it.
>
> >     Also, do you happen to notice why at some point, it would drop adding the suffix
> > (demonstrated by my 2nd kdevdlg file), and since this only happened when I added a new
> > widget, I suspect the entire file would be needed to demonstrate the bug...
>
> I would submit this as a separate report - I wonder if this is also the
> cause of your problem with dialogues only opening once per KDevelop session?
>
> I had trouble with your long dialogue examples because kmail doesn't support
> shift click to extend a text selection, and I just couldn't manage to copy and
> paste a dialog out of the mail to try it.
>
> -- Richard
-------------- next part --------------
--- kdevelop/kdevelop/kdlgedit/kdlgedit.cpp.~1~	Sat Feb 26 17:30:05 2000
+++ kdevelop/kdevelop/kdlgedit/kdlgedit.cpp	Mon Apr 17 12:10:48 2000
@@ -735,6 +735,7 @@
 void KDlgEdit::generateQSpinBox(KDlgItem_Widget *wid, QTextStream *stream,QString _parent)
 {
     KDlgPropertyBase* props = wid->getProps();
+    bool withi18n = ((CKDevelop*)parent())->getProject()->isKDEProject();
 
     props->dumpConstruct(stream, "QSpinBox", _parent);
     generateCommon(wid,stream,_parent);
@@ -746,6 +747,8 @@
     props->dumpIntPropCall(stream, "setValue", "Value");
 
     props->dumpBoolPropCall(stream, "setWrapping", "isWrapping", false);
+
+    props->dumpStringPropCall(stream, "setSpecialValueText", "SpecialValText", withi18n);
 
     *stream << "\n";
 }
-------------- next part --------------
// KDevelop Dialog Editor File (.kdevdlg)
// 
// Created by KDlgEdit Version 0.1alpha (C) 1999 by Pascal Krahmer
// Get KDevelop including KDlgEdit at "www.beast.de/kdevelop"
// 
data Information
{
   Filename="/home/suson/KProjects/kspecdisp/kspecdisp/quickscales.kdevdlg"
   KDevelopVersion="1.1"
   DlgEditVersion="0.1alpha"
   LastChanged="Mon Apr 17 18:15:44 2000"
}

data SessionManagement
{
   OpenedRoot_1="Appearance"
   OpenedRoot_2="C++ Code"
   OpenedRoot_3="General"
   OpenedRoot_4="Geometry"
   OpenedRootCount="4"
}

item QWidget
{
   ToolTip="Quick scale set dialog"
   Name="setscaledlg"
   IsHidden="true"
   IsEnabled="true"
   VarName="this"
   AcceptsDrops="false"
   HasFocus="false"
   X="0"
   Y="0"
   Width="490"
   Height="130"
   MinWidth="0"
   MinHeight="0"
   IsFixedSize="true"

   item QLabel
   {
      Name="titlelbl"
      IsHidden="false"
      IsEnabled="true"
      VarName="QLabel_1"
      AcceptsDrops="false"
      X="160"
      Y="10"
      Width="164"
      Height="21"
      MinWidth="0"
      MinHeight="0"
      Font=""lucidabright" "18" "75" "TRUE""
      Text="Quick Set Scales"
      isAutoResize="true"
   }

   item QLabel
   {
      Name="lowscalelbl"
      IsHidden="false"
      IsEnabled="true"
      VarName="QLabel_2"
      AcceptsDrops="false"
      HasFocus="false"
      X="10"
      Y="40"
      Width="100"
      Height="30"
      MinWidth="0"
      MinHeight="0"
      Font=""lucidatypewriter" "14" "75" "TRUE""
      Text="Low Scale"
      Buddy="lowspinbox"
      isAutoResize="false"
   }

   item QSpinBox
   {
      QuickHelp="Sets the low scale value\nfor both spectrum & analyzer"
      ToolTip="Sets low scale"
      Name="lowspinbox"
      IsHidden="false"
      IsEnabled="true"
      VarName="QSpinBox_1"
      AcceptsDrops="false"
      HasFocus="false"
      X="110"
      Y="40"
      Width="110"
      Height="30"
      MinWidth="0"
      MinHeight="0"
      Font=""fixed" "12" "50" "FALSE""
      Suffix=" CPS"
      MinValue="-1"
      MaxValue="990"
      isWrapping="true"
      SpecialValText="Auto"
   }

   item QLabel
   {
      Name="highscalelbl"
      IsHidden="false"
      IsEnabled="true"
      VarName="QLabel_3"
      AcceptsDrops="false"
      HasFocus="false"
      X="250"
      Y="40"
      Width="90"
      Height="30"
      MinWidth="0"
      MinHeight="0"
      Font=""lucidatypewriter" "14" "75" "TRUE""
      Text="High Scale"
      Buddy="highspinbox"
      isAutoResize="false"
   }

   item QSpinBox
   {
      QuickHelp="Sets the high scale value\nfor both spectrum & analyzer"
      ToolTip="Sets high scale"
      Name="highspinbox"
      IsHidden="false"
      IsEnabled="true"
      VarName="QSpinBox_2"
      AcceptsDrops="false"
      HasFocus="false"
      X="350"
      Y="40"
      Width="110"
      Height="30"
      MinWidth="0"
      MinHeight="0"
      Font=""fixed" "12" "50" "FALSE""
      Suffix=" CPS"
      MinValue="9"
      MaxValue="1000"
      isWrapping="true"
      SpecialValText="Auto"
   }

   item QPushButton
   {
      ToolTip="Completes dialog"
      Name="okbtn"
      IsHidden="false"
      IsEnabled="true"
      VarName="QPushButton_1"
      AcceptsDrops="false"
      HasFocus="false"
      X="30"
      Y="90"
      Width="100"
      Height="30"
      MinWidth="0"
      MinHeight="0"
      Font=""lucidatypewriter" "18" "75" "TRUE""
      Text="OK"
      isDefault="true"
      isAutoDefault="true"
      isToggleButton="false"
      isMenuButton="false"
      isAutoResize="false"
      isAutoRepeat="false"
   }

   item QPushButton
   {
      ToolTip="Cancels dialog"
      Name="cancelbtn"
      IsHidden="false"
      IsEnabled="true"
      VarName="QPushButton_2"
      AcceptsDrops="false"
      HasFocus="false"
      X="190"
      Y="90"
      Width="100"
      Height="30"
      MinWidth="0"
      MinHeight="0"
      Font=""lucidatypewriter" "18" "75" "TRUE""
      Text="Cancel"
      isDefault="false"
      isAutoDefault="false"
      isToggleButton="false"
      isMenuButton="false"
      isAutoResize="false"
      isAutoRepeat="false"
   }

   item QPushButton
   {
      ToolTip="Provides help for dialog"
      Name="hlpbtn"
      IsHidden="false"
      IsEnabled="true"
      VarName="QPushButton_3"
      AcceptsDrops="false"
      HasFocus="false"
      X="360"
      Y="90"
      Width="100"
      Height="30"
      MinWidth="0"
      MinHeight="0"
      Font=""lucidatypewriter" "18" "75" "TRUE""
      Text="Help"
      isDefault="false"
      isAutoDefault="false"
      isToggleButton="false"
      isMenuButton="false"
      isAutoResize="false"
      isAutoRepeat="false"
   }
}


More information about the KDevelop mailing list