source: molecuilder/src/UIElements/TextDialog.hpp@ e62daa

Last change on this file since e62daa was b918031, checked in by Frederik Heber <heber@…>, 16 years ago

new query class EmptyQuery for showing text messages.

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

  • Property mode set to 100644
File size: 2.4 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
15class TextDialog : public Dialog
16{
17public:
18 TextDialog();
19 virtual ~TextDialog();
20
21 virtual void queryEmpty(const char *, std::string = "");
22 virtual void queryInt(const char *, int *, std::string = "");
23 virtual void queryString(const char*, std::string *, std::string = "");
24 virtual void queryDouble(const char*, double*, std::string = "");
25 virtual void queryMolecule(const char*,molecule**,MoleculeListClass*, std::string = "");
26 virtual void queryVector(const char*,Vector *,const double * const,bool, std::string = "");
27 virtual void queryElement(const char*,const element **, std::string = "");
28
29protected:
30 // specialized stuff for text queries
31 class EmptyTextQuery : public Dialog::EmptyQuery {
32 public:
33 EmptyTextQuery(std::string title, std::string _description = NULL);
34 virtual ~EmptyTextQuery();
35 virtual bool handle();
36 };
37
38 class IntTextQuery : public Dialog::IntQuery {
39 public:
40 IntTextQuery(std::string title, int *_target, std::string _description = NULL);
41 virtual ~IntTextQuery();
42 virtual bool handle();
43 };
44
45 class DoubleTextQuery : public Dialog::DoubleQuery {
46 public:
47 DoubleTextQuery(std::string title, double *_target, std::string _description = NULL);
48 virtual ~DoubleTextQuery();
49 virtual bool handle();
50 };
51
52 class StringTextQuery : public Dialog::StringQuery {
53 public:
54 StringTextQuery(std::string title, std::string *_target, std::string _description = NULL);
55 virtual ~StringTextQuery();
56 virtual bool handle();
57 };
58
59 class MoleculeTextQuery : public Dialog::MoleculeQuery {
60 public:
61 MoleculeTextQuery(std::string title, molecule **_target, MoleculeListClass *_molecules, std::string _description = NULL);
62 virtual ~MoleculeTextQuery();
63 virtual bool handle();
64 };
65
66 class VectorTextQuery : public Dialog::VectorQuery {
67 public:
68 VectorTextQuery(std::string title,Vector *_target,const double *const _cellSize,bool _check, std::string _description = NULL);
69 virtual ~VectorTextQuery();
70 virtual bool handle();
71 };
72
73 class ElementTextQuery : public Dialog::ElementQuery {
74 public:
75 ElementTextQuery(std::string title, const element **_target, std::string _description = NULL);
76 virtual ~ElementTextQuery();
77 virtual bool handle();
78 };
79};
80
81#endif /* TEXTDIALOG_HPP_ */
Note: See TracBrowser for help on using the repository browser.