#ifndef PROGRAMVIEWUNIT_H #define PROGRAMVIEWUNIT_H #include #include #include #include #include #include class ProgramViewUnit : public QObject { Q_OBJECT public: ProgramViewUnit(QGroupBox * pGroup,ProgUnit * pu, int x,int y); ~ProgramViewUnit(); /* Moudle Name */ QLabel * mpLabelName; /* Module Args */ QLineEdit * mpLEArgs; /* Module Switch */ SwitchButton * mpSwich; /* Module Start Count */ QLineEdit * mpLECount; /* Module PID */ QLineEdit * mpLEPID; /* Moudle CPU */ QLineEdit * mpLECPU; /* Module Mem */ QLineEdit * mpLEMem; /* Module Thread Number */ QLineEdit * mpLEThread; /* Module Log std Switch */ SwitchButton * mpLogStd; private slots: void onSwitchClick(bool bClick); void onLogSwitchClick(bool bClick); void onReadStandardOutput(); signals: void progclick(ProgUnit *,ProgramViewUnit * , bool); void ProgLogClick(ProgUnit * ,ProgramViewUnit * ,bool); private: ProgUnit * mPU; public: /* Processs Started Update view if need */ void ProcStarted(ProgUnit * pu); /* Process Stoped Update view if need */ void ProcStopted(ProgUnit * pu); /* Update CPU Mem PID State */ void UpdateState(); }; #endif // PROGRAMVIEWUNIT_H