#ifndef REGISTERPANEL #define REGISTERPANEL #include "ui_RegisterPanelBase.h" #include "STRodCrate.h" #include //Added by qt3to4: #include #include #include #include class Q3HBoxLayout; class Q3VBoxLayout; class QHBoxLayout; class QVBoxLayout; class QLabel; class QPushButton; class STControlEngine; class QAction; namespace PixLib{ class PixModule; } class RegisterItem : public QWidget{ Q_OBJECT public: RegisterItem( QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = Qt::WType_TopLevel); ~RegisterItem(); QHBoxLayout* m_layout; public slots: void detailsPressed(); void setStatus(StatusTag status=tunknown, QString infoText=""); void hide(); void show(); private: QLabel* m_label; QPushButton* m_button; QString m_infoText; }; class RegisterPanel : public Q3MainWindow, public Ui::RegisterPanelBase{ Q_OBJECT public: RegisterPanel( STControlEngine &engine_in, QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = Qt::WType_TopLevel); ~RegisterPanel(); public slots: void clearInfo(); void clearAll(); void testAll(); void testCurrent(); void testList0(){testList(0, false);}; void testList1(){testList(1, false);}; void testList2(){testList(2, false);}; void testListCurrent0(){testList(0, true);}; void testListCurrent1(){testList(1, true);}; void testListCurrent2(){testList(2, true);}; void testList(int, bool); void setModule(int crateID, int grpID, int modID, const char* name); void setModule(int crateID, int grpID, int modID ){setModule(crateID, grpID, modID, 0);}; void setTextMessg(const char *msg); void setActions(bool); void setActionsEnabled(){setActions(true);}; void setActionsDisabled(){setActions(false);}; void setCurrModBlock(bool block){m_unblocked = !block;}; void editCfg(); static void setLED(QLabel *label, int state); private: STControlEngine &m_engine; RegisterItem *m_regMod; std::vector m_regFE; bool m_unblocked; int m_crateID, m_grpID, m_modID; std::vector m_currActions, m_allActions; }; #endif // REGISTERPANEL