home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
yacl-012.zip
/
ui
/
xrtglbtn.h
< prev
Wrap
C/C++ Source or Header
|
1995-04-08
|
2KB
|
97 lines
#ifndef _xrtglbtn_h_ /* Fri Mar 11 08:38:02 1994 */
#define _xrtglbtn_h_
/*
*
* Copyright (C) 1994, M. A. Sridhar
*
*
* This software is Copyright M. A. Sridhar, 1994. You are free
* to copy, modify or distribute this software as you see fit,
* and to use it for any purpose, provided this copyright
* notice and the following disclaimer are included with all
* copies.
*
* DISCLAIMER
*
* The author makes no warranties, either expressed or implied,
* with respect to this software, its quality, performance,
* merchantability, or fitness for any particular purpose. This
* software is distributed AS IS. The user of this software
* assumes all risks as to its quality and performance. In no
* event shall the author be liable for any direct, indirect or
* consequential damages, even if the author has been advised
* as to the possibility of such damages.
*
*/
// ExOrToggleButton: an ``exclusive-or'' version of the toggle button, also
// called a radio button.
#if defined(__GNUC__)
#pragma interface
#endif
#include "base/integer.h"
#include "ui/simple.h"
class CL_EXPORT UI_ExOrButtonGroup;
class CL_EXPORT UI_CompositeVObject;
class CL_EXPORT UI_ExOrToggleButton: public UI_SimpleVObject {
public:
UI_ExOrToggleButton (UI_VObjCollection* parent,
const UI_Rectangle& shape,
UI_ViewID id = -1);
#if defined(__MS_WINDOWS__)
UI_ExOrToggleButton (UI_CompositeVObject* parent,
UI_ViewID id, UI_ViewHandle h);
// [MS-Windows-specific] For resource-based construction.
#endif
CL_Object& Model ();
virtual UI_WindowClass WindowClass () const;
const char* ClassName () const {return "UI_ExOrToggleButton";};
protected:
bool MakeVisualElement ();
void _PrivateInitialize ();
bool _ModelChanged (CL_Object&, long);
~UI_ExOrToggleButton(){;};
#if defined (__X_MOTIF__)
static void SelectionCallback (struct _WidgetRec*, void *, void *);
#endif
};
#endif /* _xrtglbtn_h_ */