mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-23 08:39:07 +00:00
11697004e8
Changed dialog and added routines to deal with an "auto" label in cases where defaults are used. ui/MarginsUi.ui: Changed labels for width and height to checkboxes. Removed connections. checkwidgets.[Ch]: Extended checkedLineEdit routines to take a QWidget. qt_helpers.[Ch]: Added void lengthToWidgets(QLineEdit *, LengthCombo *, LyXLength const &, LyXLength::UNIT) Added void lengthAutoToWidgets(QLineEdit *, LengthCombo *, LyXLength const &, LyXLength::UNIT) Added void setAutoTextCB(QCheckBox *, QLineEdit *, LengthCombo *) validators.[Ch]: Added class LengthAutoValidator : public LengthValidator Added class DoubleAutoValidator : public QDoubleValidator QGraphicsDialog.[Ch] Added virtual void setAutoText() Added virtual void on_WidthCB_toggled(bool) Added virtual void on_HeightCB_toggled(bool) Used the new functions to set "auto" in default cases and toggle checkboxes as needed. Set validator for scale. Re-organized connect routines. QGraphics.C: Completely re-worked update_contents(). Significant changes to apply(). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17735 a592a061-630c-0410-9148-cb99ea01b6c8
43 lines
758 B
C++
43 lines
758 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file qt4/checkedwidgets.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Angus Leeming
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef CHECKEDWIDGETS_H
|
|
#define CHECKEDWIDGETS_H
|
|
|
|
#include "BCView.h"
|
|
|
|
class QWidget;
|
|
class QLineEdit;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
void addCheckedLineEdit(BCView & bcview,
|
|
QLineEdit * input, QWidget * label = 0);
|
|
|
|
class CheckedLineEdit : public CheckedWidget {
|
|
public:
|
|
CheckedLineEdit(QLineEdit * input, QWidget * label = 0);
|
|
|
|
private:
|
|
///
|
|
virtual bool check() const;
|
|
|
|
///
|
|
QLineEdit * input_;
|
|
QWidget * label_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // CHECKEDWIDGETS_H
|