// 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__7954 = cljs.core.seq.call(null,files);var chunk__7955 = null;var count__7956 = 0;var i__7957 = 0;while(true){
if((i__7957 < count__7956))
{var file = cljs.core._nth.call(null,chunk__7955,i__7957);lt.object.raise.call(null,obj,event,file);
{
var G__7958 = seq__7954;
var G__7959 = chunk__7955;
var G__7960 = count__7956;
var G__7961 = (i__7957 + 1);
seq__7954 = G__7958;
chunk__7955 = G__7959;
count__7956 = G__7960;
i__7957 = G__7961;
continue;
}
} else
{var temp__4092__auto__ = cljs.core.seq.call(null,seq__7954);if(temp__4092__auto__)
{var seq__7954__$1 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,seq__7954__$1))
{var c__4262__auto__ = cljs.core.chunk_first.call(null,seq__7954__$1);{
var G__7962 = cljs.core.chunk_rest.call(null,seq__7954__$1);
var G__7963 = c__4262__auto__;
var G__7964 = cljs.core.count.call(null,c__4262__auto__);
var G__7965 = 0;
seq__7954 = G__7962;
chunk__7955 = G__7963;
count__7956 = G__7964;
i__7957 = G__7965;
continue;
}
} else
{var file = cljs.core.first.call(null,seq__7954__$1);lt.object.raise.call(null,obj,event,file);
{
var G__7966 = cljs.core.next.call(null,seq__7954__$1);
var G__7967 = null;
var G__7968 = 0;
var G__7969 = 0;
seq__7954 = G__7966;
chunk__7955 = G__7967;
count__7956 = G__7968;
i__7957 = G__7969;
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__7974 = cljs.core.seq.call(null,files);var chunk__7975 = null;var count__7976 = 0;var i__7977 = 0;while(true){
if((i__7977 < count__7976))
{var file__$1 = cljs.core._nth.call(null,chunk__7975,i__7977);lt.object.raise.call(null,obj,event,file__$1);
{
var G__7978 = seq__7974;
var G__7979 = chunk__7975;
var G__7980 = count__7976;
var G__7981 = (i__7977 + 1);
seq__7974 = G__7978;
chunk__7975 = G__7979;
count__7976 = G__7980;
i__7977 = G__7981;
continue;
}
} else
{var temp__4092__auto__ = cljs.core.seq.call(null,seq__7974);if(temp__4092__auto__)
{var seq__7974__$1 = temp__4092__auto__;if(cljs.core.chunked_seq_QMARK_.call(null,seq__7974__$1))
{var c__4262__auto__ = cljs.core.chunk_first.call(null,seq__7974__$1);{
var G__7982 = cljs.core.chunk_rest.call(null,seq__7974__$1);
var G__7983 = c__4262__auto__;
var G__7984 = cljs.core.count.call(null,c__4262__auto__);
var G__7985 = 0;
seq__7974 = G__7982;
chunk__7975 = G__7983;
count__7976 = G__7984;
i__7977 = G__7985;
continue;
}
} else
{var file__$1 = cljs.core.first.call(null,seq__7974__$1);lt.object.raise.call(null,obj,event,file__$1);
{
var G__7986 = cljs.core.next.call(null,seq__7974__$1);
var G__7987 = null;
var G__7988 = 0;
var G__7989 = 0;
seq__7974 = G__7986;
chunk__7975 = G__7987;
count__7976 = G__7988;
i__7977 = G__7989;
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;
}
});
