mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-23 16:47:35 +00:00
738d5b06ba
* qt4/Dialogs.cpp: use DialogView by default instead of DockView for GuiParagraph git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20534 a592a061-630c-0410-9148-cb99ea01b6c8
67 lines
1.2 KiB
C++
67 lines
1.2 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file GuiParagraph.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Edwin Leuven
|
|
* \author John Levon
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef GUIPARAGRAPH_H
|
|
#define GUIPARAGRAPH_H
|
|
|
|
#include "ControlParagraph.h"
|
|
#include "Layout.h"
|
|
#include "ui_ParagraphUi.h"
|
|
|
|
#include <QWidget>
|
|
|
|
#include <map>
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class GuiParagraph : public QWidget, public Ui::ParagraphUi
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
GuiParagraph(ControlParagraph & controller, QWidget * parent = 0);
|
|
|
|
/// update
|
|
void updateView();
|
|
|
|
private:
|
|
///
|
|
void checkAlignmentRadioButtons();
|
|
///
|
|
void alignmentToRadioButtons(LyXAlignment align = LYX_ALIGN_LAYOUT);
|
|
///
|
|
LyXAlignment getAlignmentFromDialog();
|
|
///
|
|
typedef std::map<LyXAlignment, QRadioButton *> RadioMap;
|
|
RadioMap radioMap;
|
|
|
|
ControlParagraph & controller_;
|
|
|
|
QString const alignDefaultLabel;
|
|
private Q_SLOTS:
|
|
///
|
|
void changed();
|
|
///
|
|
void on_synchronizedViewCB_toggled();
|
|
///
|
|
void on_restorePB_clicked();
|
|
///
|
|
void on_linespacing_activated(int);
|
|
/// Apply changes
|
|
void on_applyPB_clicked();
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // QPARAGRAPH_H
|