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  std::string server_ip_address;
33  };
Cadabra::compute_thread
std::thread * compute_thread
Definition: Cadabra.hh:28
Cadabra::server_ip_address
std::string server_ip_address
Definition: Cadabra.hh:32
Cadabra::~Cadabra
virtual ~Cadabra()
Definition: Cadabra.cc:76
Cadabra::on_handle_local_options
int on_handle_local_options(const Glib::RefPtr< Glib::VariantDict > &)
Definition: Cadabra.cc:95
Cadabra::open_help
bool open_help(const std::string &filename, const std::string &title)
Definition: Cadabra.cc:170
Cadabra::on_activate
virtual void on_activate() override
Definition: Cadabra.cc:107
cadabra::ComputeThread
Definition: ComputeThread.hh:36
Cadabra::server_token
std::string server_token
Definition: Cadabra.hh:31
Cadabra::on_open
virtual void on_open(const Gio::Application::type_vec_files &files, const Glib::ustring &hint) override
Definition: Cadabra.cc:134
Cadabra::create
static Glib::RefPtr< Cadabra > create(int, char **)
Definition: Cadabra.cc:28
Cadabra
The Cadabra notebook application.
Definition: Cadabra.hh:11
Cadabra::compute
cadabra::ComputeThread * compute
Definition: Cadabra.hh:27
Cadabra::server_port
int server_port
Definition: Cadabra.hh:30
NotebookWindow.hh
Cadabra::Cadabra
Cadabra(int, char **)
Definition: Cadabra.cc:33
ComputeThread.hh