Commit 63ebb3e2 authored by Daniel Elstner's avatar Daniel Elstner
Browse files

Remove now unused files.

* src/imagebutton.{cc,h}: Remove now unused files.
parent 9b67e30a
/* $Id$
*
* Copyright (c) 2002 Daniel Elstner <daniel.elstner@gmx.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License VERSION 2 as
* published by the Free Software Foundation. You are not allowed to
* use any other version of the license; unless you got the explicit
* permission from the author to do so.
*
* 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 General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "imagebutton.h"
#include <atkmm.h>
#include <gtkmm/alignment.h>
#include <gtkmm/box.h>
#include <gtkmm/image.h>
#include <gtkmm/label.h>
#include <config.h>
namespace Regexxer
{
ImageButton::ImageButton(const Gtk::StockID& stock_id, const Glib::ustring& name)
{
add(*Gtk::manage(new Gtk::Image(stock_id, Gtk::ICON_SIZE_BUTTON)));
Glib::RefPtr<Atk::Object> refAccessible = get_accessible();
if(refAccessible)
refAccessible->set_name(name);
}
ImageButton::~ImageButton()
{}
ImageLabelButton::ImageLabelButton(const Gtk::StockID& stock_id, const Glib::ustring& label,
bool mnemonic)
{
using namespace Gtk;
Alignment *const alignment = new Alignment(0.5, 0.5, 0.0, 0.0);
add(*manage(alignment));
Box *const box = new HBox(false, 3);
alignment->add(*manage(box));
box->pack_start(*manage(new Image(stock_id, ICON_SIZE_BUTTON)), PACK_SHRINK);
box->pack_start(*manage(new Label(label, mnemonic)), PACK_SHRINK);
}
ImageLabelButton::~ImageLabelButton()
{}
} // namespace Regexxer
/* $Id$
*
* Copyright (c) 2002 Daniel Elstner <daniel.elstner@gmx.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License VERSION 2 as
* published by the Free Software Foundation. You are not allowed to
* use any other version of the license; unless you got the explicit
* permission from the author to do so.
*
* 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 General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef REGEXXER_IMAGEBUTTON_H_INCLUDED
#define REGEXXER_IMAGEBUTTON_H_INCLUDED
#include <gtkmm/button.h>
namespace Regexxer
{
class ImageButton : public Gtk::Button
{
public:
ImageButton(const Gtk::StockID& stock_id, const Glib::ustring& name);
virtual ~ImageButton();
};
class ImageLabelButton : public Gtk::Button
{
public:
ImageLabelButton(const Gtk::StockID& stock_id, const Glib::ustring& label, bool mnemonic = false);
virtual ~ImageLabelButton();
};
} // namespace Regexxer
#endif /* REGEXXER_IMAGEBUTTON_H_INCLUDED */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment