~lubuntu-dev/juffed/trunk

« back to all changes in this revision

Viewing changes to plugins/fm/TreeView.h

  • Committer: Mikhail Murzin
  • Date: 2012-01-31 01:33:22 UTC
  • Revision ID: git-v1:28dda15acf875c1565ffd527d8d4e8daa88ac487
Added plugins

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _FM_TREE_VIEW_H_
 
2
#define _FM_TREE_VIEW_H_
 
3
 
 
4
class JuffPlugin;
 
5
class QMenu;
 
6
 
 
7
#include <QtGui/QTreeView>
 
8
 
 
9
class TreeView : public QTreeView {
 
10
Q_OBJECT
 
11
public:
 
12
        TreeView(JuffPlugin*, QWidget* parent = 0);
 
13
        void initMenu();
 
14
 
 
15
signals:
 
16
        void goUp();
 
17
 
 
18
protected:
 
19
        virtual void keyPressEvent(QKeyEvent* e);
 
20
        virtual bool eventFilter(QObject *obj, QEvent *event);
 
21
 
 
22
protected slots:
 
23
        void showHideColumn();
 
24
 
 
25
private:
 
26
        void renameCurrent();
 
27
 
 
28
        JuffPlugin* plugin_;
 
29
        QMenu* headerMenu_;
 
30
};
 
31
 
 
32
#endif