00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef SESSIONBUTTON_H
00013 #define SESSIONBUTTON_H
00014
00015 #include <QPushButton>
00016 class ONMainWindow;
00017 class QLabel;
00018 class QComboBox;
00019 class QPushButton;
00023 class SessionButton : public QPushButton
00024 {
00025 Q_OBJECT
00026 public:
00027 SessionButton(ONMainWindow* mw, QWidget* parent,QString id);
00028 ~SessionButton();
00029 QString id() { return sid; }
00030 void redraw();
00031 static bool lessThen(const SessionButton* b1, const SessionButton* b2);
00032 QString name();
00033 private:
00034 QString sid;
00035 QLabel* sessName;
00036 QLabel* icon;
00037 QComboBox* cmdBox;
00038 QLabel* cmd;
00039 QLabel* serverIcon;
00040 QLabel* geomIcon;
00041 QLabel* cmdIcon;
00042 QLabel* server;
00043 QPushButton* editBut;
00044 QPushButton* rmBut;
00045 QLabel* geom;
00046 QComboBox* geomBox;
00047 QPushButton* sound;
00048 QLabel* soundIcon;
00049 ONMainWindow* par;
00050
00051 private slots:
00052 void slotClicked();
00053 void slotEdit();
00054 void slot_soundClicked();
00055 void slot_cmd_change(const QString& command);
00056 void slot_geom_change(const QString& new_g);
00057 void slotRemove();
00058 signals:
00059 void sessionSelected(SessionButton*);
00060 void signal_edit(SessionButton*);
00061 void signal_remove(SessionButton*);
00062 protected:
00063 virtual void mouseMoveEvent ( QMouseEvent * event );
00064 };
00065
00066 #endif