Skip to content

Commit

Permalink
add some doxymentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 15, 2016
1 parent a2030d5 commit 62d079c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/core/qgsexpression.h
Original file line number Diff line number Diff line change
Expand Up @@ -784,17 +784,29 @@ class CORE_EXPORT QgsExpression
public:
Interval( double seconds = 0 ) : mSeconds( seconds ), mValid( true ) { }
~Interval();
//! interval length in years
double years() { return mSeconds / YEARS;}
//! interval length in months
double months() { return mSeconds / MONTHS; }
//! interval length in weeks
double weeks() { return mSeconds / WEEKS;}
//! interval length in days
double days() { return mSeconds / DAY;}
//! interval length in hours
double hours() { return mSeconds / HOUR;}
//! interval length in minutus
double minutes() { return mSeconds / MINUTE;}
//! interval length in seconds
double seconds() { return mSeconds; }
//! getter interval validity
bool isValid() { return mValid; }
//! setter interval validity
void setValid( bool valid ) { mValid = valid; }
//! compare two intervals
bool operator==( const QgsExpression::Interval& other ) const;
//! return an invalid interval
static QgsExpression::Interval invalidInterVal();
//! convert a string to an interval
static QgsExpression::Interval fromString( const QString& string );

private:
Expand Down Expand Up @@ -921,6 +933,7 @@ class CORE_EXPORT QgsExpression
public:
NodeLiteral( const QVariant& value ) : mValue( value ) {}

/** The value of the literal. */
inline QVariant value() const { return mValue; }

virtual NodeType nodeType() const override { return ntLiteral; }
Expand All @@ -942,6 +955,7 @@ class CORE_EXPORT QgsExpression
public:
NodeColumnRef( const QString& name ) : mName( name ), mIndex( -1 ) {}

/** The name of the column. */
QString name() const { return mName; }

virtual NodeType nodeType() const override { return ntColumnRef; }
Expand Down
4 changes: 3 additions & 1 deletion src/gui/qgsdatumtransformdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* \class QgsDatumTransformDialog
* \note not available in Python bindings
*/
class GUI_EXPORT QgsDatumTransformDialog: public QDialog, private Ui::QgsDatumTransformDialogBase
class GUI_EXPORT QgsDatumTransformDialog : public QDialog, private Ui::QgsDatumTransformDialogBase
{
Q_OBJECT
public:
Expand All @@ -34,8 +34,10 @@ class GUI_EXPORT QgsDatumTransformDialog: public QDialog, private Ui::QgsDatumTr
//! @note added in 2.4
void setDatumTransformInfo( const QString& srcCRSauthId, const QString& destCRSauthId );

//! getter for selected datum tranformations
QList< int > selectedDatumTransform();

//! dialog shall remember the selection
bool rememberSelection() const;

public slots:
Expand Down

0 comments on commit 62d079c

Please sign in to comment.