State


Functions

int pvMoveContent (PARAM *p, int id, int pos)
int pvSetGeometry (PARAM *p, int id, int x, int y, int w, int h)
int pvSetAlignment (PARAM *p, int id, int alignment)
int pvSetChecked (PARAM *p, int id, int state)
int pvMove (PARAM *p, int id, int x, int y)
int pvResize (PARAM *p, int id, int w, int h)
int pvHide (PARAM *p, int id)
int pvShow (PARAM *p, int id)
int pvSetMultiSelection (PARAM *p, int id, int mode)
int pvSetEchoMode (PARAM *p, int id, int mode)
int pvSetEditable (PARAM *p, int id, int editable)
int pvSetEnabled (PARAM *p, int id, int enabled)
int pvTableSetEnabled (PARAM *p, int id, int x, int y, int enabled)
int pvTableSetHeaderResizeEnabled (PARAM *p, int id, int horizontal, int enabled, int section)
int pvSetSorting (PARAM *p, int id, int column, int mode)
int pvSetTabPosition (PARAM *p, int id, int pos)
int pvSetNumRows (PARAM *p, int id, int num)
int pvSetNumCols (PARAM *p, int id, int num)
int pvInsertRows (PARAM *p, int id, int row, int count=1)
int pvInsertColumns (PARAM *p, int id, int col, int count=1)
int pvRemoveRow (PARAM *p, int id, int row)
int pvRemoveColumn (PARAM *p, int id, int col)
int pvSetCurrentItem (PARAM *p, int id, int index)
int pvSetTimeEditDisplay (PARAM *p, int id, int hour, int minute, int second, int ampm)
int pvListViewEnsureVisible (PARAM *p, int id, const char *path)
int pvListViewSetOpen (PARAM *p, int id, const char *path, int open)
int pvSetStyle (PARAM *p, int id, int shape, int shadow, int line_width, int margin)
int pvSetMovie (PARAM *p, int id, int background, const char *filename)
int pvMovieControl (PARAM *p, int id, int step)
int pvMovieSpeed (PARAM *p, int id, int speed)

Detailed Description

These are the state routines

Function Documentation

int pvHide (  PARAM *  p,
int  id
) 
 

Hide the widget.

int pvInsertColumns (  PARAM *  p,
int  id,
int  col,
int  count = 1
) 
 

Insert count columns
Allowed widgets QTable

int pvInsertRows (  PARAM *  p,
int  id,
int  row,
int  count = 1
) 
 

Insert count rows
Allowed widgets QTable

int pvListViewEnsureVisible (  PARAM *  p,
int  id,
const char *  path
) 
 

Ensures that the given item is visible.
example:
path = "/dir/subdir/subsubdir"
path := similar to a unix directory path
Allowed widgets QListView

int pvListViewSetOpen (  PARAM *  p,
int  id,
const char *  path,
int  open
) 
 

Opens/Closes the given item.
open = 0 | 1
example:
path = "/dir/subdir/subsubdir"
path := similar to a unix directory path
Allowed widgets QListView

int pvMove (  PARAM *  p,
int  id,
int  x,
int  y
) 
 

Move the widget to a new position.

int pvMoveContent (  PARAM *  p,
int  id,
int  pos
) 
 

Move within html page.
pos = Home|Backward|Forward
Allowed widgets: QTextBrowser

int pvMovieControl (  PARAM *  p,
int  id,
int  step
) 
 

step == -2 restart
step == -1 unpause
step == 0  pause
step >  0  step step steps

Allowed widgets QLabel

int pvMovieSpeed (  PARAM *  p,
int  id,
int  speed
) 
 

speed in percent

Allowed widgets QLabel

int pvRemoveColumn (  PARAM *  p,
int  id,
int  col
) 
 

Remove a colum
Allowed widgets QTable

int pvRemoveRow (  PARAM *  p,
int  id,
int  row
) 
 

Remove a row
Allowed widgets QTable

int pvResize (  PARAM *  p,
int  id,
int  w,
int  h
) 
 

Resize the widget.

int pvSetAlignment (  PARAM *  p,
int  id,
int  alignment
) 
 

Set Alignment. AlignmentFlags
Allowed widgets: QLabel QLineEdit

int pvSetChecked (  PARAM *  p,
int  id,
int  state
) 
 

Set the state (0,1) of a button
Allowed widgets: QRadioButton, QCheckBox

int pvSetCurrentItem (  PARAM *  p,
int  id,
int  index
) 
 

Set current item
Allowed widgets QComboBox

int pvSetEchoMode (  PARAM *  p,
int  id,
int  mode
) 
 

Set echo mode of QLineEdit.
mode = 0=NoEcho|1=Normal|2=Password

int pvSetEditable (  PARAM *  p,
int  id,
int  editable
) 
 

Set editable 0|1
Allowed widgets QLineEdit, QMultiLineEdit, QTable

int pvSetEnabled (  PARAM *  p,
int  id,
int  enabled
) 
 

Set enabled 0|1
Allowed widgets all widgets

int pvSetGeometry (  PARAM *  p,
int  id,
int  x,
int  y,
int  w,
int  h
) 
 

Set the Geometry of the widget.

int pvSetMovie (  PARAM *  p,
int  id,
int  background,
const char *  filename
) 
 

Set to an animated MNG or GIF
background = 0|1

Allowed widgets QLabel

int pvSetMultiSelection (  PARAM *  p,
int  id,
int  mode
) 
 

Set multi selection of QListBox, QListView.
mode = 0=SingleSelection|1=MultiSelection|2=NoSelection

int pvSetNumCols (  PARAM *  p,
int  id,
int  num
) 
 

Set num cols in table
Allowed widgets QTable

int pvSetNumRows (  PARAM *  p,
int  id,
int  num
) 
 

Set num rows in table
Allowed widgets QTable

int pvSetSorting (  PARAM *  p,
int  id,
int  column,
int  mode
) 
 

Sort column
mode=0 decending
mode=1 ascendin
column=-1 do not allow sorting (this is the default)
Allowed widgets QListView

int pvSetStyle (  PARAM *  p,
int  id,
int  shape,
int  shadow,
int  line_width,
int  margin
) 
 

Set style of QLabel or QFrame
Shape. Shadow.

if parameter == -1 -> do not set this paramter

Allowed widgets QLabel QLineEdit QFrame QGroupBox QLCDNumber QProgressBar QToolBox

int pvSetTabPosition (  PARAM *  p,
int  id,
int  pos
) 
 

Set tab position 0=Top|1=Bottom
Allowed widgets QTabWidget

int pvSetTimeEditDisplay (  PARAM *  p,
int  id,
int  hour,
int  minute,
int  second,
int  ampm
) 
 

Set display of time edit
values may be 0 or 1
Allowed widgets QTimeEdit

int pvShow (  PARAM *  p,
int  id
) 
 

Show the widget.

int pvTableSetEnabled (  PARAM *  p,
int  id,
int  x,
int  y,
int  enabled
) 
 

Set enabled 0|1
Allowed widgets QTable

int pvTableSetHeaderResizeEnabled (  PARAM *  p,
int  id,
int  horizontal,
int  enabled,
int  section
) 
 

horizontal = 0 is vertical
horizontal = 1 is horizontal
enabled := 0|1
section := section in horizontal or vertical direction
Allowed widgets QTable


Generated on Mon Jun 5 08:33:36 2006 for ProcessViewBrowser-ServerProgramming by  doxygen 1.4.6