1 | import { IWidgetTracker } from '@jupyterlab/apputils';
|
2 | import { Cell } from '@jupyterlab/cells';
|
3 | import { Token } from '@lumino/coreutils';
|
4 | import { ISignal } from '@lumino/signaling';
|
5 | import { Widget } from '@lumino/widgets';
|
6 | import { NotebookTools } from './notebooktools';
|
7 | import { NotebookPanel } from './panel';
|
8 | import { NotebookWidgetFactory } from './widgetfactory';
|
9 |
|
10 |
|
11 |
|
12 | export declare const INotebookWidgetFactory: Token<NotebookWidgetFactory.IFactory>;
|
13 |
|
14 |
|
15 |
|
16 | export declare const INotebookTools: Token<INotebookTools>;
|
17 |
|
18 |
|
19 |
|
20 | export interface INotebookTools extends Widget {
|
21 | activeNotebookPanel: NotebookPanel | null;
|
22 | activeCell: Cell | null;
|
23 | selectedCells: Cell[];
|
24 | addItem(options: NotebookTools.IAddOptions): void;
|
25 | }
|
26 |
|
27 |
|
28 |
|
29 | export declare namespace INotebookTools {
|
30 | |
31 |
|
32 |
|
33 | interface IAddOptions {
|
34 | |
35 |
|
36 |
|
37 | tool: ITool;
|
38 | |
39 |
|
40 |
|
41 | section?: 'common' | 'advanced';
|
42 | |
43 |
|
44 |
|
45 | rank?: number;
|
46 | }
|
47 | interface ITool extends Widget {
|
48 | |
49 |
|
50 |
|
51 | notebookTools: INotebookTools;
|
52 | }
|
53 | }
|
54 |
|
55 |
|
56 |
|
57 | export declare const INotebookTracker: Token<INotebookTracker>;
|
58 |
|
59 |
|
60 |
|
61 | export interface INotebookTracker extends IWidgetTracker<NotebookPanel> {
|
62 | |
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 | readonly activeCell: Cell | null;
|
69 | |
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 | readonly activeCellChanged: ISignal<this, Cell | null>;
|
76 | |
77 |
|
78 |
|
79 | readonly selectionChanged: ISignal<this, void>;
|
80 | }
|