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
[legend]

List of all members.

Public Member Functions

 KFountainSetup (QWidget *parent=0L)

Protected Member Functions

void readSettings ()

Private Slots

void slotOkPressed ()
void aboutPressed ()

Private Attributes

KFountainSaversaver
float size
float stars

Detailed Description

Definition at line 120 of file fountain.h.


Constructor & Destructor Documentation

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

tl11->addWidget(label);;

Definition at line 68 of file fountain.cpp.

       : QDialog( parent)
{
       setupUi(this);
       setModal(true);
       readSettings();

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

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

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

       //QVBoxLayout *tl11 = new QVBoxLayout(5);
       //tl1->addLayout(tl11);

       //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->setAutoFillBackground(true);
        }
       preview->show();    // otherwise saver does not get correct size
       saver = new KFountainSaver( preview->winId() );
       //tl1->addWidget(preview);

       //KButtonBox *bbox = new KButtonBox(this);
       //bbox->addStretch(1);
;
       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.

{
    KMessageBox::about(this,
        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 <nbetcher@usinternet.com> 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 = config.group("Settings");

       bool boolval = grp.readEntry( "Stars", false );
       if (boolval) {
              RadioButton1->setChecked(true);
       } else {
                     RadioButton1_2->setChecked(true);
       }

       int starammount = grp.readEntry("StarSize", 75);
       SpinBox1->setValue(starammount);

}

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() );

       config.sync();

       accept();
}

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: