Rev 345 | Blame | Last modification | View Log | RSS feed
#ifndef MACROCONTROLLER
#define MACROCONTROLLER
#include "GlobalDefines.h"
#define MACRO_DEFAULT_COUNT 4
class MacroController : public QWidget
{
Q_OBJECT
public:
MacroController(QWidget *parent = 0);
~MacroController();
public slots:
void Macro_EnableTransmit(void);
void Macro_DisableTransmit(void);
void Macro_InitTransmit(QWidget* t);
void Macro_AddEntry(void);
void Macro_RemoveEntry(void);
void Macro_WriteToFile(void);
void Macro_ReadFromFile(void);
signals:
void Macro_TransmitText(QString string);
private:
int macroCount;
bool connected;
QString lastKnownFilePath;
QPushButton *btnExport;
QPushButton *btnImport;
QPushButton *btnIncreaseMacro;
QPushButton *btnDecreaseMacro;
QList<QLineEdit*> macroNameList;
QList<QTextEdit*> macroValueList;
QList<QPushButton*> macroBtnList;
QGridLayout *mainLayout;
QHBoxLayout *ioLayout;
QSignalMapper *sigMapper;
};
#endif // MACROCONTROLLER