Stefan Schuermans
begin of simulator: window skeleton
Stefan Schuermans commited 371800c at 2017-06-07 21:38:03
/*
* EtherPix simulator
*
* Copyright 2017 Stefan Schuermans <stefan schuermans info>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <gtkmm.h>
#include "draw.h"
/**
* @brief constructor
* @param[in] Gtk Window object (a C object)
* @param[in] builder reference to GTK builder object
*/
Draw::Draw(BaseObjectType *cobject,
const Glib::RefPtr<Gtk::Builder> &builder):
Gtk::DrawingArea(cobject),
m_builder(builder)
{
/*
TODO
// connect callbacks (seems to be needed for gtkmm-2.4 < V2.16)
signal_configure_event().connect(
sigc::mem_fun(*this, &Draw::on_configure_event));
signal_expose_event().connect(
sigc::mem_fun(*this, &Draw::on_expose_event));
*/
// initialize image
updateImage();
queue_draw();
}
/// virtual destructor
Draw::~Draw()
{
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX