#include <qgsoptions.h>
Definition at line 30 of file qgsoptions.h.
Public Slots | |
| void | on_pbnSelectProjection_clicked () |
| Slot called when user chooses to change the project wide projection. | |
| void | on_chkAntiAliasing_stateChanged () |
| void | on_chkUseQPixmap_stateChanged () |
| void | saveOptions () |
| void | themeChanged (const QString &) |
| Slot to change the theme this is handled when the user. | |
| bool | newVisible () |
| Return the desired state of newly added layers. | |
| void | on_pbnSelectionColour_clicked () |
| void | on_pbnMeasureColour_clicked () |
| void | on_pbnCanvasColor_clicked () |
| void | on_mLineColourToolButton_clicked () |
Public Member Functions | |
| QgsOptions (QWidget *parent=0, Qt::WFlags fl=QgisGui::ModalDialogFlags) | |
| Constructor. | |
| ~QgsOptions () | |
| Destructor. | |
| QString | theme () |
| Return the currently selected theme. | |
Protected Member Functions | |
| void | getEllipsoidList () |
| Populates combo box with ellipsoids. | |
| QString | getEllipsoidAcronym (QString theEllipsoidName) |
| QString | getEllipsoidName (QString theEllipsoidAcronym) |
Private Member Functions | |
| QStringList | i18nList () |
Private Attributes | |
| QString | mGlobalProj4String |
| Default proj4 string used for new layers added that have no projection. | |
| QgsOptions::QgsOptions | ( | QWidget * | parent = 0, |
|
| Qt::WFlags | fl = QgisGui::ModalDialogFlags | |||
| ) |
Constructor.
| parent | Parent widget (usually a QgisApp) | |
| name | name for the widget | |
| modal | true for modal dialog |
Definition at line 41 of file qgsoptions.cpp.
References QGis::DEFAULT_IDENTIFY_RADIUS, GEOPROJ4, getEllipsoidList(), getEllipsoidName(), i18nList(), QgsApplication::pkgDataPath(), QgsDebugMsg, saveOptions(), and themeChanged().
| QgsOptions::~QgsOptions | ( | ) |
| QString QgsOptions::theme | ( | ) |
Return the currently selected theme.
Definition at line 240 of file qgsoptions.cpp.
Referenced by QgisApp::options().
| void QgsOptions::on_pbnSelectProjection_clicked | ( | ) | [slot] |
Slot called when user chooses to change the project wide projection.
Definition at line 352 of file qgsoptions.cpp.
References QgsCoordinateReferenceSystem::createFromProj4(), QgsDebugMsg, QgsGenericProjectionSelector::selectedProj4String(), QgsGenericProjectionSelector::setSelectedCrsId(), and QgsCoordinateReferenceSystem::srsid().
| void QgsOptions::on_chkAntiAliasing_stateChanged | ( | ) | [slot] |
Definition at line 378 of file qgsoptions.cpp.
| void QgsOptions::on_chkUseQPixmap_stateChanged | ( | ) | [slot] |
Definition at line 388 of file qgsoptions.cpp.
| void QgsOptions::saveOptions | ( | ) | [slot] |
Definition at line 246 of file qgsoptions.cpp.
References getEllipsoidAcronym().
Referenced by QgsOptions().
| void QgsOptions::themeChanged | ( | const QString & | ) | [slot] |
Slot to change the theme this is handled when the user.
Definition at line 234 of file qgsoptions.cpp.
References QgisApp::instance(), and QgisApp::setTheme().
Referenced by QgsOptions().
| bool QgsOptions::newVisible | ( | ) | [slot] |
Return the desired state of newly added layers.
If a layer is to be drawn when added to the map, this function returns true.
Definition at line 400 of file qgsoptions.cpp.
| void QgsOptions::on_pbnSelectionColour_clicked | ( | ) | [slot] |
Slot to select the default map selection colour
Definition at line 198 of file qgsoptions.cpp.
| void QgsOptions::on_pbnMeasureColour_clicked | ( | ) | [slot] |
Slot to select the default measure tool colour
Definition at line 216 of file qgsoptions.cpp.
| void QgsOptions::on_pbnCanvasColor_clicked | ( | ) | [slot] |
Slot to select the default map selection colour
Definition at line 207 of file qgsoptions.cpp.
| void QgsOptions::on_mLineColourToolButton_clicked | ( | ) | [slot] |
Slot to select the colour of the digitizing rubber band
Definition at line 225 of file qgsoptions.cpp.
| void QgsOptions::getEllipsoidList | ( | ) | [protected] |
Populates combo box with ellipsoids.
Definition at line 405 of file qgsoptions.cpp.
References ELLIPS_FLAT_DESC, QgsApplication::qgisUserDbFilePath(), QgsDebugMsg, sqlite3_close, sqlite3_column_text, sqlite3_errmsg, sqlite3_finalize, sqlite3_open, sqlite3_prepare, sqlite3_step, SQLITE_OK, and SQLITE_ROW.
Referenced by QgsOptions().
| QString QgsOptions::getEllipsoidAcronym | ( | QString | theEllipsoidName | ) | [protected] |
Definition at line 445 of file qgsoptions.cpp.
References ELLIPS_FLAT, QgsApplication::qgisUserDbFilePath(), QgsDebugMsg, sqlite3_close, sqlite3_column_text, sqlite3_errmsg, sqlite3_finalize, sqlite3_open, sqlite3_prepare, sqlite3_step, SQLITE_OK, and SQLITE_ROW.
Referenced by saveOptions().
| QString QgsOptions::getEllipsoidName | ( | QString | theEllipsoidAcronym | ) | [protected] |
Definition at line 477 of file qgsoptions.cpp.
References ELLIPS_FLAT_DESC, QgsApplication::qgisUserDbFilePath(), QgsDebugMsg, sqlite3_close, sqlite3_column_text, sqlite3_errmsg, sqlite3_finalize, sqlite3_open, sqlite3_prepare, sqlite3_step, SQLITE_OK, and SQLITE_ROW.
Referenced by QgsOptions().
| QStringList QgsOptions::i18nList | ( | ) | [private] |
Definition at line 509 of file qgsoptions.cpp.
References QgsApplication::i18nPath(), and myFileList.
Referenced by QgsOptions().
QString QgsOptions::mGlobalProj4String [private] |
Default proj4 string used for new layers added that have no projection.
Definition at line 97 of file qgsoptions.h.
1.5.1