2021-06-20 13:03:18 +02:00
|
|
|
import Plugin from '../Plugin';
|
|
|
|
import JoplinViewsDialogs from './JoplinViewsDialogs';
|
|
|
|
import JoplinViewsMenuItems from './JoplinViewsMenuItems';
|
|
|
|
import JoplinViewsMenus from './JoplinViewsMenus';
|
|
|
|
import JoplinViewsToolbarButtons from './JoplinViewsToolbarButtons';
|
|
|
|
import JoplinViewsPanels from './JoplinViewsPanels';
|
2023-09-18 18:40:36 +02:00
|
|
|
import JoplinViewsNoteList from './JoplinViewsNoteList';
|
2021-06-20 13:03:18 +02:00
|
|
|
/**
|
|
|
|
* This namespace provides access to view-related services.
|
|
|
|
*
|
|
|
|
* All view services provide a `create()` method which you would use to create the view object, whether it's a dialog, a toolbar button or a menu item.
|
|
|
|
* In some cases, the `create()` method will return a [[ViewHandle]], which you would use to act on the view, for example to set certain properties or call some methods.
|
|
|
|
*/
|
|
|
|
export default class JoplinViews {
|
|
|
|
private store;
|
|
|
|
private plugin;
|
|
|
|
private panels_;
|
|
|
|
private menuItems_;
|
|
|
|
private menus_;
|
|
|
|
private toolbarButtons_;
|
2023-09-18 18:40:36 +02:00
|
|
|
private dialogs_;
|
|
|
|
private noteList_;
|
2021-06-20 13:03:18 +02:00
|
|
|
private implementation_;
|
|
|
|
constructor(implementation: any, plugin: Plugin, store: any);
|
|
|
|
get dialogs(): JoplinViewsDialogs;
|
|
|
|
get panels(): JoplinViewsPanels;
|
|
|
|
get menuItems(): JoplinViewsMenuItems;
|
|
|
|
get menus(): JoplinViewsMenus;
|
|
|
|
get toolbarButtons(): JoplinViewsToolbarButtons;
|
2023-09-18 18:40:36 +02:00
|
|
|
get noteList(): JoplinViewsNoteList;
|
2021-06-20 13:03:18 +02:00
|
|
|
}
|