Back to index

kdeartwork  4.3.2
Public Slots | Public Member Functions | Private Attributes
KGravitySaver Class Reference

#include <gravity.h>

Collaboration diagram for KGravitySaver:
Collaboration graph
[legend]

List of all members.

Public Slots

void blank ()
void updateSize (int newSize)
void doStars (bool starState)

Public Member Functions

 KGravitySaver (WId drawable)
virtual ~KGravitySaver ()
void readSettings ()

Private Attributes

Gravitygravity
QTimer * timer

Detailed Description

Definition at line 101 of file gravity.h.


Constructor & Destructor Documentation

KGravitySaver::KGravitySaver ( WId  drawable)

Definition at line 149 of file gravity.cpp.

                                     : KScreenSaver( id )
{

    kDebug() << "Blank";

    timer = new QTimer( this );
    timer->setSingleShot(true);
    timer->start( 25);
    {
        QPalette palette;
        palette.setColor( backgroundRole(), Qt::black );
        setPalette( palette );
    }
    update();
    gravity = new Gravity();
    embed(gravity);
#ifdef Q_WS_X11
    gravity->show();
#endif
    connect( timer, SIGNAL(timeout()), this, SLOT(blank()) );
}

Here is the call graph for this function:

Definition at line 171 of file gravity.cpp.

{

}

Member Function Documentation

void KGravitySaver::blank ( ) [slot]

Definition at line 183 of file gravity.cpp.

{
       // Play gravity

       gravity->updateGL();
    timer->setSingleShot(true);
       timer->start( 25);

}

Here is the caller graph for this function:

void KGravitySaver::doStars ( bool  starState) [slot]

Definition at line 400 of file gravity.cpp.

{
       gravity->setStars(starState);
}

Here is the call graph for this function:

Definition at line 177 of file gravity.cpp.

{
// Please remove me

}
void KGravitySaver::updateSize ( int  newSize) [slot]

Definition at line 396 of file gravity.cpp.

{
       gravity->setSize(newSize/100);
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 114 of file gravity.h.

QTimer* KGravitySaver::timer [private]

Definition at line 115 of file gravity.h.


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