]> git.sesse.net Git - pkanalytics/blobdiff - edit_player_dialog.h
Make it possible to edit players from the UI.
[pkanalytics] / edit_player_dialog.h
diff --git a/edit_player_dialog.h b/edit_player_dialog.h
new file mode 100644 (file)
index 0000000..bcff1ee
--- /dev/null
@@ -0,0 +1,17 @@
+#include <QDialog>
+#include <string>
+#include "ui_edit_player_dialog.h"
+
+class EditPlayerDialog : public QDialog
+{
+       Q_OBJECT
+
+public:
+       EditPlayerDialog(const std::string &number, const std::string &gender, const std::string &name);
+       std::string number() const { return ui->number->text().toStdString(); }
+       std::string gender() const { return ui->gender->text().toStdString(); }
+       std::string name() const { return ui->name->text().toStdString(); }
+
+private:
+       Ui::EditPlayerDialog *ui;
+};