Logo Search packages:      
Sourcecode: qgis version File versions

QgisApp Class Reference

#include <qgisapp.h>

Inheritance diagram for QgisApp:

List of all members.


Detailed Description

Main window for the Qgis application.

Definition at line 61 of file qgisapp.h.


Public Slots

virtual void actionOptions_activated ()
virtual void addDatabaseLayer ()
void drawExtentRectangle (QPainter *)
virtual void init ()
virtual void menubar_activated (int)
void setLayerOverviewStatus (QString theLayerId, bool theVisibilityFlag)
void showExtents (QgsRect theExtents)
void showProgress (int theProgress, int theTotalSteps)
void showStatusMessage (QString theMessage)
virtual void zoomToLayer ()

Signals

void keyPressed (QKeyEvent *e)
void newProject ()
void projectRead ()

Public Member Functions

bool addLayer (QFileInfo const &vectorFile)
bool addLayer (QStringList const &theLayerQStringList)
 overloaded vesion of the privat addLayer method that takes a list of filenames instead of prompting user with a dialog.
void addMapLayer (QgsMapLayer *theMapLayer)
bool addProject (QString projectFile)
bool addRasterLayer (QFileInfo const &rasterFile, bool guiWarning=true)
bool addRasterLayer (QStringList const &theLayerQStringList, bool guiWarning=true)
void addVectorLayer (QString vectorLayerPath, QString baseName, QString providerKey)
QgisIfacegetInterface ()
QgsMapLayerRegistrygetLayerRegistry ()
QgsMapCanvasgetMapCanvas ()
 QgisApp (QWidget *parent=0, const char *name=0, WFlags fl=WType_TopLevel)
 Constructor.
void removeAllLayers ()
 Remove all layers from the map and legend - reimplements same method from qgisappbase.
void saveMapAsImage (QString, QPixmap *)
 Overloaded version of the private function with same name that takes the imagename as a parameter.
void setExtent (QgsRect theRect)
void setTheme (QString themeName="default")
 Set theme (icons).
void setupToolbarPopups (QString themeName)
 Setup the toolbar popup menus for a given theme.
void setZOrder (std::list< QString >)
 Set the Z order of both mapcanvas and overview canvas. Typically this will be called by projectio when loading a stored project.

Public Attributes

QAction * actionAddAllToOverview
QAction * actionAddLayer
QAction * actionAddNonDbLayer
QAction * actionAddRasterLayer
QAction * actionCaptureLine
QAction * actionCapturePoint
QAction * actionCapturePolygon
QAction * actionCheckQgisVersion
QAction * actionExportMapServer
QAction * actionFileExit
QAction * actionFileNew
QAction * actionFileOpen
QAction * actionFilePrint
QAction * actionFileSave
QAction * actionFileSaveAs
QAction * actionHelpAbout
QAction * actionHelpContents
QAction * actionHideAllLayers
QAction * actionIdentify
QAction * actionInOverview
QAction * actionLayerProperties
QAction * actionNewVectorLayer
QAction * actionOpenTable
QAction * actionOptions
QAction * actionPan
QAction * actionPluginManager
QAction * actionProjectProperties
QAction * actionQgisHomePage
QAction * actionQgisSourceForgePage
QAction * actionRemoveAllFromOverview
QAction * actionRemoveLayer
QAction * actionSaveMapAsImage
QAction * actionSelect
QAction * actionShowAllLayers
QAction * actionTestButton
QAction * actionTestPlugin
QAction * actionWhatsThis
QAction * actionZoomFullExtent
QAction * actionZoomIn
QAction * actionZoomLast
QAction * actionZoomOut
QAction * actionZoomToLayer
QAction * actionZoomToSelected
QToolBar * DataToolbar
QAction * drawAction
QAction * fileExport_to_MapServerAction
QToolBar * FileToolbar
QFrame * frameMain
QToolBar * helpToolbar
QActionGroup * MapEditActions
QActionGroup * mapNavActions
QToolBar * mapNavigationToolbar
QMenuBar * menubar
QToolBar * mPluginToolBar
QPopupMenu * popupMenuFile
QPopupMenu * popupMenuHelp
QPopupMenu * popupMenuLayers
QPopupMenu * SettingsMenu
QToolButton * tbtnCaptureTools
QToolButton * tbtnDisplayTools
QToolButton * tbtnOverviewTools
QToolBar * toolbarDataTools
QPopupMenu * unnamed

Protected Slots

virtual void languageChange ()

Protected Attributes

QGridLayout * QgisAppBaseLayout

Private Slots

void actionPluginManager_activated ()
 plugin manager
QgsMapLayeractiveLayer ()
 Return pointer to the active layer.
QString activeLayerSource ()
 Return data source of the active layer.
void addAllToOverview ()
 Add all loaded layers into the overview - overides qgisappbase method.
int addPluginMenu (QString menuText, QPopupMenu *menu)
 Add a plugin menu to the main Plugins menu.
int addPluginToolBarIcon (QAction *qAction)
 Add an icon to the plugin toolbar.
void checkQgisVersion ()
 Check qgis version against the qgis version server.
void currentLayerChanged (QListViewItem *)
 Disable/enable toolbar buttons as appropriate for selected layer.
void exportMapServer ()
 Export current view as a mapserver map file.
void fileNew (bool thePromptToSaveFlag)
 As above but allows forcing without prompt.
void fileNew ()
 Create a new project.
void fileOpen ()
 Open a project.
void filePrint ()
 Print the current map view frame.
void fileSave ()
 Save project.
void fileSaveAs ()
 Save project as.
void helpContents ()
 Open the help contents in a browser.
void helpQgisHomePage ()
 Open the QGIS homepage in users browser.
