Changeset 53 in flair-src for branches/mavlink/lib/FlairCore/src/ListWidget.cpp
- Timestamp:
- 07/27/16 17:42:27 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mavlink/lib/FlairCore/src/ListWidget.cpp
r49 r53 19 19 #include "LayoutPosition.h" 20 20 21 #include <sstream> 22 #include <iostream> 23 21 24 using std::string; 25 using std::ostringstream; 22 26 23 27 namespace flair { … … 26 30 ListWidget::ListWidget(const LayoutPosition *position, string name) 27 31 : Widget(position->getLayout(), name, string("ListWidget")) { 28 32 size_t count = 0; 33 while (1) { 34 string item; 35 ostringstream item_prop; 36 item_prop << "item" << count; 37 if(GetPersistentXmlProp(item_prop.str(), item)) { 38 SetVolatileXmlProp(item_prop.str(), item); 39 items.push_back(item); 40 } else { 41 break; 42 } 43 count++; 44 } 29 45 // value_changed = true; 30 46 SetVolatileXmlProp("row", position->Row()); … … 47 63 48 64 void ListWidget::XmlEvent(void) { 65 std::cout << "FlairCore ListWidget XmlEvent" << std::endl; 49 66 // GetMutex(); 50 67 // if (GetPersistentXmlProp("value", box_value))
Note:
See TracChangeset
for help on using the changeset viewer.