lyx_mirror/src/frontends/qt2/QURL.h
John Levon 03add3957a The big renaming. Yowser.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2552 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-19 13:25:15 +00:00

72 lines
1.4 KiB
C++

// -*- C++ -*-
/**
* \file QURL.h
* Copyright 2001 the LyX Team
* Read the file COPYING
*
* \author John Levon <moz@compsoc.man.ac.uk>
* \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
*/
#ifndef QURL_H
#define QURL_H
#include "DialogBase.h"
#include "LString.h"
#include "boost/utility.hpp"
#include "insets/inseturl.h"
class Dialogs;
class LyXView;
class QURLDialog;
class QURL : public DialogBase {
public:
QURL(LyXView *, Dialogs *);
~QURL();
/// Apply changes
void apply();
/// close the connections
void close();
private:
/// Create the dialog if necessary, update it and display it.
void show();
/// Hide the dialog.
void hide();
/// Update the dialog.
void update();
/// create a URL inset
void createUrl(string const &);
/// edit a URL inset
void showUrl(InsetCommand * const);
/// Real GUI implementation.
QURLDialog * dialog_;
/// the LyXView we belong to
LyXView * lv_;
/** Which Dialogs do we belong to?
Used so we can get at the signals we have to connect to.
*/
Dialogs * d_;
/// pointer to the inset if any
InsetCommand * inset_;
/// insets params
InsetCommandParams params;
/// is the inset we are reading from a readonly buffer
bool readonly;
/// Hide connection.
SigC::Connection h_;
/// Update connection.
SigC::Connection u_;
/// Inset hide connection.
SigC::Connection ih_;
};
#endif // QURL_H