Skip to content
Snippets Groups Projects
Commit 53ddbc13 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

added support for CuEPalette booster / elettra

parent b19b69e3
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@
// cumbia
#include <quapplication.h>
#include <cuepalette.h>
#include "alarm.h"
#include <X11/Xlib.h>
#include <QX11Info>
......@@ -53,7 +54,6 @@ int main( int argc, char ** argv )
qu_app.setProperty("office", "T2PT025");
qu_app.setProperty("hwReferent", "Graziano"); /* name of the referent that provides the device server */
CumbiaPool *cu_p = new CumbiaPool();
Alarm *w = new Alarm(cu_p, NULL);
w->show();
......@@ -64,11 +64,15 @@ int main( int argc, char ** argv )
if(qApp->arguments().at(j).contains(QRegExp("style\\s*=?\\s*booster")))
{
w->setWindowIcon(QIcon(":icons/booster-alarm.png"));
CuEPalette p("booster");
qu_app.setPalette(p.get());
break;
}
else if(qApp->arguments().at(j).contains(QRegExp("style\\s*=?\\s*elettra")))
{
w->setWindowIcon(QIcon(":icons/elettra-alarm.png"));
CuEPalette p("elettra");
qu_app.setPalette(p.get());
break;
}
else if(qApp->arguments().at(j).contains(QRegExp("style\\s*=?\\s*fermi")))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment