qsrun/entrypushbutton.h

36 lines
766 B
C
Raw Normal View History

2018-01-03 09:52:05 +01:00
#ifndef ENTRYPUSHBUTTON_H
#define ENTRYPUSHBUTTON_H
#include <QWidget>
#include <QPushButton>
#include "config.h"
class EntryPushButton : public QPushButton
{
Q_OBJECT
private:
EntryConfig config;
private slots:
void emitOwnClicked();
signals:
void clicked(const EntryConfig &config);
public:
EntryPushButton(const EntryConfig &config);
const EntryConfig &getEntryConfig();
void setEntryConfig(const EntryConfig &config);
void showShortcut();
void showName();
int getRow() const;
int getCol() const;
QString getName() const;
QString getShortcutKey() const;
QStringList getArguments() const;
QString getCommand() const;
void setRow(int row);
void setCol(int col);
};
#endif // ENTRYPUSHBUTTON_H