// Compiled by ClojureScript 0.0-2138
goog.provide('lt.objs.dialogs');
goog.require('cljs.core');
goog.require('lt.objs.app');
goog.require('lt.objs.app');
goog.require('lt.util.dom');
goog.require('lt.util.dom');
goog.require('lt.object');
goog.require('lt.object');
lt.objs.dialogs.remote = require("remote");
lt.objs.dialogs.dialog = lt.objs.dialogs.remote.require("dialog");
lt.objs.dialogs.dir = (function dir(obj,event){var files = lt.objs.dialogs.dialog.showOpenDialog(lt.objs.app.win,{"properties": ["openDirectory","multiSelections"]});var seq__12887 = cljs.core.seq.call(null,files);var chunk__12888 = null;var count__12889 = 0;var i__12890 = 0;while(true){
if((i__12890 < count__12889))
{var file = cljs.core._nth.call(null,chunk__12888,i__12890);lt.object.raise.call(null,obj,event,file);
{
var G__12891 = seq__12887;
var G__12892 = chunk__12888;
var G__12893 = count__12889;
var G__12894 = (i__12890 + 1);
seq__12887 = G__12891;
chunk__12888 = G__12892;
count__12889 = G__12893;
i__12890 = G__12894;
continue;
}
} else
{var temp__4092__auto__ = cljs.core.seq.call(null,seq__12887);if(temp__4092__auto__)
{var seq__12887__$1 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,seq__12887__$1))
{var c__4262__auto__ = cljs.core.chunk_first.call(null,seq__12887__$1);{
var G__12895 = cljs.core.chunk_rest.call(null,seq__12887__$1);
var G__12896 = c__4262__auto__;
var G__12897 = cljs.core.count.call(null,c__4262__auto__);
var G__12898 = 0;
seq__12887 = G__12895;
chunk__12888 = G__12896;
count__12889 = G__12897;
i__12890 = G__12898;
continue;
}
} else
{var file = cljs.core.first.call(null,seq__12887__$1);lt.object.raise.call(null,obj,event,file);
{
var G__12899 = cljs.core.next.call(null,seq__12887__$1);
var G__12900 = null;
var G__12901 = 0;
var G__12902 = 0;
seq__12887 = G__12899;
chunk__12888 = G__12900;
count__12889 = G__12901;
i__12890 = G__12902;
continue;
}
}
} else
{return null;
}
}
break;
}
});
lt.objs.dialogs.file = (function file(obj,event){var files = lt.objs.dialogs.dialog.showOpenDialog(lt.objs.app.win,{"properties": ["openFile","multiSelections"]});var seq__12907 = cljs.core.seq.call(null,files);var chunk__12908 = null;var count__12909 = 0;var i__12910 = 0;while(true){
if((i__12910 < count__12909))
{var file__$1 = cljs.core._nth.call(null,chunk__12908,i__12910);lt.object.raise.call(null,obj,event,file__$1);
{
var G__12911 = seq__12907;
var G__12912 = chunk__12908;
var G__12913 = count__12909;
var G__12914 = (i__12910 + 1);
seq__12907 = G__12911;
chunk__12908 = G__12912;
count__12909 = G__12913;
i__12910 = G__12914;
continue;
}
} else
{var temp__4092__auto__ = cljs.core.seq.call(null,seq__12907);if(temp__4092__auto__)
{var seq__12907__$1 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,seq__12907__$1))
{var c__4262__auto__ = cljs.core.chunk_first.call(null,seq__12907__$1);{
var G__12915 = cljs.core.chunk_rest.call(null,seq__12907__$1);
var G__12916 = c__4262__auto__;
var G__12917 = cljs.core.count.call(null,c__4262__auto__);
var G__12918 = 0;
seq__12907 = G__12915;
chunk__12908 = G__12916;
count__12909 = G__12917;
i__12910 = G__12918;
continue;
}
} else
{var file__$1 = cljs.core.first.call(null,seq__12907__$1);lt.object.raise.call(null,obj,event,file__$1);
{
var G__12919 = cljs.core.next.call(null,seq__12907__$1);
var G__12920 = null;
var G__12921 = 0;
var G__12922 = 0;
seq__12907 = G__12919;
chunk__12908 = G__12920;
count__12909 = G__12921;
i__12910 = G__12922;
continue;
}
}
} else
{return null;
}
}
break;
}
});
lt.objs.dialogs.save_as = (function save_as(obj,event,path){var temp__4092__auto__ = lt.objs.dialogs.dialog.showSaveDialog(lt.objs.app.win,{"defaultPath": path});if(cljs.core.truth_(temp__4092__auto__))
{var file = temp__4092__auto__;return lt.object.raise.call(null,obj,event,file);
} else
{return null;
}
});
