/* * Deskflow -- mouse and keyboard sharing utility * Copyright (C) 2014-2016 Symless Ltd. * * This package is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * found in the file LICENSE that should have accompanied this file. * * This package is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #pragma once #include class QPushButton; class QLabel; namespace Ui { class AddClientDialog; } enum { kAddClientRight, kAddClientLeft, kAddClientUp, kAddClientDown, kAddClientOther, kAddClientIgnore }; class AddClientDialog : public QDialog { Q_OBJECT public: AddClientDialog(const QString &clientName, QWidget *parent = 0); ~AddClientDialog() override; int addResult() { return m_AddResult; } private slots: void handleButtonLeft(); void handleButtonUp(); void handleButtonRight(); void handleButtonDown(); void handleButtonAdvanced(); private: std::unique_ptr ui; QPushButton *m_pButtonLeft; QPushButton *m_pButtonUp; QPushButton *m_pButtonRight; QPushButton *m_pButtonDown; QLabel *m_pLabelCenter; int m_AddResult; };