source: molecuilder/src/UIElements/TextDialog.cpp@ c489d9

Last change on this file since c489d9 was 6d21bd, checked in by Tillmann Crueger <crueger@…>, 16 years ago

Added Basis for creating globally accessible and compatible UIElements

  • Added Factories for UIElements that can be chosen at programm startup
  • Added Dialogs that can be used to query values
  • Property mode set to 100644
File size: 592 bytes
Line 
1/*
2 * TextDialog.cpp
3 *
4 * Created on: Jan 5, 2010
5 * Author: crueger
6 */
7
8#include <iostream>
9
10#include "TextDialog.hpp"
11#include "log.hpp"
12#include "verbose.hpp"
13
14using namespace std;
15
16
17TextDialog::TextDialog()
18{
19 // TODO Auto-generated constructor stub
20
21}
22
23TextDialog::~TextDialog()
24{
25 // TODO Auto-generated destructor stub
26}
27
28void TextDialog::handleInt(std::string title, int *target) {
29 Log() << Verbose(0) << title;
30 cin >> (*target);
31}
32
33void TextDialog::handleString(std::string title, string *target) {
34 string input;
35 Log() << Verbose(0) << title;
36 cin >> (*target);
37}
Note: See TracBrowser for help on using the repository browser.