qt-helpers.h File Reference

#include <qtreewidget.h>
#include <qstring.h>
#include <vector>
#include <assert.h>
#include <qmenu.h>
#include "qsong.h"
#include "iterator.h"
Include dependency graph for qt-helpers.h:
This graph shows which files directly or indirectly include this file:

Classes

class  treeWidgetIterator< T >
struct  AssociatedAction< T >

Typedefs

typedef treeWidgetIterator
< QTreeWidgetItem > 
stdTreeWidgetIterator
typedef unsigned8 wunsigned8
typedef unsigned4 wunsigned4
typedef unsigned2 wunsigned2
typedef unsigned1 wunsigned1

Functions

template<class T >
TfindItem (QTreeWidget *lst, QString text, int pos)
template<class T >
TfindOneItem (QTreeWidget *lst, QString text, int pos)
QTreeWidgetItem * findStdItem (QTreeWidget *lst, QString text, int pos)
QTreeWidgetItem * findOneStdItem (QTreeWidget *lst, QString text, int pos)
void selectAll (QTreeWidget *lst, bool yes)
template<class T >
TlastItem (QTreeWidget *lst)
template<class T >
TfirstItem (QTreeWidget *lst)
template<class T >
TnextSibling (T *lst)
QColor mixColor (QColor a, float4 d, QColor b)
void setBackgroundColor (QWidget *widget, QColor color)
QColor backgroundColor (QWidget *widget)
float4 qtof4 (QString str)
float8 qtof8 (QString str)
signed4 qtos4 (QString str)

Typedef Documentation

typedef treeWidgetIterator<QTreeWidgetItem> stdTreeWidgetIterator

Because some moron at Trolltech has no idea how to parse a type we can no longer use the unsigned1, unsigned2, unsigned4 and unsigned8 types directly. Instead we need to resort to a silly workaround in which we make sure that the bloody MOC compiler does not notice that we actually pass our favorite type along. Grmbl. I hate fools that think that they can program and just go with 'let's just fix it like this'. This said. We will be using wunsigned1 to 8 as typedefs for the other ones


Function Documentation

QColor backgroundColor ( QWidget *  widget  ) 

References assert().

Referenced by Config::open_ui().

template<class T >
T* findItem ( QTreeWidget *  lst,
QString  text,
int  pos 
) [inline]

The old Qt3 had a findItem function. In Qt4 this no longer exists, so we need to deal with it through a findItems (plural) form. which we did and also check the types directly

References assert(), and T.

template<class T >
T* findOneItem ( QTreeWidget *  lst,
QString  text,
int  pos 
) [inline]

References assert(), and T.

QTreeWidgetItem* findOneStdItem ( QTreeWidget *  lst,
QString  text,
int  pos 
) [inline]
QTreeWidgetItem* findStdItem ( QTreeWidget *  lst,
QString  text,
int  pos 
) [inline]
template<class T >
T* firstItem ( QTreeWidget *  lst  )  [inline]

References assert(), and T.

template<class T >
T* lastItem ( QTreeWidget *  lst  )  [inline]

References assert(), and T.

QColor mixColor ( QColor  a,
float4  d,
QColor  b 
)
template<class T >
T* nextSibling ( T lst  )  [inline]

Grunt, what a nice function this was... until they removed it

References assert(), and T.

float4 qtof4 ( QString  str  ) 
float8 qtof8 ( QString  str  ) 
signed4 qtos4 ( QString  str  ) 
void selectAll ( QTreeWidget *  lst,
bool  yes 
)
void setBackgroundColor ( QWidget *  widget,
QColor  color 
)

Referenced by Config::open_ui(), and setTempoColors().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2