From kde-core-devel Tue Aug 24 14:37:10 1999 From: Espen Sand Date: Tue, 24 Aug 1999 14:37:10 +0000 To: kde-core-devel Subject: Standard dialog margins. X-MARC-Message: https://marc.info/?l=kde-core-devel&m=93550605811217 I have in khexedit used a header file with the constants #define OUTER_SEP 6 #define INNER_SEP 6 which I have used everywhere in the dialogs like: QVBoxLayout *topLayout = new QVBoxLayout( this, OUTER_SEP, INNER_SEP ); I have made a number of changes to the kedit dialog boxes (comitted) where I have used the same values. I would very much like to see these values in a central header file so that they are used everywhere. Even better would it be if the values can be provided by an object (kapp or something) -something like "outerDialogSizeHint()" and "innerDialogSizeHint("). Then the values can be configured (perhaps not from the control center but perhaps from a lower level tool) If these values were used by everybody when designing dialogs, a lot could be gained making the dialogs better to look at. Today there are so many (hardcoded) margins that differ from each other. Where should such values be defined? I can do it if I get some directions for where and how. And: What about making a KStdButtonBox where Cancel is to the left (and can not be changed)? -- Espen Sand