QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
QgsSvgSelectorWidget Class Reference

#include <qgssvgselectorwidget.h>

Inheritance diagram for QgsSvgSelectorWidget:
Inheritance graph
Collaboration diagram for QgsSvgSelectorWidget:
Collaboration graph

Public Slots

void setSvgPath (const QString &svgPath)
 Accepts absolute and relative paths. More...


void svgSelected (const QString &path)

Public Member Functions

 QgsSvgSelectorWidget (QWidget *parent=0)
 ~QgsSvgSelectorWidget ()
QString currentSvgPath () const
QString currentSvgPathToName () const
QTreeView * groupsTreeView ()
QListView * imagesListView ()
QLineEdit * filePathLineEdit ()
QPushButton * filePathButton ()
QCheckBox * relativePathCheckbox ()
QLayout * selectorLayout ()

Static Public Member Functions

static QgsSvgSelectorWidgetcreate (QWidget *parent=0)

Protected Member Functions

void populateList ()

Private Slots

void populateIcons (const QModelIndex &idx)
void svgSelectionChanged (const QModelIndex &idx)
void updateCurrentSvgPath (const QString &svgPath)
void on_mFilePushButton_clicked ()
void updateLineEditFeedback (bool ok, QString tip=QString(""))
void on_mFileLineEdit_textChanged (const QString &text)

Private Attributes

QString mCurrentSvgPath

Detailed Description

Definition at line 64 of file qgssvgselectorwidget.h.

Constructor & Destructor Documentation

QgsSvgSelectorWidget::QgsSvgSelectorWidget ( QWidget *  parent = 0)
QgsSvgSelectorWidget::~QgsSvgSelectorWidget ( )

Definition at line 164 of file qgssvgselectorwidget.cpp.

Member Function Documentation

static QgsSvgSelectorWidget* QgsSvgSelectorWidget::create ( QWidget *  parent = 0)

Definition at line 72 of file qgssvgselectorwidget.h.

QString QgsSvgSelectorWidget::currentSvgPath ( ) const

Definition at line 207 of file qgssvgselectorwidget.cpp.

References currentSvgPathToName(), and mCurrentSvgPath.

Referenced by updateCurrentSvgPath().

QString QgsSvgSelectorWidget::currentSvgPathToName ( ) const

Definition at line 215 of file qgssvgselectorwidget.cpp.

References mCurrentSvgPath, and QgsSymbolLayerV2Utils::symbolPathToName().

Referenced by currentSvgPath().

QPushButton* QgsSvgSelectorWidget::filePathButton ( )

Definition at line 80 of file qgssvgselectorwidget.h.

QLineEdit* QgsSvgSelectorWidget::filePathLineEdit ( )

Definition at line 79 of file qgssvgselectorwidget.h.

QTreeView* QgsSvgSelectorWidget::groupsTreeView ( )

Definition at line 77 of file qgssvgselectorwidget.h.

QListView* QgsSvgSelectorWidget::imagesListView ( )

Definition at line 78 of file qgssvgselectorwidget.h.

void QgsSvgSelectorWidget::on_mFileLineEdit_textChanged ( const QString &  text)
void QgsSvgSelectorWidget::on_mFilePushButton_clicked ( )

Definition at line 244 of file qgssvgselectorwidget.cpp.

References file, tr, updateCurrentSvgPath(), and updateLineEditFeedback().

void QgsSvgSelectorWidget::populateIcons ( const QModelIndex &  idx)

Definition at line 233 of file qgssvgselectorwidget.cpp.

References svgSelectionChanged().

Referenced by QgsSvgSelectorWidget().

void QgsSvgSelectorWidget::populateList ( )

Definition at line 294 of file qgssvgselectorwidget.cpp.

Referenced by QgsSvgSelectorWidget().

QCheckBox* QgsSvgSelectorWidget::relativePathCheckbox ( )

Definition at line 81 of file qgssvgselectorwidget.h.

QLayout* QgsSvgSelectorWidget::selectorLayout ( )

Definition at line 82 of file qgssvgselectorwidget.h.

void QgsSvgSelectorWidget::setSvgPath ( const QString &  svgPath)

Accepts absolute and relative paths.

Definition at line 170 of file qgssvgselectorwidget.cpp.

References mCurrentSvgPath, and QgsSymbolLayerV2Utils::symbolNameToPath().

void QgsSvgSelectorWidget::svgSelected ( const QString &  path)

Referenced by updateCurrentSvgPath().

void QgsSvgSelectorWidget::svgSelectionChanged ( const QModelIndex &  idx)

Definition at line 226 of file qgssvgselectorwidget.cpp.

References updateCurrentSvgPath().

Referenced by populateIcons(), and QgsSvgSelectorWidget().

void QgsSvgSelectorWidget::updateCurrentSvgPath ( const QString &  svgPath)
void QgsSvgSelectorWidget::updateLineEditFeedback ( bool  ok,
QString  tip = QString( "" ) 

Definition at line 278 of file qgssvgselectorwidget.cpp.

References tr.

Referenced by on_mFileLineEdit_textChanged(), and on_mFilePushButton_clicked().

Member Data Documentation

QString QgsSvgSelectorWidget::mCurrentSvgPath

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