ProcessViewBrowser-ServerProgramming
Functions
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 pvSetMinSize (PARAM *p, int id, int w, int h)
 
int pvSetMaxSize (PARAM *p, int id, 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 pvSetParent (PARAM *p, int id, int id_parent)
 
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 pvSetFocus (PARAM *p, int id)
 
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 pvEnableTabBar (PARAM *p, int id, int state)
 
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 pvListViewSetHidden (PARAM *p, int id, int column, int hidden)
 
int pvListViewSetStandardPopupMenu (PARAM *p, int id, int standard_menu)
 
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)
 
int pvAddTabIcon (PARAM *p, int id, int position, const char *bmp_file, int download_icon=1)
 
int pvSetCellWidget (PARAM *p, int id, int parent, int row, int column)
 
int pvSetContentsMargins (PARAM *p, int id, int xleft, int ytop, int xright, int ybottom)
 
int pvSetSpacing (PARAM *p, int id, int param)
 

Detailed Description

These are the state routines

Function Documentation

◆ pvAddTabIcon()

int pvAddTabIcon ( PARAM p,
int  id,
int  position,
const char *  bmp_file,
int  download_icon = 1 
)
add tab icon
Allowed widgets QTabWidget QToolBox

◆ pvEnableTabBar()

int pvEnableTabBar ( PARAM p,
int  id,
int  state 
)
Enable the TabBar 0=disable | 1=enable
Allowed widgets QTabWidget

◆ pvHide()

int pvHide ( PARAM p,
int  id 
)
Hide the widget.
See also MainWindowIds.

◆ pvInsertColumns()

int pvInsertColumns ( PARAM p,
int  id,
int  col,
int  count = 1 
)
Insert count columns
Allowed widgets QTable

◆ pvInsertRows()

int pvInsertRows ( PARAM p,
int  id,
int  row,
int  count = 1 
)
Insert count rows
Allowed widgets QTable

◆ pvListViewEnsureVisible()

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

◆ pvListViewSetHidden()

int pvListViewSetHidden ( PARAM p,
int  id,
int  column,
int  hidden 
)
Hide or show column

◆ pvListViewSetOpen()

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

◆ pvListViewSetStandardPopupMenu()

int pvListViewSetStandardPopupMenu ( PARAM p,
int  id,
int  standard_menu 
)
Set standard popup menu of list view.
standard_menu = 0 do not show standard popup menu
standard_menu = 1 show standard popup menu and do not allow to hide column 1
standard_menu = N show standard popup menu and do not allow to hide column N

◆ pvMove()

int pvMove ( PARAM p,
int  id,
int  x,
int  y 
)
Move the widget to a new position.

◆ pvMoveContent()

int pvMoveContent ( PARAM p,
int  id,
int  pos 
)
Move within html page.
pos = Home|Backward|Forward|Reload
or
pos = Qt::KeyboardModifiers ored with ascii key. Where key >= ' ' && key < 128
      Qt::NoModifier      0x00000000  No modifier key is pressed.
      Qt::ShiftModifier   0x02000000  A Shift key on the keyboard is pressed.
      Qt::ControlModifier 0x04000000  A Ctrl key on the keyboard is pressed.
      Qt::AltModifier     0x08000000  An Alt key on the keyboard is pressed.
Allowed widgets: QTextBrowser

◆ pvMovieControl()

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

◆ pvMovieSpeed()

int pvMovieSpeed ( PARAM p,
int  id,
int  speed 
)
speed in percent
Allowed widgets QLabel

◆ pvRemoveColumn()

int pvRemoveColumn ( PARAM p,
int  id,
int  col 
)
Remove a colum
Allowed widgets QTable

◆ pvRemoveRow()

int pvRemoveRow ( PARAM p,
int  id,
int  row 
)
Remove a row
Allowed widgets QTable

◆ pvResize()

int pvResize ( PARAM p,
int  id,
int  w,
int  h 
)
Resize the widget.
See also MainWindowIds.

◆ pvSetAlignment()

