2014-11-18 11:00:31 +00:00
|
|
|
/*
|
|
|
|
|
* synergy -- mouse and keyboard sharing utility
|
|
|
|
|
* Copyright (C) 2014 Synergy Si, Inc.
|
|
|
|
|
*
|
|
|
|
|
* This package is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
2015-05-03 02:33:52 +00:00
|
|
|
* found in the file LICENSE that should have accompanied this file.
|
2014-11-18 11:00:31 +00:00
|
|
|
*
|
|
|
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef ADDCLIENTDIALOG_H
|
|
|
|
|
#define ADDCLIENTDIALOG_H
|
|
|
|
|
|
|
|
|
|
#include "ui_AddClientDialogBase.h"
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
|
|
class QPushButton;
|
|
|
|
|
class QLabel;
|
|
|
|
|
|
|
|
|
|
enum {
|
|
|
|
|
kAddClientRight,
|
|
|
|
|
kAddClientLeft,
|
|
|
|
|
kAddClientUp,
|
|
|
|
|
kAddClientDown,
|
|
|
|
|
kAddClientOther,
|
|
|
|
|
kAddClientIgnore
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class AddClientDialog : public QDialog, public Ui::AddClientDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2014-11-18 15:34:50 +00:00
|
|
|
AddClientDialog(const QString& clientName, QWidget* parent = 0);
|
2014-11-18 11:00:31 +00:00
|
|
|
~AddClientDialog();
|
|
|
|
|
|
2014-11-20 11:37:16 +00:00
|
|
|
int addResult() { return m_AddResult; }
|
2014-11-28 10:51:52 +00:00
|
|
|
bool ignoreAutoConfigClient() { return m_IgnoreAutoConfigClient; }
|
2014-11-18 11:00:31 +00:00
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void changeEvent(QEvent *e);
|
|
|
|
|
|
|
|
|
|
private slots:
|
2014-11-20 11:37:16 +00:00
|
|
|
void on_m_pCheckBoxIgnoreClient_toggled(bool checked);
|
2014-11-18 11:00:31 +00:00
|
|
|
void handleButtonLeft();
|
|
|
|
|
void handleButtonUp();
|
|
|
|
|
void handleButtonRight();
|
|
|
|
|
void handleButtonDown();
|
|
|
|
|
void handleButtonAdvanced();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QPushButton* m_pButtonLeft;
|
|
|
|
|
QPushButton* m_pButtonUp;
|
|
|
|
|
QPushButton* m_pButtonRight;
|
|
|
|
|
QPushButton* m_pButtonDown;
|
|
|
|
|
QLabel* m_pLabelCenter;
|
|
|
|
|
int m_AddResult;
|
2014-11-28 10:51:52 +00:00
|
|
|
bool m_IgnoreAutoConfigClient;
|
2014-11-18 11:00:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // ADDCLIENTDIALOG_H
|