mirror of
https://github.com/bdnugget/xautoclick.git
synced 2026-11-07 09:17:31 +00:00
25 lines
542 B
C++
25 lines
542 B
C++
#ifndef __CLICKWIDGET_H__
|
|
#define __CLICKWIDGET_H__
|
|
|
|
#include <QWidget>
|
|
|
|
class QPushButton;
|
|
class QSpinBox;
|
|
struct spin_param;
|
|
|
|
class ClickWidget : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ClickWidget(const spin_param* spin_params, const char** button_names, QWidget *parent = 0);
|
|
int getSpinValue(int spin);
|
|
void setSpinValue(int spin, int value);
|
|
void setButtonSensitive(int button, bool state);
|
|
|
|
private:
|
|
QPushButton *buttons[3];
|
|
QSpinBox *spins[4];
|
|
};
|
|
|
|
#endif /* __CLICKWIDGET_H__ */
|