int pvSetAlignment ( PARAM p,
int  id,
int  alignment 
)
Set Alignment. AlignmentFlags
Allowed widgets: QLabel QLineEdit

◆ pvSetCellWidget()

int pvSetCellWidget ( PARAM p,
int  id,
int  parent,
int  row,
int  column 
)
set cell widget within a table
Allowed widgets QTable

◆ pvSetChecked()

int pvSetChecked ( PARAM p,
int  id,
int  state 
)
Set the state (0,1) of a button
Allowed widgets: QRadioButton, QCheckBox

◆ pvSetContentsMargins()

int pvSetContentsMargins ( PARAM p,
int  id,
int  xleft,
int  ytop,
int  xright,
int  ybottom 
)
set margins within layout
Allowed widgets Layouts

◆ pvSetCurrentItem()

int pvSetCurrentItem ( PARAM p,
int  id,
int  index 
)
Set current item
Allowed widgets QComboBox

◆ pvSetEchoMode()

int pvSetEchoMode ( PARAM p,
int  id,
int  mode 
)
Set echo mode of QLineEdit.
mode = 0=NoEcho|1=Normal|2=Password

◆ pvSetEditable()

int pvSetEditable ( PARAM p,
int  id,
int  editable 
)
Set editable 0|1
Allowed widgets QLineEdit, QMultiLineEdit, QTable, QComboBox

◆ pvSetEnabled()

int pvSetEnabled ( PARAM p,
int  id,
int  enabled 
)
Set enabled 0|1
Allowed widgets all widgets

◆ pvSetFocus()

int pvSetFocus ( PARAM p,
int  id 
)
Set keyboad focus
Allowed widgets all widgets

◆ pvSetGeometry()

int pvSetGeometry ( PARAM p,
int  id,
int  x,
int  y,
int  w,
int  h 
)
Set the Geometry of the widget.

◆ pvSetMaxSize()

int pvSetMaxSize ( PARAM p,
int  id,
int  w,
int  h 
)
Set the Maximum Size of the widget.

◆ pvSetMinSize()

int pvSetMinSize ( PARAM p,
int  id,
int  w,
int  h 
)
Set the Minimum Size of the widget.

◆ pvSetMovie()

int pvSetMovie ( PARAM p,
int  id,
int  background,
const char *  filename 
)
Set to an animated MNG or GIF
background = 0|1
Allowed widgets QLabel

◆ pvSetMultiSelection()

int pvSetMultiSelection ( PARAM p,
int  id,
int  mode 
)
Set multi selection of QListBox, QListView.
mode = 0=SingleSelection|1=MultiSelection|2=NoSelection

◆ pvSetNumCols()

int pvSetNumCols ( PARAM p,
int  id,
int  num 
)
Set num cols in table
Allowed widgets QTable

◆ pvSetNumRows()

int pvSetNumRows ( PARAM p,
int  id,
int  num 
)
Set num rows in table
Allowed widgets QTable

◆ pvSetParent()

int pvSetParent ( PARAM p,
int  id,
int  id_parent 
)
Reparent a widget
All widgets allowed

◆ pvSetSorting()

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

◆ pvSetSpacing()

int pvSetSpacing ( PARAM p,
int  id,
int  param 
)
set spacing within layout
Allowed widgets Layouts

◆ pvSetStyle()

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

◆ pvSetTabPosition()

int pvSetTabPosition ( PARAM p,
int  id,
int  pos 
)
Set tab position 0=Top | 1=Bottom | 2=West | 3=East
Allowed widgets QTabWidget

◆ pvSetTimeEditDisplay()

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

◆ pvShow()

int pvShow ( PARAM p,
int  id 
)
Show the widget.
See also MainWindowIds.

◆ pvTableSetEnabled()

int pvTableSetEnabled ( PARAM p,
int  id,
int  x,
int  y,
int  enabled 
)
Set enabled 0|1
Allowed widgets QTable

◆ pvTableSetHeaderResizeEnabled()

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