void helpQgisSourceForge ()
 Open the QGIS Sourceforge page in users browser.
void hideAllLayers ()
void inOverview (bool)
void keyPressEvent (QKeyEvent *e)
 reimplements widget keyPress event so we can check if cancel was pressed
void killSplashScreen ()
 Kills the splash screen.
void layerProperties ()
 Show layer properties for selected layer (called by right-click menu).
void layerProperties (QListViewItem *)
 Show layer properties for the selected layer.
void loadPlugin (QString name, QString description, QString mFullPath)
 plugin loader
void menubar_highlighted (int i)
std::map< int, QString > menuMapById ()
 Get the Menu map (key is menu id, value is name).
std::map< QString, int > menuMapByName ()
 Get the Menu map (key is name, value is menu id).
void newVectorLayer ()
 Create a new empty vector layer.
void openURL (QString url, bool useQgisDocDirectory=true)
 Open a url in the users configured browser.
void options ()
 options dialog slot
void populateMenuMaps ()
 Populate the menu maps.
void projectProperties ()
 Set project properties, including map untis.
void removeAllFromOverview ()
 Remove all loaded layers from the overview - overides qgisappbase method.
void removeLayer ()
 Remove a layer from the map and legend.
void removePluginToolBarIcon (QAction *qAction)
 Remove an icon from the plugin toolbar.
void restoreSessionPlugins (QString thePluginDirString)
 load any plugins used in the last qgis session
void restoreWindowState ()
 Restore the window and toolbar state.
void rightClickLegendMenu (QListViewItem *, const QPoint &, int)
 Show the right-click menu for the legend.
void saveMapAsImage ()
 Save the map view as an image - user is prompted for image name using a dialog.
void saveWindowState ()
 Save window state.
void setOverviewZOrder (QgsLegend *)
void showAllLayers ()
void showCapturePointCoordinate (QgsPoint &)
void showMouseCoordinate (QgsPoint &)
 Slot to show the map coordinate position of the mouse cursor.
void showScale (QString theScale)
 Slot to show current map scale;.
void socketConnected ()
void socketConnectionClosed ()
void socketError (int e)
void socketReadyRead ()
void testMapLayerPlugins ()
 test maplayer plugins
void testPluginFunctions ()
 test plugin functionality
void whatsThis ()
 Whats-this help slot.
void zoomToLayerExtent ()
 zoom to extent of layer

Private Member Functions

void about ()
 About QGis.
void addLayer ()
 Add a vector layer to the map.
bool addRasterLayer (QgsRasterLayer *theRasterLayer, bool theForceRedrawFlag=false)
 Add a raster layer to the map (passed in as a ptr). It waont force a refresh unless you explicitly.
void addRasterLayer ()
 Add a raster layer to the map (will prompt user for filename using dlg.
void attributeTable ()
 show the attribute table for the currently selected layer
void captureLine ()
 activates the capture line tool
void capturePoint ()
 activates the capture point tool
void capturePolygon ()
 activates the capture polygon tool
void deleteSelected ()
void drawLayers ()
 draw layers
void drawPoint (double x, double y)
 Read Well Known Binary stream from PostGIS.
void fileExit ()
 Exit Qgis.
void identify ()
 Identify feature(s) on the currently selected layer.
bool isValidVectorFileName (QString *theFileNameQString)
bool isValidVectorFileName (QString theFileNameQString)
QgisAppoperator= (QgisApp const &)
 QgisApp aren't copyable.
void pan ()
 Set map tool to pan.
 QgisApp (QgisApp const &)
 QgisApp aren't copyable.
int saveDirty ()
 check to see if file is dirty and if so, prompt the user th save it
void select ()
 activates the selection tool
void testButton ()
 test function
void zoomFull ()
 Zoom to full extent.
void zoomIn ()
 Set map tool to Zoom in.
void zoomOut ()
 Set map tool to Zoom out.
void zoomPrevious ()
 Zoom to the previous extent.
void zoomToSelected ()
 Zoom to selected features.

Private Attributes

bool mAddedLayersHidden
 Flag to indicate that newly added layers are not shown on.
QString mAppDir
 application directory
QLabel * mCoordsLabel
 Widget that will live in the statusbar to display coords.
QString mFullPathName
 full path name of the current map file (if it has been saved or loaded)
QgsHelpViewer * mHelpViewer
 help viewer
QgsMapCanvasmMapCanvas
 Legend list view control.
QCursor * mMapCursor
QgsLegendmMapLegend
 Table of contents (legend) for the map.
int mMapTool
 Current map tool.
QRect * mMapWindow
 Current map window extent in real-world coordinates.
std::map< int, QString > mMenuMapById
 menu map (key is menu id, value is name)
std::map< QString, int > mMenuMapByName
 menu map (key is name, value is menu id)
QgsMapCanvasmOverviewCanvas
 Map layer registry.
QPopupMenu * mPluginMenu
 Top level plugin menu.
QPopupMenu * mPopupMenu
 Popup menu.
QProgressBar * mProgressBar
 Widget that will live in the statusbar to show progress of operations.
QgsProviderRegistry * mProviderRegistry
QgisIfacemQgisInterface
QCheckBox * mRenderSuppresionCBox
 Widget used to suppress rendering.
double mScaleFactor
 scale factor
QLabel * mScaleLabel
 A central registry that keeps track of all loaded layers.
QSocket * mSocket
QString mStartupPath
QString mVersionMessage
bool myHideSplashFlag
 Flag to indicate if the splash screen is shown on startup.
QPopupMenu * toolPopupCapture
 Popup menu for the capture tools.
QPopupMenu * toolPopupDisplay
 Popup menu for the display tools.
QPopupMenu * toolPopupOverviews
 Popup menu for the map overview tools.

Friends

class QgisIface

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index