Back to index

kdeartwork  4.3.2
Classes | Defines | Functions | Variables
SolarWinds.cpp File Reference
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <qtimer.h>
#include "SolarWinds.h"
#include "SolarWinds.moc"
#include <klocale.h>
#include <kglobal.h>
#include <kconfig.h>
#include <qlayout.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <kmessagebox.h>

Go to the source code of this file.


struct  Emitter
struct  Particle
class  wind
class  KSolarWindsSaverInterface


#define NUMCONSTS   9
#define PIx2   6.28318530718f
#define DEG2RAD   0.0174532925f


float myRandf (float x)
int main (int argc, char *argv[])
static int filterRandom (int n)


static SWindsWidget_ec = 0
static const char * defaultText []

Class Documentation

struct Emitter

Definition at line 52 of file SolarWinds.cpp.

Class Members
float x
float y
float z

Define Documentation

#define DEG2RAD   0.0174532925f

Definition at line 33 of file SolarWinds.cpp.

#define NUMCONSTS   9

Definition at line 31 of file SolarWinds.cpp.

#define PIx2   6.28318530718f

Definition at line 32 of file SolarWinds.cpp.

Function Documentation

static int filterRandom ( int  n) [static]

Definition at line 638 of file SolarWinds.cpp.

    if( (n < 0) || (n >= SWindsWidget::DefaultModes) )
        n = rand() % SWindsWidget::DefaultModes;
    return n;

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 

Definition at line 612 of file SolarWinds.cpp.

    KSolarWindsSaverInterface kss;
    return kScreenSaverMain( argc, argv, kss );
float myRandf ( float  x) [inline]

Definition at line 43 of file SolarWinds.cpp.

    return(float(rand() * x) / float(RAND_MAX));

Variable Documentation

SWindsWidget* _ec = 0 [static]

Definition at line 49 of file SolarWinds.cpp.

const char* defaultText[] [static]
Initial value:
    I18N_NOOP( "Regular" ),
    I18N_NOOP( "Cosmic Strings" ),
    I18N_NOOP( "Cold Pricklies" ),
    I18N_NOOP( "Space Fur" ),
    I18N_NOOP( "Jiggly" ),
    I18N_NOOP( "Undertow" ),
    I18N_NOOP( "(Random)" ),

Definition at line 678 of file SolarWinds.cpp.