Friday, December 24 2004 @ 03:59 PM EST Contributed by: glosser
Following up on a story we posted Wednesday, we bring you the second part of Kommander tutorial, released today.
Last time, we introduced Kommander -- a development environment for easily creating graphical KDE applications. For demonstration purposes, we built a simple application, which we are now going to make fully functional by allowing it to communicate with KDE via DCOP.
Using DCOP
Our example application is growing in functionality fast, so now we'll add almost all the remaining widgets to the window. First, add a CloseButton called okButton and labeled "&OK", setting its "default" property to true. This will cause the button to become the default one, which is activated when Enter is pressed in the dialog box. Next, add an ExecButton called applyButton and set its text to "&Apply". Then, add a checkbox called "showIcons" with the text "Show icons on desktop", followed by a combo box called "position" and a text label with the text "Wallpaper position:" to accompany it. Double-click the position combo box to edit its contents and enter the following items: None, Centered, Tiled, Centered tiled, Centered maxpect, Tiled maxpect, Scaled, Centered auto fit. Preserve the order, as we will treat this combo box in a way similar to the viewingApplication combo box -- each item's position corresponds to a magic number that KDE uses to identify a particular wallpaper position.