~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to muse/arranger/alayout.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2005-08-23 17:19:39 UTC
  • mto: (4.1.1 breezy) (1.1.9) (10.1.6 sid)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20050823171939-hd8fgzokb4dbj007
Tags: upstream-0.7.1+0.7.2pre2
ImportĀ upstreamĀ versionĀ 0.7.1+0.7.2pre2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//=========================================================
 
2
//  MusE
 
3
//  Linux Music Editor
 
4
//    $Id: alayout.h,v 1.3 2004/02/16 20:44:12 wschweer Exp $
 
5
//  (C) Copyright 2002 Werner Schweer (ws@seh.de)
 
6
//=========================================================
 
7
 
 
8
#ifndef __ALAYOUT_H__
 
9
#define __ALAYOUT_H__
 
10
 
 
11
#include <qlayout.h>
 
12
#include <qptrlist.h>
 
13
 
 
14
class QScrollBar;
 
15
class WidgetStack;
 
16
 
 
17
//---------------------------------------------------------
 
18
//   TLLayout
 
19
//    arranger trackList layout manager
 
20
//---------------------------------------------------------
 
21
 
 
22
class TLLayout : public QLayout
 
23
      {
 
24
      QPtrList<QLayoutItem> ilist;
 
25
      QLayoutItem* li[6];
 
26
      QScrollBar* sb;
 
27
      WidgetStack* stack;
 
28
 
 
29
    public:
 
30
      TLLayout(QWidget *parent) : QLayout(parent, 0, -1) {}
 
31
      ~TLLayout();
 
32
 
 
33
      void addItem(QLayoutItem *item);
 
34
 
 
35
      void wadd(int idx, QWidget* w);
 
36
      virtual QSize sizeHint() const;
 
37
      virtual QSize minimumSize() const;
 
38
      virtual QSize maximumSize() const;
 
39
      QLayoutIterator iterator();
 
40
      void setGeometry(const QRect &rect);
 
41
      };
 
42
#endif