Back to index

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

#include <wave.h>

Collaboration diagram for KWaveSetup:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 KWaveSetup (QWidget *parent=0L)
 ~KWaveSetup ()

Protected Member Functions

void readSettings ()

Private Slots

void slotOkPressed ()
void aboutPressed ()

Private Attributes

KWaveSaversaver
float size
float stars

Detailed Description

Definition at line 77 of file wave.h.


Constructor & Destructor Documentation

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

Definition at line 68 of file wave.cpp.

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

       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 KWaveSaver( preview->winId() );

       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:

Definition at line 93 of file wave.cpp.

{
    delete saver;
}

Member Function Documentation

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

Definition at line 119 of file wave.cpp.

{
    KMessageBox::about(this,
        i18n("<h3>Bitmap Flag Screen Saver</h3>\n<p>Waving Flag Screen Saver for KDE</p>\nCopyright (c)  Ian Reinhart Geiser 2001"));
}

Here is the caller graph for this function:

void KWaveSetup::readSettings ( ) [protected]

Definition at line 100 of file wave.cpp.

{
       KConfigGroup config(KGlobal::config(), "Settings");

//     color = group.configColorEntry( "Color", &black );
}

Here is the caller graph for this function:

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

Definition at line 108 of file wave.cpp.

{
       KConfigGroup config(KGlobal::config(), "Settings");

//     group.writeEntry( "Color", color );

       config.sync();

       accept();
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 90 of file wave.h.

float KWaveSetup::size [private]

Definition at line 91 of file wave.h.

float KWaveSetup::stars [private]

Definition at line 92 of file wave.h.


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