Replace the DirSelectionListener interface using a typedef'ed signal to increase simplicity and reduce boiler plate.

This commit is contained in:
Adam Reichold
2015-12-05 11:25:23 +01:00
parent a727460f77
commit 87016d353a
8 changed files with 23 additions and 61 deletions

View File

@@ -23,7 +23,6 @@
#include "windirmonitor.h"
#endif
#include "dirbrowserremoteinterface.h"
#include "dirselectionlistener.h"
#include "filebrowser.h"
#include "exiffiltersettings.h"
#include <giomm.h>
@@ -60,7 +59,6 @@ class FilePanel;
* - monitoring the directory (for any change)
*/
class FileCatalog : public Gtk::VBox,
public DirSelectionListener,
public PreviewLoaderListener,
public FilterPanelListener,
public FileBrowserListener,
@@ -175,7 +173,7 @@ public:
FileCatalog (CoarsePanel* cp, ToolBar* tb, FilePanel* filepanel);
~FileCatalog();
void dirSelected (const Glib::ustring& dirname, const Glib::ustring& openfile = "");
void dirSelected (const Glib::ustring& dirname, const Glib::ustring& openfile);
void closeDir ();
void refreshEditedState (const std::set<Glib::ustring>& efiles);