Cadabra
Computer algebra system for field theory problems
Cadabra.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <gtkmm/application.h>
5 #include <gtkmm/grid.h>
6 #include "NotebookWindow.hh"
7 #include "ComputeThread.hh"
8 
10 
11 class Cadabra : public Gtk::Application {
12  public:
13  static Glib::RefPtr<Cadabra> create(int, char **);
14 
15  bool open_help(const std::string& filename, const std::string& title);
16 
17  protected:
18  Cadabra(int, char**);
19  virtual ~Cadabra();
20 
21  virtual void on_activate() override;
22  virtual void on_open(const Gio::Application::type_vec_files& files, const Glib::ustring& hint) override;
23 
24  int on_handle_local_options(const Glib::RefPtr<Glib::VariantDict> &);
25 
26  private:
28  std::thread *compute_thread;
29 
31  std::string server_token;
32  };
Cadabra::open_help
bool open_help(const std::string &filename, const std::string &title)
Definition: Cadabra.cc:156
Cadabra::on_activate
virtual void on_activate() override
Definition: Cadabra.cc:101
Cadabra::compute_thread
std::thread * compute_thread
Definition: Cadabra.hh:28
ComputeThread.hh
Cadabra::compute
cadabra::ComputeThread * compute
Definition: Cadabra.hh:27
cadabra::ComputeThread
Definition: ComputeThread.hh:35
Cadabra::on_handle_local_options
int on_handle_local_options(const Glib::RefPtr< Glib::VariantDict > &)
Definition: Cadabra.cc:90
Cadabra::~Cadabra
virtual ~Cadabra()
Definition: Cadabra.cc:71
Cadabra::server_token
std::string server_token
Definition: Cadabra.hh:31
Cadabra
The Cadabra notebook application.
Definition: Cadabra.hh:11
ipynb2cnb.filename
filename
Definition: ipynb2cnb.py:9
Cadabra::on_open
virtual void on_open(const Gio::Application::type_vec_files &files, const Glib::ustring &hint) override
Definition: Cadabra.cc:128
Cadabra::server_port
int server_port
Definition: Cadabra.hh:30
Cadabra::create
static Glib::RefPtr< Cadabra > create(int, char **)
Definition: Cadabra.cc:28
Cadabra::Cadabra
Cadabra(int, char **)
Definition: Cadabra.cc:33
NotebookWindow.hh