00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Peter Brewer * 00003 * peter@pembshideaway.co.uk * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 00021 #ifndef OMGLAYERSETMANAGER_H 00022 #define OMGLAYERSETMANAGER_H 00023 00024 #include <ui_omglayersetmanagerbase.h> 00025 #include <omglayerset.h> 00026 #include <omgui.h> 00027 // 00028 // QT includes 00029 // 00030 #include <QMap> 00035 class OmgLayerSetManager : public QDialog, private Ui::OmgLayerSetManagerBase 00036 { 00037 Q_OBJECT; 00038 00039 public: 00040 OmgLayerSetManager(QWidget* parent = 0, Qt::WFlags fl = 0 ); 00041 ~OmgLayerSetManager(); 00042 /*$PUBLIC_FUNCTIONS$*/ 00043 00044 protected slots: 00045 /*$PUBLIC_SLOTS$*/ 00046 00047 void on_pbnImport_clicked(); 00048 void on_toolDelete_clicked(); 00049 void on_toolNew_clicked(); 00050 void on_toolCopy_clicked(); 00051 void on_toolAddLayers_clicked(); 00052 void on_toolDeleteLayers_clicked(); 00053 void on_toolNewMaskLayer_clicked(); 00054 void cellClicked(int theRow, int theColumn); 00055 00061 void selectLayerSet(QString theFileName); 00062 void on_pbnApply_clicked(); 00068 void refreshLayerSetTable(QString theGuid=""); 00069 void resizeEvent ( QResizeEvent * theEvent ); 00070 signals: 00071 00072 00073 00074 private: 00075 OmgLayerSet mLayerSet; 00076 Omgui::LayerSetMap mLayerSetMap; 00077 }; 00078 00079 #endif 00080