mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
/*global Ext, app*/
|
|
Ext.define("WebODFApp.view.Viewport", {
|
|
extend: "Ext.navigation.View",
|
|
xtype: "mainview",
|
|
requires: [
|
|
"WebODFApp.view.FilesList",
|
|
"WebODFApp.view.FileDetail"
|
|
],
|
|
config: {
|
|
fullscreen: true,
|
|
autoDestroy: false,
|
|
navigationBar: {
|
|
items: [{
|
|
xtype: 'button',
|
|
id: 'openButton',
|
|
text: 'Open',
|
|
align: 'right',
|
|
hidden: true
|
|
}]
|
|
},
|
|
items: [
|
|
{ title: 'Files', xtype: 'fileslist' }
|
|
]
|
|
}
|
|
/*
|
|
initComponent: function () {
|
|
|
|
//put instances of cards into app.views namespace
|
|
Ext.apply(app.views, {
|
|
filesList: new app.views.FilesList(),
|
|
fileDetail: new app.views.FileDetail(),
|
|
odfView: new app.views.OdfView()
|
|
});
|
|
//put instances of cards into viewport
|
|
Ext.apply(this, {
|
|
items: [
|
|
app.views.filesList,
|
|
app.views.fileDetail,
|
|
app.views.odfView
|
|
]
|
|
});
|
|
app.views.Viewport.superclass.initComponent.apply(this, arguments);
|
|
},
|
|
listeners: {
|
|
afterlayout: function () {
|
|
if (app.stores.filesystem.initialUrl) {
|
|
app.openUrl(app.stores.filesystem.initialUrl);
|
|
app.stores.filesystem.initialUrl = undefined;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
*/
|
|
});
|