2012-06-10 16:50:54 +00:00
|
|
|
/*
|
|
|
|
|
* synergy -- mouse and keyboard sharing utility
|
2016-09-07 14:24:00 +00:00
|
|
|
* Copyright (C) 2012-2016 Symless Ltd.
|
2012-06-10 16:50:54 +00:00
|
|
|
* Copyright (C) 2008 Volker Lanz (vl@fidra.de)
|
|
|
|
|
*
|
|
|
|
|
* 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.
|
2012-06-10 16:50:54 +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/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#if !defined(SERVERCONFIGDIALOG__H)
|
|
|
|
|
|
|
|
|
|
#define SERVERCONFIGDIALOG__H
|
|
|
|
|
|
|
|
|
|
#include "ScreenSetupModel.h"
|
|
|
|
|
#include "ServerConfig.h"
|
|
|
|
|
|
|
|
|
|
#include "ui_ServerConfigDialogBase.h"
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
|
|
class ServerConfigDialog : public QDialog, public Ui::ServerConfigDialogBase
|
|
|
|
|
{
|
2016-12-28 11:50:32 +00:00
|
|
|
Q_OBJECT
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2016-12-28 11:50:32 +00:00
|
|
|
public:
|
2021-02-22 11:33:18 +00:00
|
|
|
ServerConfigDialog(QWidget* parent, ServerConfig& config);
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2016-12-28 11:50:32 +00:00
|
|
|
public slots:
|
|
|
|
|
void accept();
|
|
|
|
|
void showEvent(QShowEvent* event);
|
|
|
|
|
void message(const QString& message) { m_Message = message; }
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2016-12-28 11:50:32 +00:00
|
|
|
protected slots:
|
|
|
|
|
void on_m_pButtonNewHotkey_clicked();
|
|
|
|
|
void on_m_pListHotkeys_itemSelectionChanged();
|
|
|
|
|
void on_m_pButtonEditHotkey_clicked();
|
|
|
|
|
void on_m_pButtonRemoveHotkey_clicked();
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2016-12-28 11:50:32 +00:00
|
|
|
void on_m_pButtonNewAction_clicked();
|
|
|
|
|
void on_m_pListActions_itemSelectionChanged();
|
|
|
|
|
void on_m_pButtonEditAction_clicked();
|
|
|
|
|
void on_m_pButtonRemoveAction_clicked();
|
2021-02-22 11:33:18 +00:00
|
|
|
void on_m_pCheckBoxEnableClipboard_stateChanged(int state);
|
2021-04-09 14:53:27 +00:00
|
|
|
void on_m_pButtonAddComputer_clicked();
|
|
|
|
|
void onScreenRemoved();
|
2021-04-12 09:03:37 +00:00
|
|
|
void on_m_pCheckBoxUseExternalConfig_toggled(bool checked = false);
|
|
|
|
|
bool on_m_pButtonBrowseConfigFile_clicked();
|
2017-01-30 14:45:30 +00:00
|
|
|
|
2016-12-28 11:50:32 +00:00
|
|
|
protected:
|
|
|
|
|
ServerConfig& serverConfig() { return m_ServerConfig; }
|
|
|
|
|
void setOrigServerConfig(const ServerConfig& s) { m_OrigServerConfig = s; }
|
|
|
|
|
ScreenSetupModel& model() { return m_ScreenSetupModel; }
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2016-12-28 11:50:32 +00:00
|
|
|
private:
|
|
|
|
|
ServerConfig& m_OrigServerConfig;
|
|
|
|
|
ServerConfig m_ServerConfig;
|
|
|
|
|
ScreenSetupModel m_ScreenSetupModel;
|
|
|
|
|
QString m_Message;
|
2012-06-10 16:50:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|