|
QGIS API Documentation
master-3f58142
|
00001 /*************************************************************************** 00002 qgsrendererv2propertiesdialog.h 00003 00004 --------------------- 00005 begin : December 2009 00006 copyright : (C) 2009 by Martin Dobias 00007 email : wonder dot sk at gmail dot com 00008 *************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef QGSRENDERERV2PROPERTIESDIALOG_H 00018 #define QGSRENDERERV2PROPERTIESDIALOG_H 00019 00020 #include <QDialog> 00021 00022 #include "ui_qgsrendererv2propsdialogbase.h" 00023 00024 class QKeyEvent; 00025 00026 class QgsVectorLayer; 00027 class QgsStyleV2; 00028 class QgsSymbolV2; 00029 00030 class QgsRendererV2Widget; 00031 00032 class GUI_EXPORT QgsRendererV2PropertiesDialog : public QDialog, private Ui::QgsRendererV2PropsDialogBase 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 QgsRendererV2PropertiesDialog( QgsVectorLayer* layer, QgsStyleV2* style, bool embedded = false ); 00038 00039 public slots: 00041 void rendererChanged(); 00042 00043 void apply(); 00044 void onOK(); 00045 00046 protected: 00047 00049 void keyPressEvent( QKeyEvent * event ); 00050 00051 00052 QgsVectorLayer* mLayer; 00053 QgsStyleV2* mStyle; 00054 00055 QgsRendererV2Widget* mActiveWidget; 00056 }; 00057 00058 00059 #endif