source: tags/arb_5.5/PGT/dialog.hxx

Last change on this file was 3978, checked in by baderk, 18 years ago

Various changes from my own testing-repository are hereby transfered to the
main ARB repository. The sole purpose of this version is an increased
stability and less memory leaks, additional features will follow soon.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1// Copyright (c) 2004 - 2005 Kai Bader <baderk@in.tum.de>
2//
3// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
6// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
7// AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
8// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
10// CVS REVISION TAG  --  $Revision: 3978 $
11
12#ifndef MOTIF_DIALOG_H
13#define MOTIF_DIALOG_H
14
15#include <Xm/XmAll.h>
16
17using namespace std;
18#include <vector>
19
20
21class MDialog
22{
23    public:
24        MDialog(Widget);
25        MDialog(MDialog *parent= NULL);
26        ~MDialog();
27        void setDialogTitle(const char*);
28        void setDialogSize(int w, int h);
29        Widget shellWidget();
30        void show();
31        void hide();
32        void closeDialog();
33        bool isVisible();
34        //
35        void addChild(MDialog *);
36        void removeChild(MDialog *);
37        //
38        XmString CreateDlgString(const char*);
39    protected:
40        void createShell(const char*);
41        void realizeShell();
42        //
43        MDialog *m_parent_dialog;
44        Widget m_parent_widget;
45        Widget m_shell;
46        bool m_visible;
47        vector<MDialog*> m_children;
48        vector<XmString> m_strings;
49};
50
51
52// LOAD PIXMAP
53Pixmap PGT_LoadPixmap(const char *name, Screen *s, Pixel fg, Pixel bg);
54
55#endif // MOTIF_DIALOG_H
Note: See TracBrowser for help on using the repository browser.