Back to index

kdeartwork  4.3.2
Public Member Functions | Protected Member Functions | Private Slots | Private Attributes
KFountainSetup Class Reference

#include <fountain.h>

Collaboration diagram for KFountainSetup:
Collaboration graph

List of all members.

Public Member Functions

 KFountainSetup (QWidget *parent=0L)

Protected Member Functions

void readSettings ()

Private Slots

void slotOkPressed ()
void aboutPressed ()

Private Attributes

float size
float stars

Detailed Description

Definition at line 120 of file fountain.h.

Constructor & Destructor Documentation

KFountainSetup::KFountainSetup ( QWidget *  parent = 0L)


Definition at line 68 of file fountain.cpp.

       : QDialog( parent)

       //QLabel *label;
       //QPushButton *button;

       //setCaption( i18n("Setup Particle Fountain") );

       //QVBoxLayout *tl = new QVBoxLayout(this, 10);
       //QHBoxLayout *tl1 = new QHBoxLayout;

       //QVBoxLayout *tl11 = new QVBoxLayout(5);

       //label = new QLabel( i18n("No options here yet...:"), this );

       //preview = new QWidget( this );
       preview->setFixedSize( 220, 170 );
            QPalette palette;
            palette.setColor( preview->backgroundRole(), Qt::black );
            preview->setPalette( palette );
       preview->show();    // otherwise saver does not get correct size
       saver = new KFountainSaver( preview->winId() );

       //KButtonBox *bbox = new KButtonBox(this);
       connect( PushButton1, SIGNAL( clicked() ), SLOT( slotOkPressed() ) );
       connect( PushButton2, SIGNAL( clicked() ), SLOT( reject() ) );
       connect( PushButton3, SIGNAL( clicked() ), SLOT( aboutPressed() ) );
       connect(  SpinBox1, SIGNAL( valueChanged(int)), saver, SLOT( updateSize(int)));
       connect( RadioButton1, SIGNAL( toggled(bool)), saver, SLOT( doStars(bool)));


Here is the call graph for this function:

Member Function Documentation

void KFountainSetup::aboutPressed ( ) [private, slot]

Definition at line 153 of file fountain.cpp.

        i18n("<h3>Particle Fountain</h3>\n<p>Particle Fountain Screen Saver for KDE</p>\nCopyright (c)  Ian Reinhart Geiser 2001<br>\n\n<p>KConfig code and KScreenSaver \"Setup...\" improvements by Nick Betcher <> 2001</p>"));

Here is the caller graph for this function:

void KFountainSetup::readSettings ( ) [protected]

Definition at line 114 of file fountain.cpp.

       KConfig config("kssfountainrc", KConfig::NoGlobals);
       KConfigGroup grp ="Settings");

       bool boolval = grp.readEntry( "Stars", false );
       if (boolval) {
       } else {

       int starammount = grp.readEntry("StarSize", 75);


Here is the caller graph for this function:

void KFountainSetup::slotOkPressed ( ) [private, slot]

Definition at line 132 of file fountain.cpp.

       KConfig _config("kssfountainrc", KConfig::NoGlobals);
       KConfigGroup config(&_config, "Settings" );

       if (RadioButton1->isChecked() == true)
              config.writeEntry( "Stars", true );
       } else {
              if (RadioButton1_2->isChecked() == true)
                     config.writeEntry( "Stars", false );
       config.writeEntry( "StarSize", SpinBox1->value() );



Here is the caller graph for this function:

Member Data Documentation

Definition at line 133 of file fountain.h.

float KFountainSetup::size [private]

Definition at line 134 of file fountain.h.

float KFountainSetup::stars [private]

Definition at line 135 of file fountain.h.

The documentation for this class was generated from the following files: