1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-03-31 00:03:42 -04:00
QGIS/src/app/qgsattributesforminitcode.h
2017-11-13 10:32:15 +01:00

56 lines
1.9 KiB
C++

/***************************************************************************
qgsattributesforminitcode.h
---------------------
begin : October 2017
copyright : (C) 2017 by David Signer
email : david at opengis dot ch
***************************************************************************
* *
* 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 QGSATTRIBUTESFORMINITCODE_H
#define QGSATTRIBUTESFORMINITCODE_H
#include "ui_qgsattributesforminitcode.h"
#include "qgseditorconfigwidget.h"
#include "qgsfeature.h"
#include "qgsvectordataprovider.h"
#include "qgshelp.h"
#include "qgis_app.h"
#include <QWidget>
class QDialog;
class APP_EXPORT QgsAttributesFormInitCode: public QDialog, private Ui::QgsAttributesFormInitCode
{
Q_OBJECT
public:
explicit QgsAttributesFormInitCode();
void setCodeSource( QgsEditFormConfig::PythonInitCodeSource initCodeSourceComboBoxIndex );
void setInitFunction( const QString &initFunction );
void setInitFilePath( const QString &initFilePath );
void setInitCode( const QString &initCode );
QgsEditFormConfig::PythonInitCodeSource codeSource() const;
QString initFunction() const;
QString initFilePath() const;
QString initCode() const;
private:
//Ui::QgsAttributesFormInitCode *ui;
private slots:
void mInitCodeSourceComboBox_currentIndexChanged( int codeSource );
void showHelp();
};
#endif // QGSATTRIBUTESFORMINITCODE_H