Mcalc  0.1
a machinist's calculator
Public Member Functions | Protected Attributes | List of all members
mcalc::Application Class Reference

#include <application.hpp>

Collaboration diagram for mcalc::Application:
Collaboration graph
[legend]

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::DataStoredatastore
 
mc::Settingssettings
 
mc::ComboBoxTextfs_material
 
mc::ComboBoxTextfs_designation
 
mc::ComboBoxTextfs_hardness
 
mc::ComboBoxTextfs_tool
 
mc::Spinnerfs_diameter
 
mc::Sliderfs_grade
 
mc::Sliderfs_velocity
 
mc::Sliderfs_feedrate
 
mc::Outputfs_rpm
 
mc::DummyInterfacehard
 
mc::DummyInterfacetough
 

Detailed Description

The main application manager. Maintains the interface wrappers around individual GUI elements (Gtk::Widgets).

Constructor & Destructor Documentation

mcalc::Application::Application ( Glib::RefPtr< Gtk::Builder >  b,
Gtk::Window *  w 
)

The constructor for the application.

Parameters
bA Gtk::Builder initialized from a glade file.
wGtk::Window that the application is managing.
mcalc::Application::~Application ( )

The application destructor

Member Function Documentation

void mcalc::Application::set_stylesheet ( std::string  f)

The css file to style the window with.

Parameters
fthe path to the css file.

Member Data Documentation

Glib::RefPtr<Gtk::Builder> mcalc::Application::builder
protected

The Gtk::Builder that is used to fetch ui elements.

mc::DataStore* mcalc::Application::datastore
protected

The static data used for value lookups.

mc::ComboBoxText* mcalc::Application::fs_designation
protected

AISI/SAE material designation

mc::Spinner* mcalc::Application::fs_diameter
protected

diameter of the material

mc::Slider* mcalc::Application::fs_feedrate
protected

feed rate of material

mc::Slider* mcalc::Application::fs_grade
protected

grade of material (hard/tough)

mc::ComboBoxText* mcalc::Application::fs_hardness
protected

material hardness

mc::ComboBoxText* mcalc::Application::fs_material
protected

material to use

mc::Output* mcalc::Application::fs_rpm
protected

revolutions per minute

mc::ComboBoxText* mcalc::Application::fs_tool
protected

cutting tool to use

mc::Slider* mcalc::Application::fs_velocity
protected

speed of the tool

mc::DummyInterface* mcalc::Application::hard
protected

DummyInterface with value "hard"

mc::Settings* mcalc::Application::settings
protected

The user-provided settings.

mc::DummyInterface* mcalc::Application::tough
protected

DummyInterface with value "tough"

Gtk::Window* mcalc::Application::window
protected

The window that this Application instance manages.


The documentation for this class was generated from the following files: