Files
pilotclient/src/blackgui/commandinput.h
2015-05-29 03:49:16 +02:00

46 lines
1.2 KiB
C++

/* Copyright (C) 2015
* swift project community / Contributors
*
* This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \file
#ifndef BLACKGUI_COMMANDINPUT_H
#define BLACKGUI_COMMANDINPUT_H
#include "blackguiexport.h"
#include "blackmisc/originatoraware.h"
#include <QLineEdit>
#include <QString>
namespace BlackGui
{
//! Specialized LineEdit for command inputs
class BLACKGUI_EXPORT CCommandInput :
public QLineEdit,
public BlackMisc::COriginatorAware
{
Q_OBJECT
public:
//! Constructor
CCommandInput(QWidget *parent = nullptr);
//! Destructor
~CCommandInput() {}
signals:
//! Command was entered
void commandEntered(const QString &command, const BlackMisc::COriginator &originator);
private slots:
//! Basic command validation
void ps_validateCommand();
};
}
#endif // guard