gSAFE  1.3.8
Signals | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
HArrayButton Class Reference

#include <guilib.h>

Inherits QPushButton.

Signals

void clickedValue (QString text)
 

Public Member Functions

 HArrayButton (QString text, QWidget *parent)
 

Static Public Member Functions

static QLayout * abc_filt (QWidget *parent, const QObject *receiver, const char *member)
 

Static Public Attributes

static int defaultSizeX = 0
 
static int defaultSizeY = 0
 

Detailed Description

HArrayButton is a helper class to creates an "abc" array of small QPushButton -s with labels abc letters: A B C D ... The size of buttons will be equalized automatically. The button array can be created with the abc_filt() function. When the user push a button the HArrayButton emits a signal with the pressed letter. (Can be useful to filter the result of a list to the first letter)

harraybuttonabc.png

Definition at line 82 of file guilib.h.

Constructor & Destructor Documentation

HArrayButton::HArrayButton ( QString  text,
QWidget *  parent 
)

Creates one piece of array-button. Use the abc_filt() to create a whole abc array.

Definition at line 443 of file guilib.cpp.

Member Function Documentation

QLayout * HArrayButton::abc_filt ( QWidget *  parent,
const QObject *  receiver,
const char *  member 
)
static

Creates an abc array of buttons.

Parameters
parentthe parent QWidget descendant
receiverConnect the "reciver" objects "member" named slot to the array buttons clicked signal. The "member" slot have to receive a QString parameter which will be the text of the pressed button.
membersee param receiver.
Returns
Returns a layout which contains the buttons.

Definition at line 460 of file guilib.cpp.

Member Data Documentation

int HArrayButton::defaultSizeX = 0
static

The size of the buttons. Automatically set, don't need to touch.

Definition at line 88 of file guilib.h.


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