aboutsummaryrefslogtreecommitdiff
path: root/OpenFileGUICommand.cpp
blob: 4568f61a2feeeeda08c7bd64d7b19656c801a973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <vector>
#include <string>

#include "OpenFileGUICommand.h"
#include "LoadFilesCommand.h"
#include "View.h"

using namespace std;

void OpenFileGUICommand::execute() {
	this->get_view().dialog_file([](vector<string> files, void * data) -> void {
		auto self = static_cast<OpenFileGUICommand *>(data);
		LoadFilesCommand(self).execute(files);
	}, this);
}