summaryrefslogtreecommitdiff
path: root/muse2/muse/widgets/header.h
blob: 3e7b73a4ea282a4b7beff6fb8f5d4783783b4798 (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
//=========================================================
//  MusE
//  Linux Music Editor
//    $Id: header.h,v 1.1.1.1 2003/10/27 18:55:03 wschweer Exp $
//  (C) Copyright 2000 Werner Schweer (ws@seh.de)
//=========================================================

#ifndef __HEADER_H__
#define __HEADER_H__

#include <QHeaderView>
#include <QAction>

class QStandardItemModel;

class Xml;

class Header : public QHeaderView {
      Q_OBJECT

      QStandardItemModel *itemModel;

   public:
      Header(QWidget* parent=0, const char* name=0);
      void writeStatus(int level, Xml&) const;
      void readStatus(Xml&);
      void setColumnLabel( const QString & s, int col, int width = -1 );
      void setToolTip(int col, const QString &text);
      void setWhatsThis(int col, const QString &text);
      void mousePressEvent ( QMouseEvent * e );
    private slots:
      void changeColumns(QAction* a);
};

#endif