summaryrefslogtreecommitdiffstats
path: root/src/app/Panel/panelpopup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/Panel/panelpopup.h')
-rw-r--r--src/app/Panel/panelpopup.h74
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