DzWidget Class Reference
[Interface Widget Objects]

DAZ Script widget base class. More...

Inheritance diagram for DzWidget:

DzButton DzColorWgt DzComboBox DzDateEdit DzDateTimeEdit DzDial DzDialog DzEnumSlider DzFloatSlider DzGroupBox DzHeader DzIntSlider DzLabel DzLCDNumber DzLineEdit DzPopupMenu DzScrollView DzSplitter DzTabWidget DzTextEdit DzTimeEdit List of all members.

Enumerations

enum  AlignmentFlags {
  AlignAuto, AlignLeft, AlignRight, AlignHCenter,
  AlignJustify, AlignTop, AlignBottom, AlignVCenter,
  AlignCenter
}
enum  Orientation { Horizontal, Vertical }
enum  SortOrder { Ascending, Descending }

Properties

Boolean enabled
Font font
Number height
Number maxHeight
Number maxWidth
Number minHeight
Number minWidth
Palette palette
Color paletteBackgroundColor
Pixmap paletteBackgroundPixmap
Color paletteForegroundColor
String toolTip
String whatsThis
Number width
Number x
Number y

Constructors

 DzWidget (DzWidget parent)

Methods

void hide ()
void reparent (DzWidget parent, Point pnt, Boolean showIt=false)
void setFixedHeight (Number height)
void setFixedSize (Number width, Number height)
void setFixedWidth (Number width)
void setGeometry (Number x, Number y, Number w, Number h)
void show ()

Detailed Description

DAZ Script widget base class.

This is an abstract base class that provides general functionality for DAZ Script widget components.


Member Enumeration Documentation

enum DzWidget::AlignmentFlags

Enumerated alignment types

Enumerator:
AlignAuto  Aligns horizontally according to the language (left for most)
AlignLeft  Aligns horizontally with the left edge
AlignRight  Aligns horizontally with the right edge
AlignHCenter  Aligns horizontally in the center
AlignJustify  Justifies the text in the available space
AlignTop  Aligns vertically with the top edge
AlignBottom  Aligns vertically with the bottom edge
AlignVCenter  Aligns vertically in the center
AlignCenter  Aligns in the center in both dimensions

enum DzWidget::Orientation

Enumerated orientation types

Enumerator:
Horizontal  Horizontal orientation (Left to Right)
Vertical  Vertical orientation (Top to Bottom)

enum DzWidget::SortOrder

Enumerated sort order types

Enumerator:
Ascending  Sort in ascending order
Descending  Sort in descending order


Constructor & Destructor Documentation

DzWidget::DzWidget ( DzWidget  parent  ) 

Create a new widget with the given parent


Member Function Documentation

void DzWidget::hide (  ) 

Hide the widget (make it invisible)

void DzWidget::reparent ( DzWidget  parent,
Point  pnt,
Boolean  showIt = false 
)

Reparents the widget.

Parameters:
parent The new parent widget for this widget.
pnt The location in the new parent widget to place this widget.
showIt If true, show() is called on the widget after it is reparented.

void DzWidget::setFixedHeight ( Number  height  ) 

Sets a fixed height for the widget

void DzWidget::setFixedSize ( Number  width,
Number  height 
)

Sets a fixed width and height for the widget

void DzWidget::setFixedWidth ( Number  width  ) 

Sets a fixed width for the widget

void DzWidget::setGeometry ( Number  x,
Number  y,
Number  w,
Number  h 
)

Sets the position and size for the widget (relative to its parent)

void DzWidget::show (  ) 

Show the widget (make it visible if its parent is visible)


Member Data Documentation

bool DzWidget::enabled

Holds whether the widget is enabled or disabled.

QFont DzWidget::font

Holds the Font for the widget and all child widgets that do not have a custom font of their own.

int DzWidget::height

Holds the height of the widget.

int DzWidget::maxHeight

Holds the maximum height of the widget.

int DzWidget::maxWidth

Holds the maximum width of the widget.

int DzWidget::minHeight

Holds the minimum height of the widget.

int DzWidget::minWidth

Holds the minimum width of the widget.

QPalette DzWidget::palette

Holds the Palette for the widget and all child widgets that do not have a custom palette of their own.

const QColor & DzWidget::paletteBackgroundColor

Holds the background color of the widget.

const QPixmap * DzWidget::paletteBackgroundPixmap

Holds the background Pixmap of the widget.

const QColor & DzWidget::paletteForegroundColor

Holds the foreground color of the widget.

String DzWidget::toolTip

Holds the tool tip text for the widget and all child widgets that do not have a custom tool tip text of their own.

QString DzWidget::whatsThis

Holds the "Whats This" text for the widget and all child widgets that do not have a custom "Whats This" text of their own.

int DzWidget::width

Holds the width of the widget.

int DzWidget::x

Holds the x position of the widget (relative to its parent).

int DzWidget::y

Holds the y position of the widget (relative to its parent).


Generated on Thu Sep 24 12:21:16 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.