| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef GROUPUNIT_H
- #define GROUPUNIT_H
- #include <QGroupBox>
- #include <programviewunit.h>
- #include <string>
- #include <vector>
- #include "progmon.h"
- class GroupUnit : public QObject
- {
- Q_OBJECT
- public:
- GroupUnit();
- std::string mstrgroupname;
- QGroupBox * mpGroup;
- ProgMon * mpPM;
- std::vector<ProgramViewUnit * > mvectorProgramViewUnit;
- public:
- //Create View
- void CreateView();
- void DeleteView();
- void ReCreateView();
- private slots:
- void onProgClick(ProgUnit * pu,ProgramViewUnit * pvu,bool bClick);
- signals:
- void ProgClick(ProgUnit *,ProgramViewUnit * , bool);
- 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();
- private:
- /* Title for view */
- void CreateTitle();
- };
- #endif // GROUPUNIT_H
|