00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GELEMENTINFOWIDGET_H
00026 #define GELEMENTINFOWIDGET_H
00027
00028 namespace GCS
00029 {
00030 class GEnergy;
00031 class GForm;
00032 class GElement;
00033 }
00034
00035 #include <GElementID.h>
00036
00037 #include <QWidget>
00038 #include <QVBoxLayout>
00039 #include <QList>
00040
00041 class QLabel;
00042 class QListWidget;
00043
00044 namespace GCE
00045 {
00046
00058 class GElementInfoWidget : public QWidget
00059 {
00060 Q_OBJECT
00061 protected:
00062
00066 const GCS::GElement* Element;
00067
00071 QLabel* EnergyLevel;
00072
00076 QLabel* EnergyAmount;
00077
00081 QLabel* EnergySigma;
00082
00086 QLabel* FormPositionX;
00087
00091 QLabel* FormPositionY;
00092
00096 QLabel* FormPositionZ;
00097
00101 QLabel* Parent;
00102
00106 QLabel* ElementID;
00107
00111 QListWidget* Children;
00112
00116 QLabel* Connection;
00117
00118 protected:
00119
00123
00124
00128
00129
00133
00134
00135
00136
00137 public:
00138
00142 GElementInfoWidget(QWidget* parent = 0);
00143
00147 virtual ~GElementInfoWidget();
00148
00149 protected slots:
00150
00151 virtual void updateEnergy(const GCS::GEnergy& energy);
00152
00153 virtual void updateForm(const GCS::GForm& form);
00154
00155 virtual void updateParent(const GCS::GElementID& new_parent);
00156
00165 virtual void updateChildrenGetFromElement();
00166
00167 virtual void updateChildren(QList<GCS::GElementID> children);
00168
00169 virtual void updateConnection(const GCS::GElementID& connection);
00170
00171 public slots:
00172
00173 virtual void setElement(const GCS::GElement* element);
00174 };
00175
00176 }
00177
00178 #endif