tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
Abstract_Widget_List Class Referenceabstract

#include <abstract_widget_list.hpp>

Inheritance diagram for Abstract_Widget_List:
Color_List_Widget

Classes

class  Private
 

Public Slots

void remove (int i)
 Remove row i. More...
 
virtual void append ()=0
 append a default row More...
 

Signals

void removed (int i)
 

Public Member Functions

 Abstract_Widget_List (QWidget *parent=0)
 
 ~Abstract_Widget_List ()
 
int count () const
 Get the number of items. More...
 
virtual void swap (int a, int b)=0
 Swap row a and row b. More...
 
bool isValidRow (int i) const
 Whether the given row index is valid. More...
 
void setRowHeight (int row, int height)
 

Protected Member Functions

void appendWidget (QWidget *w)
 Create a new row with the given widget. More...
 
QWidget * widget (int i)
 get the widget found at the given row More...
 
template<class T >
T * widget_cast (int i)
 get the widget found at the given row More...
 
void clear ()
 clear all rows without emitting signals More...
 

Constructor & Destructor Documentation

Abstract_Widget_List::Abstract_Widget_List ( QWidget *  parent = 0)
explicit
Abstract_Widget_List::~Abstract_Widget_List ( )

Member Function Documentation

virtual void Abstract_Widget_List::append ( )
pure virtualslot

append a default row

Implemented in Color_List_Widget.

void Abstract_Widget_List::appendWidget ( QWidget *  w)
protected

Create a new row with the given widget.

Must be caled by implementations of append()

void Abstract_Widget_List::clear ( )
protected

clear all rows without emitting signals

May be useful when implementation want to set all values at once

int Abstract_Widget_List::count ( ) const

Get the number of items.

bool Abstract_Widget_List::isValidRow ( int  i) const
inline

Whether the given row index is valid.

void Abstract_Widget_List::remove ( int  i)
slot

Remove row i.

void Abstract_Widget_List::removed ( int  i)
signal
void Abstract_Widget_List::setRowHeight ( int  row,
int  height 
)
virtual void Abstract_Widget_List::swap ( int  a,
int  b 
)
pure virtual

Swap row a and row b.

Implemented in Color_List_Widget.

QWidget * Abstract_Widget_List::widget ( int  i)
protected

get the widget found at the given row

template<class T >
T* Abstract_Widget_List::widget_cast ( int  i)
inlineprotected

get the widget found at the given row


The documentation for this class was generated from the following files: