diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-28 22:44:34 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-31 23:30:34 +0900 |
commit | f9abd9d505434c9244c03eac708e29a0ca042f6b (patch) | |
tree | 30a197ab4c413849188bc131ff859212e636c821 /src/app/Panel/panelpopup.h | |
parent | 14d42d284de233f9937becf3fc9ee0dabede3b21 (diff) | |
download | krusader-r14.1.x.tar.gz krusader-r14.1.x.zip |
Restructure source foldersr14.1.x
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 086012dcad8a976a0dabbb7cbc20c9cb612cdfa9)
Diffstat (limited to 'src/app/Panel/panelpopup.h')
-rw-r--r-- | src/app/Panel/panelpopup.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/src/app/Panel/panelpopup.h b/src/app/Panel/panelpopup.h new file mode 100644 index 0000000..47b6c94 --- /dev/null +++ b/src/app/Panel/panelpopup.h @@ -0,0 +1,74 @@ +#ifndef _PANELPOPUP_H +#define _PANELPOPUP_H + +#include <tqwidget.h> +#include <tqwidgetstack.h> +#include <tqpixmap.h> +#include <tqvaluelist.h> +#include <tdefileitem.h> +#include <tqguardedptr.h> +#include <tdeio/previewjob.h> +#include <kurl.h> + +class TQButtonGroup; +class TQLabel; +class TQListViewItem; +class TQSplitter; +class KFileTreeView; +class TQToolButton; +class KrSqueezedTextLabel; +class KLineEdit; +class KComboBox; +class KrusaderImageFilePreview; +class PanelViewer; +class DiskUsageViewer; + +class PanelPopup: public TQWidget { + TQ_OBJECT + + enum Parts { Tree, Preview, QuickPanel, View, DskUsage, Last=0xFF }; +public: + PanelPopup( TQSplitter *splitter, bool left ); + ~PanelPopup(); + inline int currentPage() const { return stack->id(stack->visibleWidget()); } + + void saveSizes(); + +public slots: + void update(KURL url); + void show(); + void hide(); + +signals: + void selection(const KURL &url); + void hideMe(); + +protected slots: + virtual void setFocus(); + void tabSelected(int id); + void treeSelection(TQListViewItem*); + void slotDroppedOnTree(TQWidget *widget, TQDropEvent *e, KURL::List &lst, KURL &); + void handleOpenURLRequest(const KURL &url); + void quickSelect(); + void quickSelect(const TQString &); + void quickSelectStore(); + +protected: + bool _left; + bool _hidden; + TQWidgetStack *stack; + KrusaderImageFilePreview *viewer; + KrSqueezedTextLabel *dataLine; + TQGuardedPtr<TDEIO::PreviewJob> pjob; + KFileTreeView *tree; + TQToolButton *treeBtn, *previewBtn, *quickBtn, *viewerBtn, *duBtn; + TQButtonGroup *btns; + KLineEdit *quickFilter; + KComboBox *quickSelectCombo; + PanelViewer *panelviewer; + DiskUsageViewer *diskusage; + TQValueList<int> splitterSizes; + TQSplitter *splitter; +}; + +#endif // _PANELPOPUP_H |