Form1 Form1 0 0 489 414 Set wallpaper @Array.setValue(programs,0,kuickshow) @Array.setValue(programs,1,kview) @Array.setValue(programs,2,gimp) @fileSelector.setText(@dcop(kdesktop,KBackgroundIface,"currentWallpaper(int)",0)) @switch(@dcop(kdesktop,KDesktopIface,"isIconsEnabled()")) @case(1) @showIcons.setChecked(true) @case(0) @showIcons.setChecked(false) @end @position.setCurrentItem(6) Label5 20 10 70 20 Image file: preview 180 80 128 128 GroupBoxPanel true information 10 240 440 20 Information: Information: @exec(file -b "@fileSelector.text") Label7 20 330 124 20 Viewing application: Kuickshow KView The GIMP viewingApplication 150 330 130 23 cancelButton 410 380 66 25 &Cancel viewButton 330 380 66 25 &View @Array.value(programs,@viewingApplication.currentItem) "@fileSelector.text" Label8 10 300 120 20 Wallpaper position: None Centered Tiled Centered tiled Centered maxpect Tiled maxpect Scaled Centered auto fit position 150 300 110 23 showIcons 300 330 170 20 Show icons on desktop false true applySettings 360 140 32 32 @dcop(kdesktop,KDesktopIface,"setIconsEnabled(bool)",@showIcons) @dcop(kdesktop,KBackgroundIface,"setWallpaper(QString,int)", @fileSelector.text,@position.currentItem) okButton 180 380 66 25 &OK true @applySettings applyButton 250 380 66 25 &Apply @applySettings fileSelector 90 10 300 25 StrongFocus *.jpg *.png|Images (*.jpg *.png) Choose background image fileSelector widgetTextChanged(const QString&) preview setWidgetText(const QString&) fileSelector widgetTextChanged(const QString&) information populate() fileSelector position viewingApplication showIcons okButton applyButton viewButton cancelButton