summaryrefslogtreecommitdiffstats
path: root/src/app/GUI/syncbrowsebutton.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-08-28 22:44:34 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-08-31 23:30:34 +0900
commitf9abd9d505434c9244c03eac708e29a0ca042f6b (patch)
tree30a197ab4c413849188bc131ff859212e636c821 /src/app/GUI/syncbrowsebutton.h
parent14d42d284de233f9937becf3fc9ee0dabede3b21 (diff)
downloadkrusader-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/GUI/syncbrowsebutton.h')
-rw-r--r--src/app/GUI/syncbrowsebutton.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/app/GUI/syncbrowsebutton.h b/src/app/GUI/syncbrowsebutton.h
new file mode 100644
index 0000000..75e8ed8
--- /dev/null
+++ b/src/app/GUI/syncbrowsebutton.h
@@ -0,0 +1,67 @@
+/***************************************************************************
+ syncbrowsebutton.h - description
+ -------------------
+ copyright : (C) 2004 by Jonas Bähr
+ e-mail : krusader@users.sourceforge.net
+ web site : http://krusader.sourceforge.net
+ ---------------------------------------------------------------------------
+ Description
+ ***************************************************************************
+This is the button which toggles the synchron-browse-mode (a directory-change
+is done in both panels)
+I could imagine an optional extension which also performs mkdir etc. in the other panel
+or in ALL tabs on the other side (this could also include copy-actions to this panels)
+This is very handy if you have several identical clients which you want to update
+simoultanious.
+
+The current version only manages sync-browse and got no mode-switch options.
+
+ ***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef SYNCBROWSEBUTTON_H
+#define SYNCBROWSEBUTTON_H
+
+#include <tqtoolbutton.h>
+
+// No synchrone browsing
+#define SYNCBROWSE_OFF 0
+// Change only the directory
+#define SYNCBROWSE_CD 1
+/*
+// Make new dirs in both panels
+#define SYNCBROWSE_MKDIR 2
+// Delete in both panels
+#define SYNCBROWSE_DELETE 4
+
+// Do everything in all tabs on the other side (not only the oposite panel)
+#define SYNCBROWSE_ALLTABS 1024
+// Copy files not only to the other panel but to all tabs on the other side
+#define SYNCBROWSE_COPY 2048
+*/
+
+class SyncBrowseButton : public TQToolButton {
+ TQ_OBJECT
+
+public:
+ SyncBrowseButton(TQWidget *parent=0, const char *name=0);
+ ~SyncBrowseButton();
+
+ int state();
+
+protected:
+ int _state;
+ TQPixmap _icon_on;
+ TQPixmap _icon_off;
+
+private slots:
+ void slotToggled(bool on);
+};
+
+#endif