mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
0507b8600d
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5345 a592a061-630c-0410-9148-cb99ea01b6c8
44 lines
878 B
C++
44 lines
878 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file gnomeBC.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Baruch Even
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#ifndef GNOMEBC_H
|
|
#define GNOMEBC_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
#include "ButtonController.h"
|
|
|
|
namespace Gtk {
|
|
class Button;
|
|
class Widget;
|
|
};
|
|
|
|
class gnomeBC : public GuiBC<Gtk::Button, Gtk::Widget>
|
|
{
|
|
public:
|
|
///
|
|
gnomeBC(string const & cancel, string const & close);
|
|
|
|
private:
|
|
/// Updates the button sensitivity (enabled/disabled)
|
|
void setButtonEnabled(Gtk::Button * btn, bool enabled);
|
|
|
|
/// Updates the widget sensitivity (enabled/disabled)
|
|
void setWidgetEnabled(Gtk::Widget * obj, bool enabled);
|
|
|
|
/// Set the label on the button
|
|
void setButtonLabel(Gtk::Button * btn, string const & label);
|
|
};
|
|
|
|
#endif // GNOMEBC_H
|