mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
66e8220540
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9008 a592a061-630c-0410-9148-cb99ea01b6c8
44 lines
1011 B
C++
44 lines
1011 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file GBC.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Huang Ying
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef GBUTTONCONTROLLER_H
|
|
#define GBUTTONCONTROLLER_H
|
|
|
|
#include <gtkmm.h>
|
|
|
|
#include "ButtonController.h"
|
|
#include "BCView.h"
|
|
#include "gettext.h"
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class GBC : public GuiBC<Gtk::Button, Gtk::Widget> {
|
|
public:
|
|
GBC(ButtonController const & parent,
|
|
std::string const & cancel = _("Cancel"),
|
|
std::string const & close = _("Close"));
|
|
private:
|
|
/// Updates the button sensitivity (enabled/disabled)
|
|
void setButtonEnabled(Gtk::Button *, bool enabled) const;
|
|
|
|
/// Updates the widget sensitivity (enabled/disabled)
|
|
void setWidgetEnabled(Gtk::Widget *, bool enabled) const;
|
|
|
|
/// Set the label on the button
|
|
void setButtonLabel(Gtk::Button *, std::string const & label) const;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif
|