/*
#
# i2mx_base.js - v0.1-Alpha
# Apache v2 License
#
*/

// Create img2musicXML (abbreviated as i2mx) namespace
var i2mx = {};

// Create i2mx "Data" class
i2mx.Data = new (function() {
    this.version_major = 0;
    this.version_minor = 0;
    this.version_patch = 0;

    this.lastModification = "2017-11-16"; // YYYY-MM-DD
});

// @TODO: Cache system?
// Create the i2mx "Elements" class
i2mx.Elements = new (function() {
    // "About"
    this.lastModification = function() {
        var id = "i2mx-ver_info-last-modification";
        return document.getElementById(id);
    };

    // "Image manager"
    this.imageList = function() {
        var id = "i2mx-img_mngr-file-list";
        return document.getElementById(id);
    };

    this.addImageBtn = function() {
        var id = "i2mx-img_mngr-add-file-btn";
        return document.getElementById(id);
    };

    this.hideImageBtn = function() {
        var id = "i2mx-img_mngr-hide-current-image-btn";
        return document.getElementById(id);
    };

    this.fileInput = function() {
        var id = "i2mx-img_mngr-file-input";
        return document.getElementById(id);
    };

    // "Page Manager"
    this.pageList = function() {
        var id = "i2mx-page_mngr-page-list";
        return document.getElementById(id);
    }

    this.pageCount = function() {
        var id = "i2mx-page_mngr-page-count";
        return document.getElementById(id);
    };

    this.addNewPageBtn = function() {
        var id = "i2mx-page_mngr-add-new-page-btn";
        return document.getElementById(id);
    };

    // "Canvas"
    this.drawingCanvas = function() {
        var id = "i2mx-canvas";
        return document.getElementById(id);
    }
    this.closeCurrentPageBtn = function() {
        var id = "i2mx-canvas-close-current-page-btn";
        return document.getElementById(id);
    }
});

@@ -308,9 +308,9 @@
 11-1
-6
+7
 %22; /

Update last modification info