/usr/include/KWWidgets/vtkKWRadioButton.h is in libkwwidgets1-dev 1.0.0~cvs20100930-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | /*=========================================================================
Module: $RCSfile: vtkKWRadioButton.h,v $
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkKWRadioButton - a radio button widget
// .SECTION Description
// A simple widget representing a radio button. The state can be set or
// queried.
#ifndef __vtkKWRadioButton_h
#define __vtkKWRadioButton_h
#include "vtkKWCheckButton.h"
class KWWidgets_EXPORT vtkKWRadioButton : public vtkKWCheckButton
{
public:
static vtkKWRadioButton* New();
vtkTypeRevisionMacro(vtkKWRadioButton,vtkKWCheckButton);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set/Get the state of the Radio button 0 = off 1 = on
vtkBooleanMacro(SelectedState,int);
virtual int GetSelectedState();
// Description:
// Set/Get the value to store in the button's associated variable
// whenever this button is selected.
virtual void SetValue(const char *v);
virtual void SetValueAsInt(int v);
virtual const char* GetValue();
virtual int GetValueAsInt();
// Description:
// Specifies a command to associate with the widget. This command is
// typically invoked when the button is selected or deselected.
// The 'object' argument is the object that will have the method called on
// it. The 'method' argument is the name of the method to be called and any
// arguments in string form. If the object is NULL, the method is still
// evaluated as a simple command.
// Note that the selected state is *not* passed as parameter, which is
// the case for vtkKWCheckButton for example. In most cases, since the
// selected state is shared among many radiobuttons, this command will
// likely to perform a task related to the meaning of the button itself.
virtual void SetCommand(vtkObject *object, const char *method);
// Description:
// Events. The SelectedStateChangedEvent is triggered when the button
// is selected or deselected.
// The following parameters are also passed as client data:
// - the current selected state: int
// Yes, this is duplicated from vtkKWCheckButton, so that code does not
// break when vtkKWRadioButton is not a subclass of vtkKWCheckButton anymore.
//BTX
enum
{
SelectedStateChangedEvent = 10000
};
//ETX
// Description:
// Set/Get the button's associated variable directly to a specific value.
virtual void SetVariableValue(const char *v);
virtual void SetVariableValueAsInt(int v);
virtual const char* GetVariableValue();
virtual int GetVariableValueAsInt();
// Description:
// Callbacks. Internal, do not use.
virtual void CommandCallback();
protected:
vtkKWRadioButton() {};
~vtkKWRadioButton() {};
// Description:
// Create the widget.
virtual void CreateWidget();
// Override the superclass (state is ignored)
virtual void InvokeCommand(int state);
private:
vtkKWRadioButton(const vtkKWRadioButton&); // Not implemented
void operator=(const vtkKWRadioButton&); // Not implemented
};
#endif
|