|
Last change
on this file since 3896fc was 3896fc, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
|
Added infrastructure to query molecules from MoleculeList
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * TextDialog.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Jan 5, 2010
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef TEXTDIALOG_HPP_
|
|---|
| 9 | #define TEXTDIALOG_HPP_
|
|---|
| 10 |
|
|---|
| 11 | #include <string>
|
|---|
| 12 |
|
|---|
| 13 | #include "UIElements/Dialog.hpp"
|
|---|
| 14 |
|
|---|
| 15 | class TextDialog : public Dialog
|
|---|
| 16 | {
|
|---|
| 17 | public:
|
|---|
| 18 | TextDialog();
|
|---|
| 19 | virtual ~TextDialog();
|
|---|
| 20 |
|
|---|
| 21 | virtual void queryInt(const char *, int *);
|
|---|
| 22 | virtual void queryString(const char*, std::string *);
|
|---|
| 23 | virtual void queryMolecule(const char*,molecule**,MoleculeListClass*);
|
|---|
| 24 |
|
|---|
| 25 | protected:
|
|---|
| 26 | // specialized stuff for text queries
|
|---|
| 27 | class IntTextQuery : public Dialog::IntQuery {
|
|---|
| 28 | public:
|
|---|
| 29 | IntTextQuery(std::string title, int *_target);
|
|---|
| 30 | ~IntTextQuery();
|
|---|
| 31 | virtual bool handle();
|
|---|
| 32 | };
|
|---|
| 33 |
|
|---|
| 34 | class StringTextQuery : public Dialog::StringQuery {
|
|---|
| 35 | public:
|
|---|
| 36 | StringTextQuery(std::string title, std::string *_target);
|
|---|
| 37 | ~StringTextQuery();
|
|---|
| 38 | virtual bool handle();
|
|---|
| 39 | };
|
|---|
| 40 |
|
|---|
| 41 | class MoleculeTextQuery : public Dialog::MoleculeQuery {
|
|---|
| 42 | public:
|
|---|
| 43 | MoleculeTextQuery(std::string title, molecule **_target, MoleculeListClass *_molecules);
|
|---|
| 44 | ~MoleculeTextQuery();
|
|---|
| 45 | virtual bool handle();
|
|---|
| 46 | };
|
|---|
| 47 | };
|
|---|
| 48 |
|
|---|
| 49 | #endif /* TEXTDIALOG_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.