Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  void on_activate() override;
22  void on_open(const Gio::Application::type_vec_files& files, const Glib::ustring& hint) override;
23 
24  private:
26  std::thread compute_thread;
27 };
cadabra::ComputeThread compute
Definition: Cadabra.hh:25
bool open_help(const std::string &filename, const std::string &title)
Definition: Cadabra.cc:153
Cadabra(int, char **)
Definition: Cadabra.cc:31
std::thread compute_thread
Definition: Cadabra.hh:26
The Cadabra notebook application.
Definition: Cadabra.hh:11
static Glib::RefPtr< Cadabra > create(int, char **)
Definition: Cadabra.cc:26
void on_activate() override
Definition: Cadabra.cc:49
void on_open(const Gio::Application::type_vec_files &files, const Glib::ustring &hint) override
Definition: Cadabra.cc:125
Base class which talks to the server and sends Action objects back to the DocumentThread.
Definition: ComputeThread.hh:34
virtual ~Cadabra()
Definition: Cadabra.cc:38