lyx_mirror/src/frontends/gtk/GBranch.h
John Spray d928a9d0a2 Whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10819 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-06 22:52:53 +00:00

50 lines
1.0 KiB
C++

// -*- C++ -*-
/**
* \file GBranch.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Bernhard Reiter
*
* Full author contact details are available in file CREDITS.
*/
#ifndef GBRANCH_H
#define GBRANCH_H
#include "GViewBase.h"
namespace lyx {
namespace frontend {
class ControlBranch;
/** This class provides a GTK+ implementation of the Branch Dialog.
*/
class GBranch : public GViewCB<ControlBranch, GViewGladeB> {
public:
GBranch(Dialog & parent);
private:
virtual void apply();
virtual void doBuild();
virtual void update();
/// enables the apply button if a synonym is selected from the list
void selection_changed();
/** apply() won't act when this is true.
true if no text is selected when the Branch dialog is opened
*/
bool applylock_;
Gtk::Button * cancelbutton_;
Gtk::Button * okbutton_;
Gtk::Label * brancheslabel_;
Gtk::ComboBoxText branchescombo_;
};
} // namespace frontend
} // namespace lyx
#endif // GBRANCH_H