From 6420f478e7f9b06156c9066df294fe32601c4335 Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Wed, 25 Oct 2000 23:59:46 +0000 Subject: [PATCH] new file --- panda/src/gui/Sources.pp | 0 panda/src/gui/guiManager.I | 11 +++++++++++ panda/src/gui/guiManager.h | 16 ++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 panda/src/gui/Sources.pp create mode 100644 panda/src/gui/guiManager.I create mode 100644 panda/src/gui/guiManager.h diff --git a/panda/src/gui/Sources.pp b/panda/src/gui/Sources.pp new file mode 100644 index 0000000000..e69de29bb2 diff --git a/panda/src/gui/guiManager.I b/panda/src/gui/guiManager.I new file mode 100644 index 0000000000..a9538a5f9e --- /dev/null +++ b/panda/src/gui/guiManager.I @@ -0,0 +1,11 @@ +// Filename: guiManager.I +// Created by: cary (25Oct00) +// +//////////////////////////////////////////////////////////////////// + +INLINE GuiManager* GuiManager::get_ptr(void) { + if (_singleton == (GuiManager*)0L) { + _singleton = new GuiManager; + } + return _singleton; +} diff --git a/panda/src/gui/guiManager.h b/panda/src/gui/guiManager.h new file mode 100644 index 0000000000..2a66141852 --- /dev/null +++ b/panda/src/gui/guiManager.h @@ -0,0 +1,16 @@ +// Filename: guiManager.h +// Created by: cary (25Oct00) +// +//////////////////////////////////////////////////////////////////// + +#ifndef __GUIMANAGER_H__ +#define __GUIMANAGER_H__ + +class GuiManager { +private: + static GuiManager* _singleton; +public: + INLINE static GuiManager* get_ptr(void); +}; + +#endif /* __GUIMANAGER_H__ */