QGIS/src/app/qgsloadstylefromdbdialog.h

52 lines
1.9 KiB
C
Raw Normal View History

/***************************************************************************
2016-06-03 10:16:00 +02:00
qgsloadstylefromdbdialog.h
---------------------
begin : April 2013
copyright : (C) 2013 by Emilio Loi
email : loi at faunalia dot it
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSLOADFILEFROMDBDIALOG_H
#define QGSLOADFILEFROMDBDIALOG_H
#include "ui_qgsloadstylefromdbdialog.h"
#include "qgsguiutils.h"
2017-01-04 12:05:04 +01:00
#include "qgis_app.h"
2017-01-26 16:31:49 +00:00
#include "qgsvectorlayer.h"
#include "qgsvectordataprovider.h"
class APP_EXPORT QgsLoadStyleFromDBDialog : public QDialog, private Ui::QgsLoadStyleFromDBDialogLayout
{
QString mSelectedStyleId;
2017-01-26 16:31:49 +00:00
QString mSelectedStyleName;
int mSectionLimit = 0;
Q_OBJECT
public:
explicit QgsLoadStyleFromDBDialog( QWidget *parent = nullptr );
~QgsLoadStyleFromDBDialog() override;
2014-10-05 12:18:57 +02:00
2017-03-03 08:42:00 +01:00
void initializeLists( const QStringList &ids, const QStringList &names, const QStringList &descriptions, int sectionLimit );
QString getSelectedStyleId();
2017-01-26 16:31:49 +00:00
void selectionChanged( QTableWidget *styleTable );
void setLayer( QgsVectorLayer *l );
2013-05-02 23:12:01 +02:00
public slots:
void onRelatedTableSelectionChanged();
void onOthersTableSelectionChanged();
2017-01-26 16:31:49 +00:00
void deleteStyleFromDB();
2013-05-02 23:12:01 +02:00
private:
QgsVectorLayer *mLayer = nullptr;
};
#endif //QGSLOADFILEFROMDBDIALOG_H