Cadabra
Computer algebra system for field theory problems
NotebookWindow.hh
Go to the documentation of this file.
1 //
2 // NotebookWindow.h
3 // Cadabra
4 //
5 // Created by Kasper Peeters on 05/01/2015.
6 // Copyright (c) 2015 phi-sci. All rights reserved.
7 //
8 
9 #ifndef __Cadabra__NotebookWindow__
10 #define __Cadabra__NotebookWindow__
11 
12 #include <stdio.h>
13 #include "DocumentThread.hh"
14 #include "GUIBase.hh"
15 #include "NotebookController.h"
16 #include "NotebookCanvas.hh"
17 
18 namespace cadabra_osx {
19 
24 
25  class NotebookWindow : public DocumentThread, public GUIBase {
26  public:
28 
29  virtual void add_cell(const DTree&, DTree::iterator, bool visible) override;
30  virtual void remove_cell(const DTree&, DTree::iterator) override;
31  virtual void update_cell(const DTree&, DTree::iterator) override;
32  virtual void position_cursor(const DTree&, DTree::iterator) override;
33  virtual void remove_all_cells() override;
34 
35  virtual void on_connect() override;
36  virtual void on_disconnect() override;
37  virtual void on_network_error() override;
38 
39  virtual void process_data() override;
40 
41  private:
43 
44  std::vector<NotebookCanvas *> canvasses;
46  };
47 
48  };
49 
50 #endif /* defined(__Cadabra__NotebookWindow__) */
Objective-C++ class implementing DocumentThread and providing an OS-X notebook interface.
Definition: NotebookWindow.hh:25
virtual void process_data() override
Definition: NotebookWindow.mm:97
std::vector< NotebookCanvas * > canvasses
Definition: NotebookWindow.hh:44
virtual void on_connect() override
Definition: NotebookWindow.mm:82
virtual void remove_cell(const DTree &, DTree::iterator) override
Definition: NotebookWindow.mm:62
NotebookController * controller
Definition: NotebookWindow.hh:42
int current_canvas
Definition: NotebookWindow.hh:45
virtual void add_cell(const DTree &, DTree::iterator, bool visible) override
Definition: NotebookWindow.mm:23
virtual void position_cursor(const DTree &, DTree::iterator) override
Definition: NotebookWindow.mm:72
NotebookWindow(NotebookController *)
Definition: NotebookWindow.mm:14
virtual void on_network_error() override
Definition: NotebookWindow.mm:92
virtual void on_disconnect() override
Definition: NotebookWindow.mm:87
virtual void update_cell(const DTree &, DTree::iterator) override
Definition: NotebookWindow.mm:67
virtual void remove_all_cells() override
Definition: NotebookWindow.mm:77
Definition: NotebookController.h:12
Definition: NotebookWindow.hh:18
tree< DataCell > DTree
Definition: DataCell.hh:109