/usr/include/KWWidgets/vtkKWWidgetWithScrollbars.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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | /*=========================================================================
Module: $RCSfile: vtkKWWidgetWithScrollbars.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 vtkKWWidgetWithScrollbars - an abstract class for composite widgets associated to two vtkKWScrollbar's
// .SECTION Description
// This provide a boilerplate for a composite widget associated to a horizontal
// and vertical scrollbars.
//
// Be aware that most subclasses of vtkKWWidgetWithScrollbars are
// generated automatically out of the vtkKWWidgetWithScrollbarsSubclass
// template located in the Templates directory. Therefore, even though the
// source code for those vtkKWWidgetWithScrollbars subclasses does not exist
// in the KWWidgets repository, they are still generated automatically and
// documented in the API online; check the vtkKWWidgetWithScrollbars API
// online for its subclasses, as well as the \subpage
// kwwidgets_autogenerated_page page. Classes related
// to the same template can be found in the
// \ref kwwidgets_autogenerated_widget_with_scrollbars_group section.
// .SECTION See Also
// vtkKWCanvasWithScrollbars vtkKWListBoxWithScrollbars vtkKWMultiColumnListWithScrollbars vtkKWTextWithScrollbars vtkKWTreeWithScrollbars
#ifndef __vtkKWWidgetWithScrollbars_h
#define __vtkKWWidgetWithScrollbars_h
#include "vtkKWCompositeWidget.h"
class vtkKWScrollbar;
class KWWidgets_EXPORT vtkKWWidgetWithScrollbars : public vtkKWCompositeWidget
{
public:
vtkTypeRevisionMacro(vtkKWWidgetWithScrollbars,vtkKWCompositeWidget);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set/Get the vertical scrollbar visibility (default to On).
virtual void SetVerticalScrollbarVisibility(int val);
vtkGetMacro(VerticalScrollbarVisibility, int);
vtkBooleanMacro(VerticalScrollbarVisibility, int);
// Description:
// Set/Get the horizontal scrollbar visibility (default to On).
virtual void SetHorizontalScrollbarVisibility(int val);
vtkGetMacro(HorizontalScrollbarVisibility, int);
vtkBooleanMacro(HorizontalScrollbarVisibility, int);
// Description:
// Access the internal scrollbars.
vtkGetObjectMacro(VerticalScrollbar, vtkKWScrollbar);
vtkGetObjectMacro(HorizontalScrollbar, vtkKWScrollbar);
// Description:
// Update the "enable" state of the object and its internal parts.
// Depending on different Ivars (this->Enabled, the application's
// Limited Edition Mode, etc.), the "enable" state of the object is updated
// and propagated to its internal parts/subwidgets. This will, for example,
// enable/disable parts of the widget UI, enable/disable the visibility
// of 3D widgets, etc.
virtual void UpdateEnableState();
protected:
vtkKWWidgetWithScrollbars();
~vtkKWWidgetWithScrollbars();
// Description:
// Create the widget.
virtual void CreateWidget();
// Description:
// Scrollbar visibility flags
int VerticalScrollbarVisibility;
int HorizontalScrollbarVisibility;
// Description:
// Scrollbars
vtkKWScrollbar *VerticalScrollbar;
vtkKWScrollbar *HorizontalScrollbar;
// Description:
// Create scrollbars and associate the scrollbars to a widget by
// setting up the callbacks between both instances.
// The associated *has* to be made for this class to work, but
// since we do not know the internal widget at that point, it is up
// to the subclass to reimplement both Create*Scrollbar() methods
// and have them simply call the super and the Associate*Scrollbar()
// methods with the internal argument as parameter.
virtual void CreateHorizontalScrollbar();
virtual void CreateVerticalScrollbar();
virtual void AssociateHorizontalScrollbarToWidget(vtkKWCoreWidget *widget);
virtual void AssociateVerticalScrollbarToWidget(vtkKWCoreWidget *widget);
// Description:
// Pack or repack the widget. This should be implemented by subclasses,
// but a convenience function PackScrollbarsWithWidget() can be
// called from the subclass just as easily.
virtual void Pack() = 0;
virtual void PackScrollbarsWithWidget(vtkKWWidget *widget);
private:
vtkKWWidgetWithScrollbars(const vtkKWWidgetWithScrollbars&); // Not implemented
void operator=(const vtkKWWidgetWithScrollbars&); // Not implemented
};
#endif
|