2015-11-19 11:31:32 +01:00
|
|
|
var ipc = require('ipc'),
|
|
|
|
toolbarUi = require('./modules/toolbar-ui.js'),
|
|
|
|
broadcast = require('./modules/broadcast.js');
|
2015-11-19 06:00:09 +01:00
|
|
|
|
|
|
|
toolbarUi.app.on('ready', toolbarUi.ready);
|
|
|
|
toolbarUi.app.on('create-window', toolbarUi.createWindow);
|
|
|
|
toolbarUi.app.on('after-create-window', toolbarUi.afterCreateWindow);
|
|
|
|
toolbarUi.app.on('show', toolbarUi.show);
|
|
|
|
toolbarUi.app.on('after-show', toolbarUi.afterShow);
|
|
|
|
toolbarUi.app.on('hide', toolbarUi.show);
|
|
|
|
toolbarUi.app.on('after-hide', toolbarUi.afterHide);
|
|
|
|
|
|
|
|
ipc.on('import-photos', broadcast.importPhotos);
|
2015-11-19 11:31:32 +01:00
|
|
|
ipc.on('update-config', broadcast.updateConfig);
|
2015-11-19 06:00:09 +01:00
|
|
|
ipc.on('update-photos', broadcast.updatePhotos);
|
|
|
|
ipc.on('launch-finder', broadcast.launchFinder);
|
2015-11-19 11:31:32 +01:00
|
|
|
ipc.on('launch-url', broadcast.launchUrl);
|
2015-11-19 06:00:09 +01:00
|
|
|
ipc.on('program-quit', broadcast.programQuit);
|
2016-01-27 16:27:12 +01:00
|
|
|
ipc.on('load-update-photos', toolbarUi.onDropFiles);
|