Skip to content

Commit

Permalink
set also unused flags
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5269 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Apr 12, 2006
1 parent 50ff77a commit ff743f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugins/grass/qgsgrassmodule.h
Expand Up @@ -219,6 +219,9 @@ class QgsGrassModuleOptions
// \param all false only the mas which were switched on
virtual bool inputRegion( struct Cell_head *window, bool all ) { return false; }

// ! Flag names
virtual QStringList flagNames() { return QStringList() ; }

protected:
//! QGIS application
QgisApp *mQgisApp;
Expand Down Expand Up @@ -273,6 +276,7 @@ class QgsGrassModuleStandardOptions: public QgsGrassModuleOptions, QWidget
bool usesRegion();
bool requestsRegion();
bool inputRegion( struct Cell_head *window, bool all );
QStringList flagNames() { return mFlagNames; }

private:
//! Name of module executable
Expand All @@ -284,6 +288,8 @@ class QgsGrassModuleStandardOptions: public QgsGrassModuleOptions, QWidget
//! Option items
std::vector<QgsGrassModuleItem*> mItems;

//! List of all flags. Necessary for scripts.
QStringList mFlagNames;
};

/*! \class QgsGrassModuleItem
Expand Down

0 comments on commit ff743f6

Please sign in to comment.