Back to index

kdeartwork  4.3.2
Classes | Defines | Enumerations | Functions | Variables
science.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/types.h>
#include <time.h>
#include <qpainter.h>
#include <qcolormap.h>
#include <qpixmap.h>
#include <qlabel.h>
#include <qlistwidget.h>
#include <qcheckbox.h>
#include <qslider.h>
#include <qlayout.h>
#include <QPaintEvent>
#include <kapplication.h>
#include <kglobal.h>
#include <kmessagebox.h>
#include <klocale.h>
#include <kconfig.h>
#include <kstandarddirs.h>
#include <krandomsequence.h>
#include "science.h"
#include "science.moc"

Go to the source code of this file.

Classes

class  KScienceSaverInterface
struct  KScienceData

Defines

#define SCI_DEFAULT_MODE   0
#define SCI_DEFAULT_MOVEX   6
#define SCI_DEFAULT_MOVEY   8
#define SCI_DEFAULT_SIZE   15
#define SCI_DEFAULT_INTENSITY   4
#define SCI_DEFAULT_SPEED   70
#define SCI_DEFAULT_INVERSE   false
#define SCI_DEFAULT_GRAVITY   false
#define SCI_DEFAULT_HIDE   false
#define SCI_MAX_SPEED   100
#define SCI_MAX_MOVE   20

Enumerations

enum  {
  MODE_WHIRL = 0, MODE_CURVATURE, MODE_SPHERE, MODE_WAVE,
  MODE_EXPONENTIAL, MODE_CONTRACTION
}

Functions

int main (int argc, char *argv[])
void initModeInfo ()

Variables

struct {
QString name
bool inverseEnable
modeInfo [MAX_MODES]

Class Documentation

struct KScienceData

Definition at line 133 of file science.cpp.

Class Members
XImage * buffer
GC gc
T32bit ** offset
XImage * xRootWin

Define Documentation

#define SCI_DEFAULT_GRAVITY   false

Definition at line 47 of file science.cpp.

#define SCI_DEFAULT_HIDE   false

Definition at line 48 of file science.cpp.

#define SCI_DEFAULT_INTENSITY   4

Definition at line 44 of file science.cpp.

#define SCI_DEFAULT_INVERSE   false

Definition at line 46 of file science.cpp.

#define SCI_DEFAULT_MODE   0

Definition at line 40 of file science.cpp.

#define SCI_DEFAULT_MOVEX   6

Definition at line 41 of file science.cpp.

#define SCI_DEFAULT_MOVEY   8

Definition at line 42 of file science.cpp.

#define SCI_DEFAULT_SIZE   15

Definition at line 43 of file science.cpp.

#define SCI_DEFAULT_SPEED   70

Definition at line 45 of file science.cpp.

#define SCI_MAX_MOVE   20

Definition at line 50 of file science.cpp.

#define SCI_MAX_SPEED   100

Definition at line 49 of file science.cpp.


Enumeration Type Documentation

anonymous enum
Enumerator:
MODE_WHIRL 
MODE_CURVATURE 
MODE_SPHERE 
MODE_WAVE 
MODE_EXPONENTIAL 
MODE_CONTRACTION 

Definition at line 88 of file science.cpp.


Function Documentation

void initModeInfo ( )

Definition at line 90 of file science.cpp.

{
       modeInfo[MODE_WHIRL].name = i18n( "Whirl" );
       modeInfo[MODE_WHIRL].inverseEnable = true;

       modeInfo[MODE_SPHERE].name = i18n( "Sphere" );
       modeInfo[MODE_SPHERE].inverseEnable = true;

       modeInfo[MODE_EXPONENTIAL].name = i18n( "Exponential" );
       modeInfo[MODE_EXPONENTIAL].inverseEnable = false;

       modeInfo[MODE_CONTRACTION].name = i18n( "Contraction" );
       modeInfo[MODE_CONTRACTION].inverseEnable = false;

       modeInfo[MODE_WAVE].name = i18n( "Wave" );
       modeInfo[MODE_WAVE].inverseEnable = false;

       modeInfo[MODE_CURVATURE].name = i18n( "Curvature" );
       modeInfo[MODE_CURVATURE].inverseEnable = true;
}

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 77 of file science.cpp.

{
    KScienceSaverInterface kss;
    return kScreenSaverMain( argc, argv, kss );
}

Variable Documentation

struct { ... } modeInfo[MAX_MODES] [static]