12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #ifndef PROGRAMVIEWUNIT_H
- #define PROGRAMVIEWUNIT_H
- #include <QLabel>
- #include <QPushButton>
- #include <QLineEdit>
- #include <QGroupBox>
- #include <switchbutton.h>
- #include <progmon.h>
- 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
|