Ignore:
Timestamp:
Jan 13, 2010, 10:22:29 AM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
3896fc
Parents:
c489d9
Message:

Changed dialog structure to use objects for queries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/UIElements/TextDialog.hpp

    rc489d9 rf89c1c  
    99#define TEXTDIALOG_HPP_
    1010
     11#include <string>
     12
    1113#include "UIElements/Dialog.hpp"
    1214
     
    1719  virtual ~TextDialog();
    1820
    19   virtual void handleInt(std::string,int *);
    20   virtual void handleString(std::string,std::string *);
     21  virtual void queryInt(const char *, int *);
     22  virtual void queryString(const char*, std::string *);
     23
     24protected:
     25  // specialized stuff for text queries
     26  class IntTextQuery : public Dialog::IntQuery {
     27  public:
     28    IntTextQuery(std::string title, int *_target);
     29    ~IntTextQuery();
     30    virtual bool handle();
     31  };
     32
     33  class StringTextQuery : public Dialog::StringQuery {
     34  public:
     35    StringTextQuery(std::string title, std::string *_target);
     36    ~StringTextQuery();
     37    virtual bool handle();
     38  };
    2139};
    2240
Note: See TracChangeset for help on using the changeset viewer.