27 #include "../../../vp/qt/BufferDialog.h" 
   28 #include "../../af/ApplicationController.h" 
   29 #include "../../af/events/LayerEvents.h" 
   30 #include "../../af/Project.h" 
   34 #include <QtCore/QObject> 
   35 #include <QtGui/QMessageBox> 
   43   createAction(tr(
"Buffer...").toStdString(), 
"vector-processing-buffer");
 
   63   if(dlg.exec() != QDialog::Accepted)
 
   71   int reply = QMessageBox::question(0, tr(
"Buffer Result"), tr(
"The operation was concluded successfully. Would you like to add the layer to the project?"), QMessageBox::No, QMessageBox::Yes);
 
   73   if(prj && reply == QMessageBox::Yes)
 
static ApplicationController & getInstance()
It gives access to the controller singleton. 
 
This class models the concept of a project for the TerraLib Application Framework. 
 
This event signals that a new layer was created. 
 
te::map::AbstractLayerPtr getLayer()
 
This is an abstract class used to register actions into vp pluging. 
 
std::list< te::map::AbstractLayerPtr > getSingleLayers()
It gets all the single layers of the project. 
 
This file defines the Buffer class. 
 
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
 
BufferAction(QMenu *menu)
 
void setLayers(std::list< te::map::AbstractLayerPtr > layers)
Set the layer that can be used. 
 
virtual void onActionActivated(bool checked)
 
QWidget * getMainWindow() const 
Returns main window. 
 
void broadcast(te::qt::af::evt::Event *evt)
Send events in broadcast for all registered components. 
 
te::qt::af::Project * getProject()
Get the current project. 
 
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.