anfaengliche z-index vertauschung
git-svn-id: http://svn.lsim.tuxzone.org/trunk@17 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -31,6 +31,8 @@ class GraphicsEllipseItem;
|
||||
class QGraphicsItemAnimation;
|
||||
class QGraphicsPathItem;
|
||||
class QPainterPath;
|
||||
class QListWidget;
|
||||
class FieldItem;
|
||||
|
||||
/**
|
||||
@author Peter Dahlberg <pdahlberg@gmail.com>
|
||||
@@ -46,7 +48,8 @@ class SimulScene : public QGraphicsScene {
|
||||
};
|
||||
enum ItemType {ResizeRectItem};
|
||||
SimulScene ( QObject* parent = 0);
|
||||
qreal getHighestZIndexVisible(); //hoechsten z-index der sichtbaren items ausgeben
|
||||
qreal getHighestZIndexVisible(); //hoechsten z-index der sichtbaren items
|
||||
qreal getHighestZIndexFieldItems(); //hoechsten z-index der Felder ausgeben
|
||||
|
||||
~SimulScene();
|
||||
double getTimePerStep();
|
||||
@@ -66,6 +69,9 @@ class SimulScene : public QGraphicsScene {
|
||||
|
||||
bool isFlightPathVisible();
|
||||
int getTimeLineDuration();
|
||||
QListWidget* getFieldListWidget();
|
||||
QList<QGraphicsItem*> getItemsInZOrder();
|
||||
QList<QGraphicsItem*> getFieldItemsInZOrder();
|
||||
|
||||
public slots:
|
||||
void setSceneMode(SceneMode mode);
|
||||
@@ -82,7 +88,10 @@ class SimulScene : public QGraphicsScene {
|
||||
void setFlightPathVisible(bool visible = true);
|
||||
void setTimeLineDuration(int duration);
|
||||
|
||||
|
||||
void moveFieldItemDown(QGraphicsItem* fieldItem);
|
||||
void moveSelectedFieldItemDown();
|
||||
void moveFieldItemUp(QGraphicsItem* fieldItem);
|
||||
void moveSelectedFieldItemUp();
|
||||
|
||||
private slots:
|
||||
void displayResizeRects(bool move = false);
|
||||
@@ -122,6 +131,7 @@ class SimulScene : public QGraphicsScene {
|
||||
QGraphicsItemAnimation *ani;
|
||||
|
||||
QGraphicsPathItem *pathItem1;
|
||||
QListWidget* fieldListWidget;
|
||||
|
||||
|
||||
//rechtecke zur groesenaenderung
|
||||
@@ -149,7 +159,11 @@ class SimulScene : public QGraphicsScene {
|
||||
|
||||
QList<HomoEFieldItem*> calcEFieldList;
|
||||
QList<HomoBFieldItem*> calcBFieldList;
|
||||
|
||||
|
||||
static const qreal FieldDefaultZValue = 10; //default z-value fuer Felder
|
||||
static const qreal FieldZStep = 1e-50; //schritt, um den der z-index erhoeht wird
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent);
|
||||
|
||||
Reference in New Issue
Block a user