Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/panelpopup.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
43 | class KLineEdit; | 43 | class KLineEdit; | ||
44 | class KComboBox; | 44 | class KComboBox; | ||
45 | class PanelViewer; | 45 | class PanelViewer; | ||
46 | class DiskUsageViewer; | 46 | class DiskUsageViewer; | ||
47 | class KrFileTreeView; | 47 | class KrFileTreeView; | ||
48 | class KDirModel; | 48 | class KDirModel; | ||
49 | class KDirSortFilterProxyModel; | 49 | class KDirSortFilterProxyModel; | ||
50 | class vfile; | 50 | class vfile; | ||
51 | class FileManagerWindow; | 51 | class KrMainWindow; | ||
52 | 52 | | |||
53 | class PanelPopup: public QWidget | 53 | class PanelPopup: public QWidget | ||
54 | { | 54 | { | ||
55 | Q_OBJECT | 55 | Q_OBJECT | ||
56 | 56 | | |||
57 | enum Parts { Tree, Preview, View, DskUsage, Last = 0xFF }; | 57 | enum Parts { Tree, Preview, View, DskUsage, Last = 0xFF }; | ||
58 | public: | 58 | public: | ||
59 | PanelPopup(QSplitter *splitter, bool left, FileManagerWindow *mainWindow); | 59 | PanelPopup(QSplitter *splitter, bool left, KrMainWindow *mainWindow); | ||
60 | ~PanelPopup(); | 60 | ~PanelPopup(); | ||
61 | inline int currentPage() const { | 61 | inline int currentPage() const { | ||
62 | return stack->currentWidget()->property("KrusaderWidgetId").toInt(); | 62 | return stack->currentWidget()->property("KrusaderWidgetId").toInt(); | ||
63 | } | 63 | } | ||
64 | void setCurrentPage(int); | 64 | void setCurrentPage(int); | ||
65 | 65 | | |||
66 | public slots: | 66 | public slots: | ||
67 | void update(const vfile *vf); | 67 | void update(const vfile *vf); | ||
Show All 9 Lines | 75 | protected slots: | |||
77 | void treeSelection(); | 77 | void treeSelection(); | ||
78 | void handleOpenUrlRequest(const QUrl &url); | 78 | void handleOpenUrlRequest(const QUrl &url); | ||
79 | 79 | | |||
80 | protected: | 80 | protected: | ||
81 | virtual void focusInEvent(QFocusEvent*) Q_DECL_OVERRIDE; | 81 | virtual void focusInEvent(QFocusEvent*) Q_DECL_OVERRIDE; | ||
82 | 82 | | |||
83 | bool _left; | 83 | bool _left; | ||
84 | bool _hidden; | 84 | bool _hidden; | ||
85 | FileManagerWindow *_mainWindow; | 85 | KrMainWindow *_mainWindow; | ||
86 | QStackedWidget *stack; | 86 | QStackedWidget *stack; | ||
87 | KImageFilePreview *viewer; | 87 | KImageFilePreview *viewer; | ||
88 | KrSqueezedTextLabel *dataLine; | 88 | KrSqueezedTextLabel *dataLine; | ||
89 | QPointer<KIO::PreviewJob> pjob; | 89 | QPointer<KIO::PreviewJob> pjob; | ||
90 | KrFileTreeView *tree; | 90 | KrFileTreeView *tree; | ||
91 | QToolButton *treeBtn, *previewBtn, *viewerBtn, *duBtn; | 91 | QToolButton *treeBtn, *previewBtn, *viewerBtn, *duBtn; | ||
92 | QButtonGroup *btns; | 92 | QButtonGroup *btns; | ||
93 | KComboBox *quickSelectCombo; | 93 | KComboBox *quickSelectCombo; | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |