Ignore:
Timestamp:
May 9, 2010, 11:59:35 AM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
e62daa
Parents:
c93262
git-author:
Frederik Heber <heber@…> (05/09/10 11:15:17)
git-committer:
Frederik Heber <heber@…> (05/09/10 11:59:35)
Message:

new query class EmptyQuery for showing text messages.

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

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

    rc93262 rb918031  
    2929
    3030
     31void TextDialog::queryEmpty(const char* title, string description){
     32  registerQuery(new EmptyTextQuery(title,description));
     33}
     34
    3135void TextDialog::queryInt(const char* title, int* target, string description){
    3236  registerQuery(new IntTextQuery(title,target,description));
     
    5559/************************** Query Infrastructure ************************/
    5660
    57 TextDialog::IntTextQuery::IntTextQuery(string title,int *_target, std::string _description) :
     61TextDialog::EmptyTextQuery::EmptyTextQuery(string title, std::string _description) :
     62    Dialog::EmptyQuery(title,_description)
     63{}
     64
     65TextDialog::EmptyTextQuery::~EmptyTextQuery() {}
     66
     67bool TextDialog::EmptyTextQuery::handle() {
     68  cout << "Message of " << getTitle() << ":\n" << getDescription() << "\n";
     69  return true;
     70}
     71
     72TextDialog::IntTextQuery::IntTextQuery(string title, int * _target, std::string _description) :
    5873    Dialog::IntQuery(title,_target,_description)
    5974{}
Note: See TracChangeset for help on using the changeset viewer.