Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
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