mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
61 lines
1.0 KiB
C
61 lines
1.0 KiB
C
|
// -*- C++ -*-
|
|||
|
/**
|
|||
|
* \file GuiHSpace.h
|
|||
|
* This file is part of LyX, the document processor.
|
|||
|
* Licence details can be found in the file COPYING.
|
|||
|
*
|
|||
|
* \author J<EFBFBD>rgen Spitzm<EFBFBD>ller
|
|||
|
*
|
|||
|
* Full author contact details are available in file CREDITS.
|
|||
|
*/
|
|||
|
|
|||
|
#ifndef GUIHSPACE_H
|
|||
|
#define GUIHSPACE_H
|
|||
|
|
|||
|
#include "GuiDialog.h"
|
|||
|
#include "ui_HSpaceUi.h"
|
|||
|
#include "insets/InsetSpace.h"
|
|||
|
|
|||
|
namespace lyx {
|
|||
|
namespace frontend {
|
|||
|
|
|||
|
class GuiHSpace : public GuiDialog, public Ui::HSpaceUi
|
|||
|
{
|
|||
|
Q_OBJECT
|
|||
|
|
|||
|
public:
|
|||
|
GuiHSpace(GuiView & lv);
|
|||
|
|
|||
|
private Q_SLOTS:
|
|||
|
///
|
|||
|
void change_adaptor();
|
|||
|
///
|
|||
|
void enableWidgets(int);
|
|||
|
|
|||
|
private:
|
|||
|
/// Apply from dialog
|
|||
|
void applyView();
|
|||
|
/// Update the dialog
|
|||
|
void updateContents();
|
|||
|
///
|
|||
|
bool isValid();
|
|||
|
///
|
|||
|
bool initialiseParams(std::string const & data);
|
|||
|
/// clean-up on hide.
|
|||
|
void clearParams();
|
|||
|
/// clean-up on hide.
|
|||
|
void dispatchParams();
|
|||
|
///
|
|||
|
bool isBufferDependent() const { return true; }
|
|||
|
///
|
|||
|
bool inInset() const;
|
|||
|
|
|||
|
///
|
|||
|
InsetSpaceParams params_;
|
|||
|
};
|
|||
|
|
|||
|
} // namespace frontend
|
|||
|
} // namespace lyx
|
|||
|
|
|||
|
#endif // GUIHSPACE_H
|