kdeui
kruler.cpp File Reference
#include "kruler.h"
#include <qpainter.h>
#include <qfont.h>
#include "kruler.moc"
Go to the source code of this file.
Defines | |
#define | BASE_MARK_LENGTH (LITTLE_MARK_LENGTH/2) |
#define | BASE_MARK_X1 (BASE_MARK_X2 - BASE_MARK_LENGTH) |
#define | BASE_MARK_X2 LINE_END |
#define | BIG_MARK_LENGTH (END_MARK_LENGTH*3/4) |
#define | BIG_MARK_X1 (BIG_MARK_X2 - BIG_MARK_LENGTH) |
#define | BIG_MARK_X2 LINE_END |
#define | END_LABEL_X 4 |
#define | END_LABEL_Y (END_LABEL_X + LABEL_SIZE - 2) |
#define | END_MARK_LENGTH (FIX_WIDTH - 6) |
#define | END_MARK_X1 (END_MARK_X2 - END_MARK_LENGTH) |
#define | END_MARK_X2 LINE_END |
#define | FIX_WIDTH 20 |
#define | INIT_BIG_MARK_DISTANCE (INIT_LITTLE_MARK_DISTANCE * 10) |
#define | INIT_END_OFFSET 0 |
#define | INIT_LENGTH_FIX true |
#define | INIT_LITTLE_MARK_DISTANCE 5 |
#define | INIT_MAX_VALUE 100 |
#define | INIT_MIDDLE_MARK_DISTANCE (INIT_LITTLE_MARK_DISTANCE * 2) |
#define | INIT_MIN_VALUE 0 |
#define | INIT_OFFSET (-20) |
#define | INIT_PIXEL_PER_MARK (double)10.0 |
#define | INIT_SHOW_BIG_MARK true |
#define | INIT_SHOW_END_LABEL true |
#define | INIT_SHOW_END_MARK true |
#define | INIT_SHOW_LITTLE_MARK true |
#define | INIT_SHOW_MEDIUM_MARK true |
#define | INIT_SHOW_POINTER true |
#define | INIT_SHOW_TINY_MARK false |
#define | INIT_TINY_MARK_DISTANCE 1 |
#define | INIT_VALUE 0 |
#define | LABEL_SIZE 8 |
#define | LINE_END (FIX_WIDTH - 3) |
#define | LITTLE_MARK_LENGTH (MIDDLE_MARK_LENGTH/2) |
#define | LITTLE_MARK_X1 (LITTLE_MARK_X2 - LITTLE_MARK_LENGTH) |
#define | LITTLE_MARK_X2 LINE_END |
#define | MIDDLE_MARK_LENGTH (END_MARK_LENGTH/2) |
#define | MIDDLE_MARK_X1 (MIDDLE_MARK_X2 - MIDDLE_MARK_LENGTH) |
#define | MIDDLE_MARK_X2 LINE_END |
Define Documentation
#define BASE_MARK_LENGTH (LITTLE_MARK_LENGTH/2) |
Definition at line 60 of file kruler.cpp.
#define BASE_MARK_X1 (BASE_MARK_X2 - BASE_MARK_LENGTH) |
Definition at line 62 of file kruler.cpp.
#define BASE_MARK_X2 LINE_END |
Definition at line 61 of file kruler.cpp.
#define BIG_MARK_LENGTH (END_MARK_LENGTH*3/4) |
Definition at line 51 of file kruler.cpp.
#define BIG_MARK_X1 (BIG_MARK_X2 - BIG_MARK_LENGTH) |
Definition at line 53 of file kruler.cpp.
#define BIG_MARK_X2 LINE_END |
Definition at line 52 of file kruler.cpp.
#define END_LABEL_X 4 |
Definition at line 65 of file kruler.cpp.
#define END_LABEL_Y (END_LABEL_X + LABEL_SIZE - 2) |
Definition at line 66 of file kruler.cpp.
#define END_MARK_LENGTH (FIX_WIDTH - 6) |
Definition at line 48 of file kruler.cpp.
#define END_MARK_X1 (END_MARK_X2 - END_MARK_LENGTH) |
Definition at line 50 of file kruler.cpp.
#define END_MARK_X2 LINE_END |
Definition at line 49 of file kruler.cpp.
#define FIX_WIDTH 20 |
Definition at line 46 of file kruler.cpp.
#define INIT_BIG_MARK_DISTANCE (INIT_LITTLE_MARK_DISTANCE * 10) |
Definition at line 32 of file kruler.cpp.
#define INIT_END_OFFSET 0 |
Definition at line 44 of file kruler.cpp.
#define INIT_LENGTH_FIX true |
Definition at line 43 of file kruler.cpp.
#define INIT_LITTLE_MARK_DISTANCE 5 |
Definition at line 30 of file kruler.cpp.
#define INIT_MAX_VALUE 100 |
Definition at line 28 of file kruler.cpp.
#define INIT_MIDDLE_MARK_DISTANCE (INIT_LITTLE_MARK_DISTANCE * 2) |
Definition at line 31 of file kruler.cpp.
#define INIT_MIN_VALUE 0 |
Definition at line 27 of file kruler.cpp.
#define INIT_OFFSET (-20) |
Definition at line 42 of file kruler.cpp.
#define INIT_PIXEL_PER_MARK (double)10.0 |
Definition at line 41 of file kruler.cpp.
#define INIT_SHOW_BIG_MARK true |
Definition at line 36 of file kruler.cpp.
#define INIT_SHOW_END_LABEL true |
Definition at line 39 of file kruler.cpp.
#define INIT_SHOW_END_MARK true |
Definition at line 37 of file kruler.cpp.
#define INIT_SHOW_LITTLE_MARK true |
Definition at line 34 of file kruler.cpp.
#define INIT_SHOW_MEDIUM_MARK true |
Definition at line 35 of file kruler.cpp.
#define INIT_SHOW_POINTER true |
Definition at line 38 of file kruler.cpp.
#define INIT_SHOW_TINY_MARK false |
Definition at line 33 of file kruler.cpp.
#define INIT_TINY_MARK_DISTANCE 1 |
Definition at line 29 of file kruler.cpp.
#define INIT_VALUE 0 |
Definition at line 26 of file kruler.cpp.
#define LABEL_SIZE 8 |
Definition at line 64 of file kruler.cpp.
#define LINE_END (FIX_WIDTH - 3) |
Definition at line 47 of file kruler.cpp.
#define LITTLE_MARK_LENGTH (MIDDLE_MARK_LENGTH/2) |
Definition at line 57 of file kruler.cpp.
#define LITTLE_MARK_X1 (LITTLE_MARK_X2 - LITTLE_MARK_LENGTH) |
Definition at line 59 of file kruler.cpp.
#define LITTLE_MARK_X2 LINE_END |
Definition at line 58 of file kruler.cpp.
#define MIDDLE_MARK_LENGTH (END_MARK_LENGTH/2) |
Definition at line 54 of file kruler.cpp.
#define MIDDLE_MARK_X1 (MIDDLE_MARK_X2 - MIDDLE_MARK_LENGTH) |
Definition at line 56 of file kruler.cpp.
#define MIDDLE_MARK_X2 LINE_END |
Definition at line 55 of file kruler.cpp.