mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
dc9146d250
I noticed that for instance the Hyperlink Dialog loses all information when clicking on the main buffer. The same occurs with the Include Child Document Dialog and probably also others. Do you agree on this being less intuitive ? If so, I included a small patch that will fix this for the two dialogs mentioned. I just adapted them to the design of the GuiGraphics Dialog. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26096 a592a061-630c-0410-9148-cb99ea01b6c8
62 lines
1.1 KiB
C++
62 lines
1.1 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file GuiHyperlink.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 GUIHYPERLINK_H
|
|
#define GUIHYPERLINK_H
|
|
|
|
#include "GuiDialog.h"
|
|
#include "ui_HyperlinkUi.h"
|
|
|
|
#include "insets/InsetCommandParams.h"
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class GuiHyperlink : public GuiDialog, public Ui::HyperlinkUi
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
/// Constructor
|
|
GuiHyperlink(GuiView & lv);
|
|
|
|
public Q_SLOTS:
|
|
void changed_adaptor();
|
|
|
|
private:
|
|
///
|
|
bool isValid();
|
|
/// apply dialog
|
|
void applyView();
|
|
/// update dialog
|
|
void updateContents() { };
|
|
///
|
|
bool initialiseParams(std::string const & data);
|
|
///
|
|
void paramsToDialog(InsetCommandParams const & icp);
|
|
/// 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 // GUIHYPERLINK_H
|