1 | import { MenuFactory } from '@jupyterlab/apputils';
|
2 | import { Token } from '@lumino/coreutils';
|
3 | import { Menu } from '@lumino/widgets';
|
4 | import { IEditMenu } from './edit';
|
5 | import { IFileMenu } from './file';
|
6 | import { IHelpMenu } from './help';
|
7 | import { IKernelMenu } from './kernel';
|
8 | import { IRunMenu } from './run';
|
9 | import { ISettingsMenu } from './settings';
|
10 | import { ITabsMenu } from './tabs';
|
11 | import { IViewMenu } from './view';
|
12 |
|
13 |
|
14 |
|
15 | export declare const IMainMenu: Token<IMainMenu>;
|
16 |
|
17 |
|
18 |
|
19 | export interface IMainMenu {
|
20 | |
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | addMenu(menu: Menu, update?: boolean, options?: IMainMenu.IAddOptions): void;
|
28 | |
29 |
|
30 |
|
31 | readonly fileMenu: IFileMenu;
|
32 | |
33 |
|
34 |
|
35 | readonly editMenu: IEditMenu;
|
36 | |
37 |
|
38 |
|
39 | readonly viewMenu: IViewMenu;
|
40 | |
41 |
|
42 |
|
43 | readonly helpMenu: IHelpMenu;
|
44 | |
45 |
|
46 |
|
47 | readonly kernelMenu: IKernelMenu;
|
48 | |
49 |
|
50 |
|
51 | readonly runMenu: IRunMenu;
|
52 | |
53 |
|
54 |
|
55 | readonly settingsMenu: ISettingsMenu;
|
56 | |
57 |
|
58 |
|
59 | readonly tabsMenu: ITabsMenu;
|
60 | }
|
61 |
|
62 |
|
63 |
|
64 | export declare namespace IMainMenu {
|
65 | |
66 |
|
67 |
|
68 | interface IAddOptions {
|
69 | |
70 |
|
71 |
|
72 | rank?: number;
|
73 | }
|
74 | |
75 |
|
76 |
|
77 | interface IMenuOptions extends MenuFactory.IMenuOptions {
|
78 | }
|
79 | }
|