blob: 225a416f259da80848d4a5259560888576e45e70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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>
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
|