mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-16 23:29:58 +00:00
implement grapicalitem settings
This commit is contained in:
@ -19,16 +19,19 @@
|
||||
#define GRAPHICALITEM_H
|
||||
|
||||
#include <QColor>
|
||||
#include <QObject>
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class GraphicalItem;
|
||||
}
|
||||
|
||||
class GraphicalItem : public QObject
|
||||
class GraphicalItem : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum Direction {
|
||||
RightToLeft = -1,
|
||||
RightToLeft = 0,
|
||||
LeftToRight = 1
|
||||
};
|
||||
enum Type {
|
||||
@ -37,7 +40,8 @@ public:
|
||||
Circle
|
||||
};
|
||||
|
||||
GraphicalItem(const QString desktopName, const QStringList directories, const bool debugCmd = false);
|
||||
explicit GraphicalItem(QWidget *parent = 0, const QString desktopName = QString(),
|
||||
const QStringList directories = QStringList(), const bool debugCmd = false);
|
||||
~GraphicalItem();
|
||||
QString getImage(const float value);
|
||||
// get methods
|
||||
@ -63,13 +67,18 @@ public:
|
||||
|
||||
public slots:
|
||||
void readConfiguration();
|
||||
void showConfiguration(const QStringList tags = QStringList());
|
||||
void tryDelete();
|
||||
void writeConfiguration();
|
||||
|
||||
private slots:
|
||||
void changeColor();
|
||||
|
||||
private:
|
||||
QString fileName;
|
||||
QStringList dirs;
|
||||
bool debug;
|
||||
Ui::GraphicalItem *ui;
|
||||
// properties
|
||||
QString _name = QString("none");
|
||||
QString _comment = QString("empty");
|
||||
@ -82,5 +91,4 @@ private:
|
||||
int _width = 100;
|
||||
};
|
||||
|
||||
|
||||
#endif /* GRAPHICALITEM_H */
|
||||
|
Reference in New Issue
Block a user