manage_kml_dialog.h
Go to the documentation of this file.
00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
00002 
00003 /* -- BEGIN LICENSE BLOCK ----------------------------------------------
00004 
00005 Copyright (c) 2013, TB
00006 All rights reserved.
00007 
00008 Redistribution and use in source and binary forms are permitted
00009 provided that the above copyright notice and this paragraph are
00010 duplicated in all such forms and that any documentation,
00011 advertising materials, and other materials related to such
00012 distribution and use acknowledge that the software was developed
00013 by TB.  The name of the
00014 TB may not be used to endorse or promote products derived
00015 from this software without specific prior written permission.
00016 THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
00017 IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
00018 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00019 
00020   -- END LICENSE BLOCK ----------------------------------------------*/
00021 
00022 //----------------------------------------------------------------------
00030 //----------------------------------------------------------------------
00031 
00032 
00033 #ifndef MANAGE_KML_DIALOG_H
00034 #define MANAGE_KML_DIALOG_H
00035 
00036 #include <QDialog>
00037 #include "qt4/Qt/qfileinfo.h"
00038 #include <map>
00039 
00040 namespace Ui {
00041 class manageKmlDialog;
00042 }
00043 
00044 namespace rqt_marble_plugin{
00045 
00046 
00047 class ManageKmlDialog : public QDialog
00048 {
00049     Q_OBJECT
00050     
00051 public:
00052     explicit ManageKmlDialog(std::map< QString, bool> &kml_files, QWidget *parent = 0);
00053     ~ManageKmlDialog();
00054 
00055     std::map< QString, bool> getKmlFiles();
00056 
00057     
00058     void addAllKMLsToTreeWiev(std::map< QString, bool>& kml_files);
00059 private Q_SLOTS:
00060     void SetKMLFile(bool envoke_file_dialog = true );
00061     void deleteKML();
00062     void checkBoxClicked(int state);
00063     void cancelButtonClicked();
00064     void okButtonClicked();
00065 
00066 private:
00067     void addKMLToTreeWiev(QFileInfo &kmlFile, bool show);
00068 
00069     Ui::manageKmlDialog *ui;
00070     std::map< QString, bool> m_kml_files;
00071 
00072 };
00073 
00074 }
00075 
00076 #endif // MANAGE_KML_DIALOG_H


marble_plugin
Author(s): Tobias Bär
autogenerated on Thu Aug 27 2015 13:56:10