source: trunk/src/core/RpAbout.h @ 511

Last change on this file since 511 was 511, checked in by dkearney, 18 years ago

moving all .h files to their respective src directories, updating tools.py to include python's re module, updated setup.py.in to use .h files from the installed version of rappture and to adapt to the new location of .h files. .h files are now all stored in the lib directory under the rappture installation folder. this should simplify people's code, so they dont have to include wierd search paths for header files. adjusted the paths in rappture.in, allowing people to use their own version of python and perl. octave on the other hand is still broken for people downloading our binary and not using libhdf5-1.6.2. src's makefile.in was modified to copy the .h files from the core and cee directories over to the rappture installation directory. the top level makefile.in has all kinds of changes mainly you can now type in ./configure --prefix=... --with-matlab=... and then make install. this will build and install the gui, language bindings, and examples. these changes will probably break the automatic builds but the necessary changes to the rappture-runtime package should be committed in good time.

File size: 3.0 KB
Line 
1/*
2 * ======================================================================
3 *  Copyright (c) 2004-2005  Purdue Research Foundation
4 *
5 *  See the file "license.terms" for information on usage and
6 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
7 * ======================================================================
8 */
9#include <iostream>
10#include <string>
11#include <sstream>
12#include <stdlib.h>
13#include <errno.h>
14
15
16// #include "RpLibrary.h"
17
18#ifndef _RpABOUT_H
19#define _RpABOUT_H
20
21class RpAbout
22{
23    public:
24
25        // users member fxns
26
27        virtual RpAbout& setLabel       (std::string newLabel);
28        virtual RpAbout& setDesc        (std::string newDesc);
29        virtual RpAbout& setHints       (std::string newHints);
30        virtual RpAbout& setColor       (std::string newColor);
31        virtual RpAbout& setIcon        (std::string newIcon);
32
33        virtual std::string getLabel    () const;
34        virtual std::string getDesc     () const;
35        virtual std::string getHints    () const;
36        virtual std::string getColor    () const;
37        virtual std::string getIcon     () const;
38
39        RpAbout ()
40            :   label       (""),
41                desc        (""),
42                hints       (""),
43                color       (""),
44                icon        ("")
45        {};
46
47        RpAbout (
48                    std::string label
49                )
50            :   label       (label),
51                desc        (""),
52                hints       (""),
53                color       (""),
54                icon        ("")
55        {};
56
57        RpAbout (
58                    std::string label,
59                    std::string desc
60                )
61            :   label       (label),
62                desc        (desc),
63                hints       (""),
64                color       (""),
65                icon        ("")
66        {};
67
68        RpAbout (
69                    std::string label,
70                    std::string desc,
71                    std::string hints,
72                    std::string color,
73                    std::string icon
74                )
75            :   label       (label),
76                desc        (desc),
77                hints       (hints),
78                color       (color),
79                icon        (icon)
80        {}
81
82        // copy constructor
83        RpAbout ( const RpAbout& myRpAbout )
84            :   label       (myRpAbout.label),
85                desc        (myRpAbout.desc),
86                hints       (myRpAbout.hints),
87                color       (myRpAbout.color),
88                icon        (myRpAbout.icon)
89        {}
90
91        // default destructor
92        virtual ~RpAbout ()
93        {
94            // clean up dynamic memory
95        }
96
97    private:
98
99        std::string label;
100        std::string desc;
101        std::string hints;
102        std::string color;
103        std::string icon;
104
105
106};
107
108/*--------------------------------------------------------------------------*/
109/*--------------------------------------------------------------------------*/
110
111#endif
Note: See TracBrowser for help on using the repository browser.