Changeset 44b60a


Ignore:
Timestamp:
01/17/12 15:32:56 (4 months ago)
Author:
Stefan Persson <stefan.persson@…>
Branches:
('master', 'deebf2045e7119c339412580f37a1e653f7d5715')('controller-upgrade', '00f95d22e12d96ef089e0902ef62ae8ce841dc6f')
Children:
848f65803c6c460de9219c4de46b5eb80d1c2c37
Parents:
48daf2ca2fee9ebc88f54e65d82616c5d2d5bccc645ef2098e00e54a96cbcc13ecd9b504fe64768b
git-author:
Stefan Persson <stefan.persson@telldus.se>2012-01-17 15:32:56+01:00
git-committer:
Stefan Persson <stefan.persson@telldus.se>2012-01-17 15:32:56+01:00
Message:

Merge branch 'ticket96'

Files:
5 added
14 edited

Legend:

Unmodified
Added
Removed
  • telldus-gui/Plugins/QML/CMakeLists.txt

    r3738b3 r9afb2c  
    2424 
    2525INCLUDE( ../TelldusCenterPlugin.cmake NO_POLICY_SCOPE ) 
     26 
     27IF (WIN32) 
     28        SET(QT_COMPONENTS_OUTPUT_DIR "${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/Plugins/declarative") 
     29ELSEIF (APPLE) 
     30        SET(QT_COMPONENTS_OUTPUT_DIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/TelldusCenter.app/Contents/Plugins/declarative") 
     31ELSE() 
     32        SET(QT_COMPONENTS_OUTPUT_DIR "${CMAKE_BINARY_DIR}/TelldusCenter/Plugins/declarative") 
     33ENDIF() 
     34INCLUDE( ${CMAKE_SOURCE_DIR}/3rdparty/qt-components-desktop.cmake NO_POLICY_SCOPE ) 
  • telldus-gui/Plugins/QML/qmlarray.cpp

    r20d662 r5ce0b8  
    11#include "qmlarray.h" 
    2  
    3 #include <QDebug> 
     2#include <QMetaMethod> 
    43 
    54class QMLArray::PrivateData { 
     
    3635} 
    3736 
     37void QMLArray::remove(int index) { 
     38        beginRemoveRows( QModelIndex(), index, index ); 
     39        d->list.takeAt(index); 
     40        endRemoveRows(); 
     41} 
     42 
     43void QMLArray::removeLater(int index) { 
     44        int methodIndex = this->metaObject()->indexOfMethod(QMetaObject::normalizedSignature("remove(int)")); 
     45        QMetaMethod method = this->metaObject()->method(methodIndex); 
     46        method.invoke(this, Qt::QueuedConnection, Q_ARG(int, index)); 
     47} 
     48 
    3849int QMLArray::rowCount(const QModelIndex &parent) const { 
    3950        return d->list.size(); 
  • telldus-gui/Plugins/QML/qmlarray.h

    r20d662 r5ce0b8  
    2020public slots: 
    2121        void push(const QScriptValue &v); 
     22        void remove(int index); 
     23        void removeLater(int index); 
    2224        QVariant get(int index) const; 
    2325 
  • telldus-gui/Plugins/QML/qmlview.cpp

    r61331e r5531d6  
    33#include <QDeclarativeContext> 
    44#include <QScriptValueIterator> 
     5#include <QDeclarativeEngine> 
    56#include <QVariant> 
     7#include <QApplication> 
    68 
    79class QMLView::PrivateData { 
     
    1618        setAttribute(Qt::WA_TranslucentBackground); 
    1719        setStyleSheet("background:transparent;"); 
     20 
     21        QDeclarativeEngine *eng = this->engine(); 
     22        QStringList paths(eng->importPathList()); 
     23        QDir pluginsDir = QDir(qApp->applicationDirPath()); 
     24 
     25#if defined(Q_OS_MAC) 
     26        if (pluginsDir.dirName() == "MacOS") { 
     27                pluginsDir.cdUp(); 
     28        } 
     29#endif 
     30 
     31        if (pluginsDir.cd("Plugins/declarative")) { 
     32                paths << pluginsDir.absolutePath(); 
     33        } 
     34 
     35        eng->setImportPathList(paths); 
    1836 
    1937        d = new PrivateData; 
  • telldus-gui/Plugins/Sensors/CMakeLists.txt

    re7ec37 r394270  
    44SET(QT_USE_QTDECLARATIVE TRUE) 
    55 
    6 SET( Plugin_NAME "sensors" ) 
     6SET( Plugin_NAME "Sensors" ) 
    77 
    88 
     
    3434        qmldir 
    3535        SensorValue.qml 
     36        SensorView.qml 
     37        SensorList.qml 
    3638) 
    3739 
  • telldus-gui/Plugins/Sensors/__init__.js

    r8e377a r645ef2  
    77 
    88com.telldus.sensors = function() { 
    9         var sensorList = new com.telldus.qml.array(); 
    10  
     9        var sensorList; 
    1110        function init() { 
    1211                var sensorData = 0; 
     12                sensorList = loadSensorModel(); 
     13                sensorList.rowsRemoved.connect(function(){saveSensorModel();}); 
     14                sensorList.rowsInserted.connect(function(){saveSensorModel();}); 
     15 
    1316                while(sensorData = com.telldus.core.sensor()) { 
    1417                        var p = sensorData["protocol"]; 
     
    2023                                if (types & type) { 
    2124                                        sensorValue = com.telldus.core.sensorValue(p, m, id, type); 
    22                                         sensorEvent(p, m, id, type, sensorValue["value"], sensorValue["timestamp"]); 
     25                                        sensorEvent(p, m, id, type, sensorValue["value"], sensorValue["timestamp"], true); 
    2326                                } 
    2427                        } 
     
    2932 
    3033                com.telldus.core.sensorEvent.connect(sensorEvent); 
    31                 view = new com.telldus.qml.view({}); 
     34                view = new com.telldus.qml.view({ 
     35                        deleteSensor: deleteSensor 
     36                }); 
    3237 
    3338                view.setProperty('sensorModel', sensorList); 
     39                saveSensorModel(); 
    3440                view.load("main.qml"); 
    3541                application.addWidget("sensors.gui", "icon.png", view); 
    3642        } 
    3743 
    38         function sensorEvent(protocol, model, id, dataType, value, timestamp) { 
     44        function createSensor(protocol, model, id, name, showInList){ 
     45                var sensor = new com.telldus.sensors.sensor(); 
     46                sensor.protocol = protocol; 
     47                sensor.model = model; 
     48                sensor.id = id; 
     49                sensor.name = name; 
     50                sensor.nameChanged.connect(function() { saveSensorModel(); }); 
     51                sensor.showInList = showInList; 
     52                sensor.showInListChanged.connect(function() { saveSensorModel(); }); 
     53                return sensor; 
     54        } 
     55 
     56        function deleteSensor(protocol, model, id){ 
     57                var i = 0; 
     58                var found = false; 
     59                for (; i < sensorList.length; ++i) { 
     60                        if (sensorList.get(i).protocol != protocol) { 
     61                                continue; 
     62                        } 
     63                        if (sensorList.get(i).model != model) { 
     64                                continue; 
     65                        } 
     66                        if (sensorList.get(i).id != id) { 
     67                                continue; 
     68                        } 
     69                        found = true; 
     70                        break; 
     71                } 
     72                if(found){ 
     73                        sensorList.removeLater(i); 
     74                } 
     75        } 
     76 
     77        function loadSensorModel(){ 
     78                var settings = new com.telldus.settings(); 
     79                var sensors = new com.telldus.qml.array(); 
     80 
     81                var sensorProperties = settings.value("sensors", ""); 
     82                if(sensorProperties){ 
     83                        for (var i = 0; i < sensorProperties.length; i++) { 
     84                                var sensor = createSensor(sensorProperties[i].protocol, sensorProperties[i].model, sensorProperties[i].id, sensorProperties[i].name, sensorProperties[i].showInList=="true"); 
     85                                for (var j = 0; j < sensorProperties[i].values.length; j++) { 
     86                                        sensor.setValue(sensorProperties[i].values[j].type, sensorProperties[i].values[j].value, sensorProperties[i].values[j].lastUpdated) 
     87                                } 
     88                                sensors.push(sensor); 
     89                        } 
     90                } 
     91                return sensors; 
     92        } 
     93 
     94        function saveSensorModel(){ 
     95                var settings = new com.telldus.settings(); 
     96                var sensorProperties = new Array(); 
     97 
     98                for (var i = 0; i < sensorList.length; ++i) { 
     99                        var sensor = sensorList.get(i); 
     100 
     101                        var allValues = new Array(); 
     102                        if(sensor.hasHumidity){ 
     103                                var sensorValue = sensor.sensorValue(com.telldus.core.TELLSTICK_HUMIDITY); 
     104                                var value = {type: com.telldus.core.TELLSTICK_HUMIDITY, lastUpdated: sensorValue.lastUpdated, value: sensorValue.value}; 
     105                                allValues.push(value); 
     106                        } 
     107                        if(sensor.hasTemperature){ 
     108                                var sensorValue = sensor.sensorValue(com.telldus.core.TELLSTICK_TEMPERATURE); 
     109                                var value = {type: com.telldus.core.TELLSTICK_TEMPERATURE, lastUpdated: sensorValue.lastUpdated, value: sensorValue.value}; 
     110                                allValues.push(value); 
     111                        } 
     112 
     113                        var sensorProp = {protocol:sensor.protocol, model:sensor.model, id:sensor.id, values:allValues, name:sensor.name, showInList:sensor.showInList}; 
     114                        sensorProperties.push(sensorProp); 
     115                } 
     116 
     117                settings.setValue("sensors", sensorProperties); 
     118        } 
     119 
     120        function sensorEvent(protocol, model, id, dataType, value, timestamp, avoidSave) { 
     121 
    39122                var sensor = 0; 
    40123                for (var i = 0; i < sensorList.length; ++i) { 
     
    53136 
    54137                if (!sensor) { 
    55                         sensor = new com.telldus.sensors.sensor(); 
    56                         sensor.protocol = protocol; 
    57                         sensor.model = model; 
    58                         sensor.id = id; 
    59                         sensor.showInList = false; 
     138                        sensor = createSensor(protocol, model, id, "", false); 
    60139                        sensorList.push(sensor); 
    61                         print("Create new"); 
    62                 } else { 
    63                         print("Update"); 
    64140                } 
    65141 
    66                 print("Sensor event", protocol, model, id, dataType, value, timestamp); 
    67142                sensor.setValue(dataType, value, timestamp); 
     143 
     144                if(!avoidSave){ 
     145                        saveSensorModel(); 
     146                } 
    68147        } 
    69148 
  • telldus-gui/Plugins/Sensors/main.qml

    r8e377a rc90a4c  
    11import Qt 4.7 
     2import QtDesktop 0.1 
    23 
    34Item { 
     
    56        state: "VIEW" 
    67 
    7         Component { 
    8                 id: sensorView 
    9                 Item{ 
    10                         id: sensorViewItem 
    11                         visible: main.state == "EDIT" || modelData.showInList 
    12                         height: childrenRect.height 
    13                         width: parent.width 
     8        ScrollArea { 
     9                id: scrollArea 
     10                anchors.fill: parent 
     11                frame: false 
    1412 
    15                         BorderImage { 
    16                                 source: "row_bg.png" 
    17                                 border.left: 5; border.top: 5 
    18                                 border.right: 5; border.bottom: 5 
    19                                 height: sensorInfo.height 
    20                                 width: parent.width 
     13                contentHeight: sensorList.height 
     14                contentWidth: sensorList.width 
    2115 
    22                                 Text { 
    23                                         visible: main.state == "VIEW" 
    24                                         anchors.left: parent.left 
    25                                         anchors.leftMargin: 15 
    26                                         height: 40 
    27                                         verticalAlignment: Text.AlignVCenter 
    28                                         text: modelData.name; 
    29                                         color: "#004275" 
    30                                 } 
    31                                 Rectangle{ 
    32                                         color: "white" 
    33                                         visible: main.state == "EDIT" 
    34                                         anchors.left: parent.left 
    35                                         anchors.leftMargin: 15 
    36                                         width: nameEdit.width + 4 
    37                                         height: 22 
    38                                         TextInput{ 
    39                                                 id: nameEdit 
    40                                                 anchors.centerIn: parent 
    41                                                 text: modelData.name; 
    42                                                 color: "#004275" 
    43  
    44                                                 onActiveFocusChanged: { 
    45                                                         if(!activeFocus){ 
    46                                                                 //todo other way? 
    47                                                                 modelData.setName(nameEdit.text); 
    48                                                         } 
    49                                                 } 
    50                                                 onAccepted: { 
    51                                                         modelData.setName(nameEdit.text); 
    52                                                 } 
    53                                         } 
    54                                 } 
    55                                 Text{ 
    56                                         anchors.right: model.left 
    57                                         visible: main.state == "EDIT" 
    58                                         height: 40 
    59                                         verticalAlignment: Text.AlignVCenter 
    60                                         text: modelData.id 
    61                                         color: "#004275" 
    62                                         width: 50 
    63                                 } 
    64                                 Text{ 
    65                                         id: model 
    66                                         anchors.right: visibleinlistcheckbox.left 
    67                                         visible: main.state == "EDIT" 
    68                                         height: 40 
    69                                         verticalAlignment: Text.AlignVCenter 
    70                                         text: modelData.model 
    71                                         color: "#004275" 
    72                                         width: 100 
    73                                 } 
    74                                 Item{ 
    75                                         id: visibleinlistcheckbox 
    76                                         anchors.right: sensorInfo.left 
    77                                         visible: main.state == "EDIT" 
    78                                         height: 40 
    79                                         Rectangle{ 
    80                                                 anchors.centerIn: parent 
    81                                                 height: 10 
    82                                                 width: 10 
    83                                                 color: "white" 
    84                                                 Text{ 
    85                                                         anchors.centerIn: parent 
    86                                                         color: "#004275" 
    87                                                         text: modelData.showInList ? "X" : "" 
    88                                                 } 
    89                                                 MouseArea{ 
    90                                                         anchors.fill: parent 
    91                                                         onClicked: { 
    92                                                                 modelData.setShowInList(!modelData.showInList); 
    93                                                         } 
    94                                                 } 
    95                                         } 
    96                                         width: 100 
    97                                 } 
    98  
    99                                 Column { 
    100                                         id: sensorInfo 
    101                                         anchors.right: parent.right 
    102                                         width: 250 
    103                                         SensorValue { 
    104                                                 visible: modelData.hasTemperature 
    105                                                 text: visible ? modelData.sensorValue(1).value + '°C' : '' 
    106                                                 icon: "icon_temp.png" 
    107                                                 lastUpdated: visible ? modelData.sensorValue(1).lastUpdated : new Date() 
    108                                         } 
    109                                         SensorValue { 
    110                                                 visible: modelData.hasHumidity 
    111                                                 text: visible ? modelData.sensorValue(2).value + '%' : '' 
    112                                                 icon: "icon_humidity.png" 
    113                                                 lastUpdated: visible ? modelData.sensorValue(2).lastUpdated : new Date() 
    114                                         } 
    115                                 } 
    116                         } 
     16                SensorList { 
     17                        id: sensorList 
     18                        width: main.width-scrollArea.verticalScrollBar.width 
    11719                } 
    11820        } 
    119  
    120         Column { 
    121                 spacing: 1 
    122                 BorderImage { 
    123                         id: header 
    124                         source: "header_bg.png" 
    125                         width: parent.width; height: 40 
    126                         border.left: 5; border.top: 5 
    127                         border.right: 5; border.bottom: 5 
    128  
    129                         HeaderTitle { 
    130                                 text: "Name" 
    131                                 anchors.left: parent.left 
    132                                 anchors.leftMargin: 15 
    133                         } 
    134                         HeaderTitle { 
    135                                 text: "ID" 
    136                                 anchors.right: modelTitle.left 
    137                                 visible: main.state == "EDIT" 
    138                                 width: 50 
    139                         } 
    140                         HeaderTitle { 
    141                                 id: modelTitle 
    142                                 text: "Model" 
    143                                 anchors.right: visibleinlistTitle.left 
    144                                 visible: main.state == "EDIT" 
    145                                 width: 100 
    146                         } 
    147                         HeaderTitle { 
    148                                 id: visibleinlistTitle 
    149                                 text: "Visible in list" 
    150                                 anchors.right: sensorinformationTitle.left 
    151                                 visible: main.state == "EDIT" 
    152                                 width: 100 
    153                         } 
    154                         HeaderTitle { 
    155                                 id: sensorinformationTitle 
    156                                 text: "Sensor information" 
    157                                 width: 150 
    158                                 anchors.right: timestampTitle.left 
    159                         } 
    160                         HeaderTitle { 
    161                                 id: timestampTitle 
    162                                 text: "Last updated" 
    163                                 width: 100 
    164                                 anchors.right: parent.right 
    165                                 //horizontalAlignment: Text.AlignRight 
    166                         } 
    167                 } 
    168                 Repeater { 
    169                         model: sensorModel 
    170                         delegate: sensorView 
    171                 } 
    172                 Row{ 
    173                         spacing: 20 
    174                         Rectangle { 
    175                                 width: 50 
    176                                 height: 20 
    177                                 Text{ 
    178                                         anchors.centerIn: parent 
    179                                         text: main.state == "VIEW" ? "Edit" : "View" 
    180                                 } 
    181                                 MouseArea{ 
    182                                         anchors.fill: parent 
    183                                         onClicked: { 
    184                                                 if(main.state == "VIEW"){ 
    185                                                         main.state = "EDIT" 
    186                                                 } 
    187                                                 else{ 
    188                                                         main.state  ="VIEW" 
    189                                                 } 
    190                                         } 
    191                                 } 
    192                         } 
    193                         /* 
    194                         Rectangle { 
    195                                 //TODO should this button exist at all, or always save? 
    196                                 width: 50 
    197                                 height: 20 
    198                                 visible: main.state == "EDIT" 
    199                                 Text{ 
    200                                         anchors.centerIn: parent 
    201                                         text: "Cancel" 
    202                                 } 
    203                                 MouseArea{ 
    204                                         anchors.fill: parent 
    205                                         onClicked: { 
    206                                                 main.state  ="VIEW" 
    207                                         } 
    208                                 } 
    209                         } 
    210                         */ 
    211                 } 
    212                 anchors.fill: parent 
    213         } 
    21421} 
  • telldus-gui/Plugins/Sensors/qmldir

    r1bebae r394270  
    11HeaderTitle 1.0 HeaderTitle.qml 
    22SensorValue 1.0 SensorValue.qml 
     3SensorView 1.0 SensorView.qml 
     4SensorList 1.0 SensorList.qml 
  • telldus-gui/Plugins/Sensors/sensor.cpp

    r8e377a r645ef2  
    1818        d = new PrivateData; 
    1919        d->id = 0; 
     20        d->showInList = false; 
    2021} 
    2122 
     
    4748 
    4849QString Sensor::name() const { 
    49         //return QString("%1 %2").arg(this->protocol()).arg(this->id()); //TODO: Remove when name is fully implemented 
    50         if(d->name == ""){ 
    51                 return "<unnamed>"; 
    52         } 
    5350        return d->name; 
    5451} 
    5552 
    5653void Sensor::setName(const QString &name) { 
     54        if (name == d->name) { 
     55                return; 
     56        } 
    5757        d->name = name; 
    5858        emit nameChanged(); 
     
    7272} 
    7373 
    74 SensorValue * Sensor::sensorValue(int type) { 
     74QObject * Sensor::sensorValue(int type) { 
    7575        return (d->values.contains(type) ? d->values[type] : 0); 
    7676} 
     
    9595 
    9696bool Sensor::showInList() const{ 
    97         //TODO showInList and name must be persistent... 
    9897        return d->showInList; 
    9998} 
  • telldus-gui/Plugins/Sensors/sensor.h

    r8e377a r645ef2  
    1818        Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged) 
    1919        Q_PROPERTY(QString protocol READ protocol WRITE setProtocol NOTIFY protocolChanged) 
    20         Q_PROPERTY(bool showInList READ showInList NOTIFY showInListChanged) 
     20        Q_PROPERTY(bool showInList READ showInList WRITE setShowInList NOTIFY showInListChanged) 
    2121 
    2222public: 
     
    3333 
    3434        QString name() const; 
    35         //void setName(const QString &name); 
    3635 
    3736        QString protocol() const; 
     
    4140        bool showInList() const; 
    4241 
    43         Q_INVOKABLE SensorValue *sensorValue(int type); 
     42        Q_INVOKABLE QObject *sensorValue(int type); 
    4443        Q_INVOKABLE void setValue(int type, const QString &value, const QDateTime &timestamp); 
    4544        Q_INVOKABLE void setName(const QString &name); 
  • telldus-gui/Plugins/Settings/settings.cpp

    r6281cf r645ef2  
    2727                d->s.setValue("size", list.size()); 
    2828                d->s.setValue("type", "array"); 
     29                //d->s.beginWriteArray("list"); //TODO write or read? What prefix? 
    2930                for (int i = 0; i < list.size(); ++i) { 
    30                         d->s.setArrayIndex(i); 
     31                        //d->s.setArrayIndex(i); 
    3132                        this->setValue(QString::number(i), list.at(i)); 
    3233                } 
     34                //d->s.endArray(); 
    3335                d->s.endGroup(); 
    3436 
  • telldus-gui/Plugins/TelldusCenterPlugin.cmake

    rf834ad r69b16f  
    6464ENDIF (UPDATE_TRANSLATIONS) 
    6565 
     66IF(Plugin_PATH) 
     67        FOREACH(_FILE ${Plugin_FILES}) 
     68                GET_FILENAME_COMPONENT(_FILENAME ${_FILE} NAME) 
     69                ADD_CUSTOM_COMMAND( OUTPUT ${Plugin_PATH}/${_FILENAME} 
     70                        COMMAND ${CMAKE_COMMAND} -E copy ${_FILE} ${Plugin_PATH}/${_FILENAME} 
     71                        DEPENDS ${_FILE} 
     72                        COMMENT "Copy ${_FILENAME} for plugin ${Plugin_NAME}" 
     73                ) 
     74                LIST(APPEND Plugin_TARGET_FILES "${Plugin_PATH}/${_FILENAME}") 
     75                IF (NOT APPLE) 
     76                        INSTALL(FILES ${_FILE} DESTINATION "${PLUGIN_LIB_FULL_PATH}/script/${Plugin_PATH_relative}") 
     77                ENDIF () 
     78        ENDFOREACH(_FILE) 
     79ENDIF(Plugin_PATH) 
     80 
    6681IF(Plugin_SRCS) 
    6782        ADD_LIBRARY(${Plugin_NAME} SHARED 
     
    7590                ${Plugin_TS} 
    7691                ${Plugin_QM} 
     92                ${Plugin_TARGET_FILES} 
    7793        ) 
    7894        TARGET_LINK_LIBRARIES( ${Plugin_NAME}   ${Plugin_LIBRARIES} ) 
     
    88104                        GET_BUNDLE_AND_EXECUTABLE(\"\${app}\" bundle exe valid) 
    89105                        SET(plugin \"\${bundle}/Contents/Plugins/script/${Plugin_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}\") 
    90                          
     106 
    91107                        GET_ITEM_KEY(\"\${plugin}\" pkey) 
    92108                        SET(prereqs \"\") 
     
    94110                        FOREACH(pr \${prereqs}) 
    95111                                GET_ITEM_KEY(\"\${pr}\" rkey) 
    96                                  
     112 
    97113                                #Don't change the path to TelldusCore 
    98114                                IF (NOT \"\${rkey}\" STREQUAL \"TelldusCore\") 
     
    118134                ) 
    119135                INSTALL(TARGETS ${Plugin_NAME} 
    120                         LIBRARY DESTINATION "${PLUGIN_LIB_FULL_PATH}/script"  
     136                        LIBRARY DESTINATION "${PLUGIN_LIB_FULL_PATH}/script" 
    121137                ) 
    122138        ENDIF (APPLE) 
     
    124140ELSE(Plugin_SRCS) 
    125141        ADD_CUSTOM_TARGET(${Plugin_NAME} ALL 
    126                 SOURCES ${Plugin_FILES} 
     142                SOURCES ${Plugin_FILES} ${Plugin_TARGET_FILES} 
    127143        ) 
    128144ENDIF(Plugin_SRCS) 
    129  
    130 IF(Plugin_PATH) 
    131         ADD_CUSTOM_COMMAND( TARGET ${Plugin_NAME} 
    132                 POST_BUILD 
    133                 COMMAND ${CMAKE_COMMAND} -E make_directory ${Plugin_PATH} 
    134                 COMMENT "Creating plugin directory ${Plugin_NAME}" 
    135         ) 
    136         FOREACH(_FILE ${Plugin_FILES}) 
    137                 GET_FILENAME_COMPONENT(_FILENAME ${_FILE} NAME) 
    138                 ADD_CUSTOM_COMMAND( TARGET ${Plugin_NAME} 
    139                         POST_BUILD 
    140                         COMMAND ${CMAKE_COMMAND} -E copy ${_FILE} ${Plugin_PATH} 
    141                         COMMENT "Copy ${_FILENAME} for plugin ${Plugin_NAME}" 
    142                 ) 
    143                 IF (NOT APPLE) 
    144                         INSTALL(FILES ${_FILE} DESTINATION "${PLUGIN_LIB_FULL_PATH}/script/${Plugin_PATH_relative}") 
    145                 ENDIF () 
    146         ENDFOREACH(_FILE) 
    147 ENDIF(Plugin_PATH) 
    148  
    149  
  • telldus-core/CMakeLists.txt

    rcb072c r48daf2  
    1212SET(PACKAGE_MAJOR_VERSION 2) 
    1313SET(PACKAGE_MINOR_VERSION 1) 
    14 SET(PACKAGE_PATCH_VERSION 0) 
     14SET(PACKAGE_PATCH_VERSION 1) 
    1515SET(PACKAGE_VERSION "${PACKAGE_MAJOR_VERSION}.${PACKAGE_MINOR_VERSION}.${PACKAGE_PATCH_VERSION}") 
    16 SET(PACKAGE_SUBVERSION) 
     16SET(PACKAGE_SUBVERSION "beta1") 
    1717SET(PACKAGE_SOVERSION 2) 
    1818 
  • telldus-gui/CMakeLists.txt

    r5f0d1b r48daf2  
    99SET(PACKAGE_MAJOR_VERSION 2) 
    1010SET(PACKAGE_MINOR_VERSION 1) 
    11 SET(PACKAGE_PATCH_VERSION 0) 
     11SET(PACKAGE_PATCH_VERSION 1) 
    1212SET(PACKAGE_SOVERSION 2) 
    1313SET(PACKAGE_VERSION "${PACKAGE_MAJOR_VERSION}.${PACKAGE_MINOR_VERSION}.${PACKAGE_PATCH_VERSION}") 
    14 SET(DISPLAYED_VERSION ${PACKAGE_VERSION}) 
     14SET(DISPLAYED_VERSION "${PACKAGE_VERSION}_beta1") 
    1515 
    1616SET(BRANDING "telldus" CACHE STRING "The brand to use") 
Note: See TracChangeset for help on using the changeset viewer.