added preliminary support for commenting saves + some tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-05-05 14:40:58 +03:00
parent 6a31b48a96
commit f94a3025fe
3 changed files with 24 additions and 5 deletions

View File

@ -168,6 +168,8 @@ win64: $(APP_ZIP) $(WIN_BUILD_DIR)
chmod +x $(WIN_BUILD_DIR)/*.{exe,dll} chmod +x $(WIN_BUILD_DIR)/*.{exe,dll}
cp -vR \ cp -vR \
$(NODE_DIR) $(WIN_BUILD_DIR) $(NODE_DIR) $(WIN_BUILD_DIR)
# XXX is this correct???
cp -vR "`which exiftool`" $(WIN_BUILD_DIR)
# cleanup nwjs-sdk... # cleanup nwjs-sdk...
rm -f $(WIN_BUILD_DIR)/nwsnapshot.exe \ rm -f $(WIN_BUILD_DIR)/nwsnapshot.exe \
$(WIN_BUILD_DIR)/payload.exe \ $(WIN_BUILD_DIR)/payload.exe \

View File

@ -217,7 +217,7 @@
font-style: italic; font-style: italic;
font-weight: bold; font-weight: bold;
} }
.browse-widget .list>div.highlighted .text:after { .browse-widget .list>div.highlighted .text:last-child:after {
content: ' *'; content: ' *';
} }
.browse-widget:not(.flat) .list div:not(.not-traversable) .text:after { .browse-widget:not(.flat) .list div:not(.not-traversable) .text:after {

View File

@ -475,6 +475,15 @@ var FileSystemLoaderUIActions = actions.Actions({
}, },
}, },
// Save comments...
//
// Format:
// {
// <timestamp>: <comment>
// }
savecomments: null,
// XXX should the loader list be nested or open in overlay (as-is now)??? // XXX should the loader list be nested or open in overlay (as-is now)???
browsePath: ['File/Browse file system...', browsePath: ['File/Browse file system...',
widgets.makeUIDialog(function(base, callback){ widgets.makeUIDialog(function(base, callback){
@ -607,8 +616,7 @@ var FileSystemLoaderUIActions = actions.Actions({
// NOTE: this will set changes to all when loading a different state // NOTE: this will set changes to all when loading a different state
// that the latest and to non otherwise.... // that the latest and to non otherwise....
// //
// XXX handle named saves... // XXX add comment editing...
// XXX add ability to name a save...
// XXX need to handle saves (saveIndex(..) and friends) when loaded // XXX need to handle saves (saveIndex(..) and friends) when loaded
// a specific history position... // a specific history position...
// ...in theory saving and old index will create an incremental // ...in theory saving and old index will create an incremental
@ -675,8 +683,17 @@ var FileSystemLoaderUIActions = actions.Actions({
.forEach(function(d){ .forEach(function(d){
var txt = Date.fromTimeStamp(d).toShortDate() var txt = Date.fromTimeStamp(d).toShortDate()
// XXX get the save name... // get the save name...
make(txt) var title = [txt]
var comment = that.savecomments && that.savecomments[d]
//title.push(comment || '')
comment && title.push(comment)
// XXX is this the best format???
title = title.join(' - ')
make(title)
.attr('timestamp', d)
.on('open', function(){ .on('open', function(){
that.loadIndex(that.location.path, d) that.loadIndex(that.location.path, d)
.then(function(){ .then(function(){