/
globe_plugin_dialog.h
54 lines (48 loc) · 1.87 KB
/
globe_plugin_dialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* $Id$
*/
/***************************************************************************
globe_plugin_dialog.h - settings dialog for the globe plugin
--------------------------------------
Date : 11-Nov-2010
Copyright : (C) 2010 by Marco Bernasocchi
Email : marco at bernawebdesign.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 QGIS_GLOBE_PLUGIN_DIALOG_H
#define QGIS_GLOBE_PLUGIN_DIALOG_H
#include <ui_globe_plugin_dialog_guibase.h>
#include <QDialog>
#include <QSettings>
#include "qgscontexthelp.h"
class QgsGlobePluginDialog:public QDialog, private Ui::QgsGlobePluginDialogGuiBase
{
Q_OBJECT
public:
QgsGlobePluginDialog( QWidget * parent = 0, Qt::WFlags fl = 0 );
~QgsGlobePluginDialog();
private:
QString earthFile;
QString openFile();
QSettings settings;
void restartGlobe();
bool globeRunning();
void showMessageBox( QString text);
//! Set osg/DisplaySettings
void setStereoConfig();
//! Init dialog from settings using defaults from osg/DisplaySettings
void loadStereoConfig();
//! Save settings
void saveStereoConfig();
private slots:
void on_buttonBox_accepted();
void on_buttonBox_rejected();
void on_resetDefaults_clicked();
};
#endif // QGIS_GLOBE_PLUGIN_DIALOG_H