[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/uirtk
From:       Ian Reinhart Geiser <geiseri () kde ! org>
Date:       2004-03-17 22:04:34
Message-ID: 20040317220434.B77C899AC () office ! kde ! org
[Download RAW message or body]

CVS commit by geiseri: 

Okay, its good enough to do a few dialogs, but needs some TLC.

Here is the idea:
We need to get off the UI crackrock in a few apps, and the best way to 
do this IMHO is to use UI files. Big kicker is we have tons of older code 
laying arround that still uses C++ to do all the layout manually.  Now 
there are two choices 1) whip out designer and redo all this by hand, 
or 2) this approach.  What this does is converts your live C++ code into 
XML that Qt designer can eat.

To use just include uiextractor.h in your dialog. and when you have it 
setup as you like it then new UIExtractor( myWidget) where myWidget is 
the name of the widget you want to convert.

Now this is not yet perfect... in fact is screws up in some amusing ways 
at times.  Most notably with GridLayouts... im working on these still, 
but if anyone wants to help I wont complain.

CCMAIL: "Aaron J. Seigo" <aseigo@kde.org>


  A            Makefile.am   1.1
  A            hi16-app-uirtk.png   1.1
  A            hi32-app-uirtk.png   1.1
  A            main.cpp   1.1 [GPL (v2+)]
  A            mywidget.cpp   1.1 [GPL (v2+)]
  A            mywidget.h   1.1 [GPL (v2+)]
  A            uiextractor.cpp   1.1 [GPL (v2+)]
  A            uiextractor.h   1.1 [GPL (v2+)]
  A            uirtk.cpp   1.1 [GPL (v2+)]
  A            uirtk.desktop   1.1
  A            uirtk.h   1.1 [GPL (v2+)]
  A            uirtk.lsm   1.1
  A            uirtkui.rc   1.1
  A            widgetpreview.cpp   1.1 [GPL (v2+)]
  A            widgetpreview.h   1.1 [GPL (v2+)]
  A            tests/kdevelop.ui   1.1
  A            tests/layouttest.ui   1.1



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic