#ifndef QMDIALOGCHANGETEAMNUMBER_H #define QMDIALOGCHANGETEAMNUMBER_H #include #include "consts.h" #include "structs.h" #include "proto.h" namespace Ui { class QmDialogChangeTeamNumber; } class QmDialogChangeTeamNumber : public QDialog { Q_OBJECT public: explicit QmDialogChangeTeamNumber(const QString &title, QWidget *parent = 0); ~QmDialogChangeTeamNumber(); private: Ui::QmDialogChangeTeamNumber *ui; team_type team_buf_source; int sourceTeam; team_type team_buf_target; int targetTeam; public slots: void accept (); void updateSourceName(int); void updateTargetName(int); bool checkValidOpr(int); }; #endif // QMDIALOGCHANGETEAMNUMBER_H