KWWidgets
Main Page
Classes
Files
File List
File Members
vtkKWSmallCounterLabel.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Module: vtkKWSmallCounterLabel.h,v
4
5
Copyright (c) Kitware, Inc.
6
All rights reserved.
7
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notice for more information.
12
13
=========================================================================*/
14
// .NAME vtkKWSmallCounterLabel - a (very) small counter label (icon)
15
// .SECTION Description
16
// A widget that represents a very small counter (as an icon), counting
17
// from 1 to 9 (any value over 9 is represented as 9+).
18
19
#ifndef __vtkKWSmallCounterLabel_h
20
#define __vtkKWSmallCounterLabel_h
21
22
#include "
vtkKWLabel.h
"
23
24
class
KWWidgets_EXPORT
vtkKWSmallCounterLabel
:
public
vtkKWLabel
25
{
26
public
:
27
static
vtkKWSmallCounterLabel
*
New
();
28
vtkTypeRevisionMacro(
vtkKWSmallCounterLabel
,
vtkKWLabel
);
29
void
PrintSelf
(ostream& os, vtkIndent indent);
30
31
// Description:
32
// Set/Get the value of the counter.
33
// Set it to 0 to hide the counter. Any value over 9 will be stored as
34
// 10 and represented as a 9+ icon.
35
virtual
void
SetValue(
unsigned
int
v);
36
vtkGetMacro(Value,
unsigned
int
);
37
38
// Description:
39
// Place the icon on top of its parent
40
virtual
void
Place();
41
42
43
protected
:
44
vtkKWSmallCounterLabel
();
45
~
vtkKWSmallCounterLabel
();
46
47
// Description:
48
// Create the widget.
49
virtual
void
CreateWidget
();
50
51
// Description:
52
// Update the icon.
53
virtual
void
UpdateIcon();
54
55
unsigned
int
Value;
56
vtkKWWidget
*OriginalParent;
57
58
private
:
59
vtkKWSmallCounterLabel
(
const
vtkKWSmallCounterLabel
&);
// Not implemented
60
void
operator=(
const
vtkKWSmallCounterLabel
&);
// Not implemented
61
};
62
63
64
#endif
Generated on Mon Mar 24 2014 05:21:25 for KWWidgets by
1.8.1.2