OSDN Git Service

Rename boardmanager.cpp and boardmanager.h
[kita/kita.git] / kita / src / threadlistheaderview.h
1 /***************************************************************************
2 *   Copyright (C) 2003 by Hideki Ikemoto                                  *
3 *   ikemo@wakaba.jp                                                       *
4 *                                                                         *
5 *   This program is free software; you can redistribute it and/or modify  *
6 *   it under the terms of the GNU General Public License as published by  *
7 *   the Free Software Foundation; either version 2 of the License, or     *
8 *   (at your option) any later version.                                   *
9 ***************************************************************************/
10 #ifndef KITATHREADLISTHEADERVIEW_H
11 #define KITATHREADLISTHEADERVIEW_H
12
13 #include <QtGui/QHeaderView>
14
15 class KAction;
16
17 struct ColumnAttribute
18 {
19     const char* const labelName; /// for header's label
20     const char* const itemName;  /// for header's popupItem
21     QString keyName;   /// for KConfig's key
22     bool showDefault;  /// default setting.
23 };
24
25 namespace Kita
26 {
27     class ThreadListHeaderView : public QHeaderView
28     {
29         Q_OBJECT
30
31     public:
32         explicit ThreadListHeaderView(QWidget* parent = 0);
33         static const ColumnAttribute attribute[];
34
35     private:
36         void contextMenuEvent(QContextMenuEvent *event);
37
38         KAction* m_autoResizeAct;
39     };
40 }
41
42 #endif