lyx_mirror/src/frontends/gnome/GUrl.h
Lars Gullik Bjønnes 13349032cb ws changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5758 a592a061-630c-0410-9148-cb99ea01b6c8
2002-12-01 22:59:25 +00:00

76 lines
1.5 KiB
C++

// -*- C++ -*-
/**
* \file GUrl.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Baruch Even
* \author Michael Koziarski
*
* Full author contact details are available in file CREDITS
*/
#ifndef GURL_H
#define GURL_H
#ifdef __GNUG__
#pragma interface
#endif
#include "ControlUrl.h"
#include "GnomeBase.h"
namespace Gtk {
class Button;
class CheckButton;
class Entry;
}
/**
* This class implements the dialog to insert/modify urls.
*/
class GUrl : public GnomeCB<ControlUrl> {
public:
///
GUrl(ControlUrl & c);
///
~GUrl();
void apply();
void update();
private:
/// Build the dialog
void build();
/// Returns true if the dialog input is in a valid state.
bool validate() const;
/// Do the connection of signals
void connect_signals();
/// Disconnect the signals.
void disconnect_signals();
/// generated by accessors.py
Gtk::Button * restore_btn() const;
/// gene rated by accessors.py
Gtk::Button * ok_btn() const;
/// generated by accessors.py
Gtk::Button * apply_btn() const;
/// generated by accessors.py
Gtk::Button * cancel_btn() const;
/// generated by accessors.py
Gtk::Entry * url() const;
/// generated by accessors.py
Gtk::Entry * name() const;
/// generated by accessors.py
Gtk::CheckButton * html_cb() const;
/// Keeps the connection to the input validator.
SigC::Connection slot_url_;
SigC::Connection slot_name_;
SigC::Connection slot_html_;
};
#endif