Revision 566039
Go back to digest for 30th July 2006Other in Utilities
Update *every* dialog to be KDE-standards compliant. The biggest visible change is probably slightly different margins/spacing, but it uses KDialogBase to automatically apply standard behavior.
These are the changed dialogs:
-Ingredient Parser
-Category selection dialog
-Author selection dialog
-All dialogs for entering in a new ingredient, prep method, category, weight, etc.
-Shopping list (this was also updated to use the unit abbreviation setting)
-Diet results
-Rating editor
-Measurement converter
-Database import dialogs
-Resize recipe dialog
-Load USDA data dialog
-Border selection dialog
-And probably a few I forgot...
All dialogs now inherit KDialogBase instead of QWidget/KDialog/QDialog. KDialogBase automatically creates buttons like "OK" and "Cancel" and places them either along the bottom or right and also takes care of signals generated by these buttons. It adds other handy/standard behavior such as making "Esc" close the dialog, uses standard keyboard shortcuts, and follows the KDE setting of whether or not buttons display icons on them.
Basically, it adds standard KDE dialog behavior with no effort on my part and with less code ;-) (around 500 less lines total)
File Changes
- /trunk/extragear/utils/krecipes
- /ChangeLog
- /src/dialogs/borderdialog.cpp
- /src/dialogs/borderdialog.h
- /src/dialogs/conversiondialog.cpp
- /src/dialogs/conversiondialog.h
- /src/dialogs/createcategorydialog.cpp
- /src/dialogs/createcategorydialog.h
- /src/dialogs/createelementdialog.cpp
- /src/dialogs/createelementdialog.h
- /src/dialogs/createingredientweightdialog.cpp
- /src/dialogs/createingredientweightdialog.h
- /src/dialogs/createpropertydialog.cpp
- /src/dialogs/createpropertydialog.h
- /src/dialogs/createunitdialog.cpp
- /src/dialogs/createunitdialog.h
- /src/dialogs/dbimportdialog.cpp
- /src/dialogs/dbimportdialog.h
- /src/dialogs/dependanciesdialog.cpp
- /src/dialogs/dependanciesdialog.h
- /src/dialogs/dietviewdialog.cpp
- /src/dialogs/dietviewdialog.h
- /src/dialogs/dietwizarddialog.cpp
- /src/dialogs/editratingdialog.cpp
- /src/dialogs/editratingdialog.h
- /src/dialogs/ingredientparserdialog.cpp
- /src/dialogs/ingredientparserdialog.h
- /src/dialogs/recipeimportdialog.cpp
- /src/dialogs/recipeimportdialog.h
- /src/dialogs/refineshoppinglistdialog.cpp
- /src/dialogs/refineshoppinglistdialog.h
- /src/dialogs/resizerecipedialog.cpp
- /src/dialogs/resizerecipedialog.h
- /src/dialogs/selectauthorsdialog.cpp
- /src/dialogs/selectauthorsdialog.h
- /src/dialogs/selectcategoriesdialog.cpp
- /src/dialogs/selectcategoriesdialog.h
- /src/dialogs/selectpropertydialog.cpp
- /src/dialogs/selectpropertydialog.h
- /src/dialogs/selectunitdialog.cpp
- /src/dialogs/selectunitdialog.h
- /src/dialogs/shoppinglistviewdialog.cpp
- /src/dialogs/shoppinglistviewdialog.h
- /src/dialogs/usdadatadialog.cpp
- /src/dialogs/usdadatadialog.h
- /src/exporters/htmlexporter.cpp