Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

popup_t.h

Go to the documentation of this file.
00001 /*
00002     File        : popup_t.h
00003     Date        : 19-Sep-02
00004     Description : Class to represent a popup toolbox gadget template.
00005 
00006     Copyright © 1995-2002 Alexander Thoukydides
00007 
00008     This program is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU General Public License
00010     as published by the Free Software Foundation; either version 2
00011     of the License, or (at your option) any later version.
00012 
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016     GNU General Public License for more details.
00017 
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
00021 */
00022 
00023 // Only include header file once
00024 #ifndef popup_t_h
00025 #define popup_t_h
00026 
00027 // Include alexlib header files
00028 #ifndef popup_b_h
00029 #include "popup_b.h"
00030 #endif
00031 #ifndef gadget_t_h
00032 #include "gadget_t.h"
00033 #endif
00034 #ifndef gadget_w_show_t_h
00035 #include "gadget_w_show_t.h"
00036 #endif
00037 
00038 // A class to represent a popup gadget template
00039 class popup_t : public virtual gadget_b,
00040                 public gadget_t,
00041                 public popup_b,
00042                 public gadget_w_show_t
00043 {
00044 public:
00045 
00046     /*
00047         Parameters  : void
00048         Returns     : -
00049         Description : Constructor function.
00050     */
00051     popup_t();
00052 
00053 protected:
00054 
00055     /*
00056         Parameters  : object    - The name of the object to show.
00057         Returns     : void
00058         Description : Gadget specific function to set the object to show.
00059     */
00060     virtual void _set_show(const char *object);
00061 
00062     /*
00063         Parameters  : object    - Pointer to buffer to hold the object name,
00064                                   or NULL to read the size of buffer required.
00065                       size      - The size of the buffer.
00066         Returns     : size_t    - Number of bytes written to the buffer, or
00067                                   the buffer size required if NULL passed.
00068         Description : Gadget specific function to get the object to show or
00069                       the buffer size required.
00070     */
00071     virtual size_t _get_show(char *object, size_t size) const;
00072 };
00073 
00074 #endif

Generated on Sun Jan 26 10:18:44 2025 for NBLib by doxygen 1.3.3