Mcalc
0.1
a machinist's calculator
|
#include <application.hpp>
Public Member Functions | |
Application (Glib::RefPtr< Gtk::Builder > b, Gtk::Window *w) | |
~Application () | |
void | set_stylesheet (std::string f) |
Protected Attributes | |
Glib::RefPtr< Gtk::Builder > | builder |
Gtk::Window * | window |
mc::DataStore * | datastore |
mc::Settings * | settings |
mc::ComboBoxText * | fs_material |
mc::ComboBoxText * | fs_designation |
mc::ComboBoxText * | fs_hardness |
mc::ComboBoxText * | fs_tool |
mc::Spinner * | fs_diameter |
mc::Slider * | fs_grade |
mc::Slider * | fs_velocity |
mc::Slider * | fs_feedrate |
mc::Output * | fs_rpm |
mc::DummyInterface * | hard |
mc::DummyInterface * | tough |
The main application manager. Maintains the interface wrappers around individual GUI elements (Gtk::Widgets).
mcalc::Application::Application | ( | Glib::RefPtr< Gtk::Builder > | b, |
Gtk::Window * | w | ||
) |
The constructor for the application.
b | A Gtk::Builder initialized from a glade file. |
w | Gtk::Window that the application is managing. |
mcalc::Application::~Application | ( | ) |
The application destructor
void mcalc::Application::set_stylesheet | ( | std::string | f | ) |
The css file to style the window with.
f | the path to the css file. |
|
protected |
The Gtk::Builder that is used to fetch ui elements.
|
protected |
The static data used for value lookups.
|
protected |
AISI/SAE material designation
|
protected |
diameter of the material
|
protected |
feed rate of material
|
protected |
grade of material (hard/tough)
|
protected |
material hardness
|
protected |
material to use
|
protected |
revolutions per minute
|
protected |
cutting tool to use
|
protected |
speed of the tool
|
protected |
DummyInterface with value "hard"
|
protected |
The user-provided settings.
|
protected |
DummyInterface with value "tough"
|
protected |
The window that this Application instance manages.