Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Dialog.hpp

    r94d131 r97ebf8  
    1111#include<string>
    1212#include<list>
    13 #include<vector>
    1413
    1514class atom;
     
    3332  virtual void queryVector(const char*,Vector *,const double *const,bool, std::string = "")=0;
    3433  virtual void queryBox(const char*,double ** const, std::string = "")=0;
    35   virtual void queryElement(const char*, std::vector<element *> *, std::string = "")=0;
     34  virtual void queryElement(const char*,const element **, std::string = "")=0;
    3635
    3736  virtual bool display();
     
    5049  //base class for all queries
    5150  class Query {
    52     friend class Dialog;
    5351  public:
    5452    Query(std::string _title, std::string _description = "");
     
    174172  class ElementQuery : public Query {
    175173  public:
    176     ElementQuery(std::string title, std::vector<element *> *_target, std::string _description = "");
     174    ElementQuery(std::string title, const element**_target, std::string _description = "");
    177175    virtual ~ElementQuery();
    178176    virtual bool handle()=0;
    179177    virtual void setResult();
    180178  protected:
    181     std::vector<element *> elements;
     179    const element *tmp;
    182180  private:
    183     std::vector<element *> * const target;
     181    const element **target;
    184182  };
    185183
Note: See TracChangeset for help on using the changeset viewer.