Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Dialog.hpp

    r97ebf8 r94d131  
    1111#include<string>
    1212#include<list>
     13#include<vector>
    1314
    1415class atom;
     
    3233  virtual void queryVector(const char*,Vector *,const double *const,bool, std::string = "")=0;
    3334  virtual void queryBox(const char*,double ** const, std::string = "")=0;
    34   virtual void queryElement(const char*,const element **, std::string = "")=0;
     35  virtual void queryElement(const char*, std::vector<element *> *, std::string = "")=0;
    3536
    3637  virtual bool display();
     
    4950  //base class for all queries
    5051  class Query {
     52    friend class Dialog;
    5153  public:
    5254    Query(std::string _title, std::string _description = "");
     
    172174  class ElementQuery : public Query {
    173175  public:
    174     ElementQuery(std::string title, const element**_target, std::string _description = "");
     176    ElementQuery(std::string title, std::vector<element *> *_target, std::string _description = "");
    175177    virtual ~ElementQuery();
    176178    virtual bool handle()=0;
    177179    virtual void setResult();
    178180  protected:
    179     const element *tmp;
     181    std::vector<element *> elements;
    180182  private:
    181     const element **target;
     183    std::vector<element *> * const target;
    182184  };
    183185
Note: See TracChangeset for help on using the changeset viewer.