File indexing completed on 2023-09-24 08:17:47
0001 /* 0002 This file is part of the KDE games lskat program 0003 SPDX-FileCopyrightText: 2006 Martin Heni <kde@heni-online.de> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef NAMEDIALOG_WIDGET_H 0009 #define NAMEDIALOG_WIDGET_H 0010 0011 // Qt includes 0012 #include <QDialog> 0013 0014 // KF includes 0015 #include "lskat_debug.h" 0016 0017 // Local includes 0018 #include "ui_namedialog.h" 0019 0020 using namespace Ui; 0021 0022 /** 0023 * The player status widget. 0024 */ 0025 class NameDialogWidget : public QDialog 0026 { 0027 Q_OBJECT 0028 0029 public: 0030 /** 0031 * Constructor for the widget. 0032 * @param parent The parent window 0033 */ 0034 explicit NameDialogWidget(QWidget *parent); 0035 0036 /** 0037 * Set a default names to the widget 0038 * @param pos The name position (0,1) 0039 * @param name The name to set 0040 */ 0041 void setName(int pos, const QString &name); 0042 0043 /** 0044 * Retrieve the name from the widget. 0045 * @param pos The name position (0,1) 0046 * @return The new name. 0047 */ 0048 QString name(int pos); 0049 0050 private: 0051 // The UI dialog 0052 NameDialog ui; 0053 }; 0054 0055 #endif