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_startup() override;
22  virtual void on_activate() override;
23  virtual void on_open(const Gio::Application::type_vec_files& files, const Glib::ustring& hint) override;
24 
25  int on_handle_local_options(const Glib::RefPtr<Glib::VariantDict> &);
26 
27  private:
29  std::thread *compute_thread;
30 
32  std::string server_token;
33  std::string server_ip_address;
34  };
The Cadabra notebook application.
Definition: Cadabra.hh:11
virtual ~Cadabra()
Definition: Cadabra.cc:76
bool open_help(const std::string &filename, const std::string &title)
Definition: Cadabra.cc:176
virtual void on_activate() override
Definition: Cadabra.cc:112
virtual void on_startup() override
Definition: Cadabra.cc:107
static Glib::RefPtr< Cadabra > create(int, char **)
Definition: Cadabra.cc:28
virtual void on_open(const Gio::Application::type_vec_files &files, const Glib::ustring &hint) override
Definition: Cadabra.cc:140
std::string server_token
Definition: Cadabra.hh:32
Cadabra(int, char **)
Definition: Cadabra.cc:33
std::string server_ip_address
Definition: Cadabra.hh:33
int server_port
Definition: Cadabra.hh:31
int on_handle_local_options(const Glib::RefPtr< Glib::VariantDict > &)
Definition: Cadabra.cc:95
cadabra::ComputeThread * compute
Definition: Cadabra.hh:28
std::thread * compute_thread
Definition: Cadabra.hh:29
Base class which talks to the server and sends Action objects back to the DocumentThread.
Definition: ComputeThread.hh:36