lyx_mirror/src/frontends/qt4/GuiURL.h
André Pönitz 7e30f47252 next one
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20817 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-07 14:19:14 +00:00

62 lines
1.1 KiB
C++

// -*- C++ -*-
/**
* \file GuiURL.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
* \author Angus Leeming
*
* Full author contact details are available in file CREDITS.
*/
#ifndef GUIURL_H
#define GUIURL_H
#include "GuiDialog.h"
#include "ControlCommand.h"
#include "ui_URLUi.h"
#include "insets/InsetCommandParams.h"
namespace lyx {
namespace frontend {
class GuiURL : public GuiDialog, public Ui::URLUi, public Controller
{
Q_OBJECT
public:
GuiURL(LyXView & lv);
public Q_SLOTS:
void changed_adaptor();
private:
void closeEvent(QCloseEvent *);
/// parent controller
Controller & controller() { return *this; }
///
bool isValid();
/// apply dialog
void applyView();
/// update dialog
void updateContents();
///
bool initialiseParams(std::string const & data);
/// clean-up on hide.
void clearParams() { params_.clear(); }
/// clean-up on hide.
void dispatchParams();
///
bool isBufferDependent() const { return true; }
private:
///
InsetCommandParams params_;
};
} // namespace frontend
} // namespace lyx
#endif // GUIURL_H