diff options
Diffstat (limited to 'muse2/muse/arranger/alayout.h')
-rw-r--r-- | muse2/muse/arranger/alayout.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/muse2/muse/arranger/alayout.h b/muse2/muse/arranger/alayout.h new file mode 100644 index 00000000..1a1d5ee2 --- /dev/null +++ b/muse2/muse/arranger/alayout.h @@ -0,0 +1,48 @@ +//========================================================= +// MusE +// Linux Music Editor +// $Id: alayout.h,v 1.3.2.1 2008/01/19 13:33:46 wschweer Exp $ +// (C) Copyright 2002 Werner Schweer (ws@seh.de) +//========================================================= + +#ifndef __ALAYOUT_H__ +#define __ALAYOUT_H__ + +#include <qlayout.h> +#include <q3ptrlist.h> + +class QScrollBar; +class WidgetStack; + +//--------------------------------------------------------- +// TLLayout +// arranger trackList layout manager +//--------------------------------------------------------- + +class TLLayout : public QLayout + { + Q_OBJECT + + Q3PtrList<QLayoutItem> ilist; + QLayoutItem* li[6]; + QScrollBar* sb; + WidgetStack* stack; + + public: + TLLayout(QWidget *parent) : QLayout(parent, 0, -1) {} + ~TLLayout(); + + void addItem(QLayoutItem *item); + + void wadd(int idx, QWidget* w); + virtual QSize sizeHint() const; + virtual QSize minimumSize() const; + virtual QSize maximumSize() const; + QLayoutIterator iterator(); + void setGeometry(const QRect &rect); + + virtual QLayoutItem* itemAt(int) const { return 0;} // ddskrjo, is pure virtual, overridden + virtual QLayoutItem* takeAt(int) { return 0;} // ddskrjo, is pure virtual, overridden + virtual int count() const { return ilist.count(); } // ddskrjo, is pure virtual, overridden + }; +#endif |