Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Dialog.hpp

    rd3a5ea r2ededc2  
    1414class MoleculeListClass;
    1515class molecule;
     16class Vector;
    1617
    1718class Dialog
     
    2223
    2324  virtual void queryInt(const char *, int *)=0;
     25  virtual void queryDouble(const char*,double *)=0;
    2426  virtual void queryString(const char*, std::string *)=0;
    2527  virtual void queryMolecule(const char*,molecule**,MoleculeListClass*)=0;
     28  virtual void queryVector(const char*,Vector *,const double *const,bool)=0;
    2629
    2730  virtual bool display();
    28 
    29   virtual bool checkAll();
    30   virtual void setAll();
    3131
    3232protected:
     
    6767  };
    6868
     69  class DoubleQuery : public Query {
     70  public:
     71    DoubleQuery(std::string title,double *_target);
     72    ~DoubleQuery();
     73    virtual bool handle()=0;
     74    virtual void setResult();
     75  protected:
     76    double tmp;
     77  private:
     78    double *target;
     79  };
     80
    6981  class StringQuery : public Query {
    7082  public:
     
    7890    std::string *target;
    7991  };
     92
    8093
    8194  class MoleculeQuery : public Query {
     
    92105  };
    93106
     107  class VectorQuery : public Query {
     108  public:
     109      VectorQuery(std::string title,Vector *_target,const double *const _cellSize,bool _check);
     110      ~VectorQuery();
     111      virtual bool handle()=0;
     112      virtual void setResult();
     113    protected:
     114      Vector *tmp;
     115      const double *const cellSize;
     116      bool check;
     117    private:
     118      Vector *target;
     119  };
     120
    94121void registerQuery(Query* query);
    95122
Note: See TracChangeset for help on using the changeset viewer.