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:25:26 +0900 |
commit | 086012dcad8a976a0dabbb7cbc20c9cb612cdfa9 (patch) | |
tree | 56c9bfcfd7cd13b17707dc8862f26932e9814973 /src/app/GUI/syncbrowsebutton.h | |
parent | 409e7f624d202c7f96b4d0ab2da1834135169f8b (diff) | |
download | krusader-master.tar.gz krusader-master.zip |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/app/GUI/syncbrowsebutton.h')
-rw-r--r-- | src/app/GUI/syncbrowsebutton.h | 67 |
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 |