Changeset f89c1c for molecuilder/src/UIElements/TextDialog.cpp
- Timestamp:
- Jan 13, 2010, 10:22:29 AM (16 years ago)
- Children:
- 3896fc
- Parents:
- c489d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/UIElements/TextDialog.cpp
rc489d9 rf89c1c 17 17 TextDialog::TextDialog() 18 18 { 19 // TODO Auto-generated constructor stub20 21 19 } 22 20 23 21 TextDialog::~TextDialog() 24 22 { 25 // TODO Auto-generated destructor stub26 23 } 27 24 28 void TextDialog::handleInt(std::string title, int *target) { 29 Log() << Verbose(0) << title; 30 cin >> (*target); 25 void TextDialog::queryInt(const char* title, int* target){ 26 registerQuery(new IntTextQuery(title,target)); 31 27 } 32 28 33 void TextDialog::handleString(std::string title, string *target) { 34 string input; 35 Log() << Verbose(0) << title; 36 cin >> (*target); 29 void TextDialog::queryString(const char* title, string* target){ 30 registerQuery(new StringTextQuery(title,target)); 37 31 } 32 33 TextDialog::IntTextQuery::IntTextQuery(string title,int *_target) : 34 Dialog::IntQuery(title,_target) 35 {} 36 37 TextDialog::IntTextQuery::~IntTextQuery() {} 38 39 bool TextDialog::IntTextQuery::handle() { 40 Log() << Verbose(0) << IntQuery::getTitle(); 41 cin >> tmp; 42 return true; 43 } 44 45 TextDialog::StringTextQuery::StringTextQuery(string title,string *_target) : 46 Dialog::StringQuery(title,_target) 47 {} 48 49 TextDialog::StringTextQuery::~StringTextQuery() {} 50 51 bool TextDialog::StringTextQuery::handle() { 52 Log() << Verbose(0) << StringQuery::getTitle(); 53 cin >> tmp; 54 return true; 55 }
Note:
See TracChangeset
for help on using the changeset viewer.