start work on porting extscripts to *.desktop configuration

This commit is contained in:
arcan1s
2014-11-17 10:29:09 +03:00
parent 16d7ca2005
commit 8cdfdd4e81
12 changed files with 287 additions and 136 deletions

View File

@ -280,6 +280,7 @@ void GraphicalItem::setHeight(const int height)
{
if (debug) qDebug() << PDEBUG;
if (debug) qDebug() << PDEBUG << ":" << "Height" << height;
if (height <= 0) return;
_height = height;
}
@ -289,6 +290,7 @@ void GraphicalItem::setWidth(const int width)
{
if (debug) qDebug() << PDEBUG;
if (debug) qDebug() << PDEBUG << ":" << "Width" << width;
if (width <= 0) return;
_width = width;
}

View File

@ -55,15 +55,15 @@ public:
int getHeight();
int getWidth();
// set methods
void setName(const QString name);
void setComment(const QString comment);
void setBar(const QString bar);
void setActiveColor(const QColor color);
void setInactiveColor(const QColor color);
void setType(const QString type);
void setDirection(const QString direction);
void setHeight(const int height);
void setWidth(const int width);
void setName(const QString name = QString("none"));
void setComment(const QString comment = QString("empty"));
void setBar(const QString bar = QString("cpu"));
void setActiveColor(const QColor color = QColor(255, 255, 255, 0));
void setInactiveColor(const QColor color = QColor(255, 255, 255, 255));
void setType(const QString type = QString("Horizontal"));
void setDirection(const QString direction = QString("LeftToRight"));
void setHeight(const int height = 100);
void setWidth(const int width = 100);
public slots:
void readConfiguration();

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>408</width>
<width>420</width>
<height>329</height>
</rect>
</property>
@ -39,6 +39,12 @@
<layout class="QHBoxLayout" name="layout_comment">
<item>
<widget class="QLabel" name="label_comment">
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Comment</string>
</property>