#ifndef GENERALWIDGET_H #define GENERALWIDGET_H #include "Glass_global.h" #include class Sequence; class QLabel; class QSlider; class QDateTime; class QComboBox; class QCheckBox; class QToolButton; class QBasicTimer; class QHBoxLayout; class QVBoxLayout; class QGridLayout; class GLASSSHARED_EXPORT GeneralWidget : public QWidget { Q_OBJECT public: GeneralWidget(QWidget *parent = 0); ~GeneralWidget(); private: QLabel *lbErinnTime; QLabel *lbRealTime; QLabel *lbMoongate; QLabel *lbMoongateNext; QLabel *lbArbeit; QLabel *lbWeather; QLabel *lbWeekEffectName; QLabel *lbWeekEffectContent; QLabel *lbWeekAdvanceItem; QLabel *lbPrice; QLabel *lbPriceNext1; QLabel *lbPriceNext2; QComboBox *cbWeather; QComboBox *cbArbeit; QCheckBox *cbTopmost; QToolButton *btClose; QSlider *slOpacity; QHBoxLayout *hbTimeLayout; QVBoxLayout *vbGateLayout; QHBoxLayout *hbArbeitLayout; QHBoxLayout *hbWeatherLayout; QVBoxLayout *vbEffectLayout; QVBoxLayout *vbPriceLayout; QVBoxLayout *vbFletaLayout; QHBoxLayout *hbOptionLayout; QGridLayout *glMainLayout; QLabel *lbBackground; private: void initWeather(); void createLayout(); void createLable(); void createOption(); void saveSettings(); void loadSettings(); void updateTime(); void updateMoongate(); void updateArbeit(); void updateWeather(); void updateWeekEffect(); void updatePrice(); QPoint dragPos; QImage background; QDateTime *realTime; QStringList *weatherArea; Sequence *sequence; bool bDragging; private slots: void updateAll(); void toggleTopmost(); void changeOpacity(int opacity); protected: void resizeEvent(QResizeEvent *event); void mouseMoveEvent(QMouseEvent *event); void mousePressEvent(QMouseEvent *event); void mouseReleaseEvent(QMouseEvent *event); }; #endif // GENERALWIDGET_H