00001 /****************************************************************************** 00002 STDR Simulator - Simple Two DImensional Robot Simulator 00003 Copyright (C) 2013 STDR Simulator 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 3 of the License, or 00007 (at your option) any later version. 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 You should have received a copy of the GNU General Public License 00013 along with this program; if not, write to the Free Software Foundation, 00014 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00015 00016 Authors : 00017 * Manos Tsardoulias, etsardou@gmail.com 00018 * Aris Thallas, aris.thallas@gmail.com 00019 * Chris Zalidis, zalidis@gmail.com 00020 ******************************************************************************/ 00021 00022 #ifndef STDR_INFO_LOADER 00023 #define STDR_INFO_LOADER 00024 00025 #include "ui_information.h" 00026 #include "stdr_gui/stdr_tools.h" 00027 00032 namespace stdr_gui 00033 { 00038 class CInfoLoader : 00039 public QWidget, 00040 public Ui_information 00041 { 00042 //------------------------------------------------------------------------// 00043 private: 00044 00046 int argc_; 00048 char ** argv_; 00049 00051 QIcon visible_icon_; 00052 00053 //------------------------------------------------------------------------// 00054 public: 00055 00057 QIcon visible_icon_on_; 00058 00060 QIcon visible_icon_off_; 00061 00063 QIcon visible_icon_trans_; 00064 00066 QTreeWidgetItem generalInfo; 00068 QTreeWidgetItem robotsInfo; 00070 QTreeWidgetItem mapHeight; 00072 QTreeWidgetItem mapWidth; 00074 QTreeWidgetItem mapOcgd; 00075 00082 CInfoLoader(int argc, char **argv); 00083 00088 ~CInfoLoader(void); 00089 00094 void deleteTree(void); 00095 00101 void deleteTreeNode(QTreeWidgetItem *item); 00102 00110 void updateMapInfo(float width,float height,float ocgd); 00111 00117 void updateRobots(const stdr_msgs::RobotIndexedVectorMsg& msg); 00118 00123 void autoResizeColumns(void); 00124 }; 00125 } 00126 00127 #endif