/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public License, Version 1.1 (the "License"); you may not use this file * except in compliance with the License. * You may obtain a copy of the License at * * http://www.openairinterface.org/?page_id=698 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *------------------------------------------------------------------------------- * For more information about the OpenAirInterface (OAI) Software Alliance: * contact@openairinterface.org */ /*! \file mywindow.h * \brief manages the window and its components * \author M. Mosli * \date 2012 * \version 0.1 * \company Eurecom * \email: mosli@eurecom.fr */ #ifndef MYWINDOW_H #define MYWINDOW_H #include #include #include #include #include #include #include #include #include #include #include #include "openglwidget.h" class MyWindow : public QWidget { Q_OBJECT public: MyWindow(); QTextEdit* getConsoleField(); OpenGLWidget* getGL(); void importMap(); ~MyWindow(); public slots: void writeToConsole(QString data, int frame); void endOfTheSimulation(); void setDrawConnections(int draw); void setUseMap(int use); void setUsedMap(int map); void setNodesColor(int index); void setLinksColor(int index); void updateSize(int size); void updateSupervNode(int id); void updateSupervData(); signals: void exitSignal(); private: int pattern; QComboBox *used_map; QLabel *rssi_tab; QLabel *specific_position; QLabel *specific_state; QLabel *specific_dist; QLabel *specific_connected_enb; QLabel *specific_pathloss; QLabel *specific_rnti; QLabel *specific_rsrp; QLabel *specific_rsrq; QLabel *generic_frame; QLabel *simulation_data; QFrame *control_field; QFrame *openGL_field; OpenGLWidget *openGl; QFrame *console_field; QTextEdit *output; }; #endif // MYWINDOW_H