14#include <QGraphicsScene>
51 m_spinCursorSize->setMinimum (1);
52 m_spinCursorSize->setWhatsThis (
tr (
"Effective Cursor Size\n\n"
53 "This is the effective width and height of the cursor when clicking on a pixel that is "
54 "not part of the background.\n\n"
55 "This parameter is used in the Color Picker and Point Match modes"));
57 layout->addWidget (m_spinCursorSize,
row++, 2);
63 m_spinExtraPrecision->setMinimum (0);
64 m_spinExtraPrecision->setWhatsThis (
tr (
"Extra Digits of Precision\n\n"
65 "This is the number of additional digits of precision appended after the significant "
66 "digits determined by the digitization accuracy at that point. The digitization accuracy "
67 "at any point equals the change in graph coordinates from moving one pixel in each direction. "
68 "Appending extra digits does not improve the accuracy of the numbers. More information can "
69 "be found in discussions of accuracy versus precision.\n\n"
70 "This parameter is used on the coordinates in the Status Bar and during Export"));
72 layout->addWidget (m_spinExtraPrecision,
row++, 2);
80 m_btnSaveDefault->setWhatsThis (
tr (
"Save the settings for use as future defaults, according to the curve name selection."));
82 layout->addWidget (m_btnSaveDefault, 0, Qt::AlignLeft);
93 layout->setColumnStretch(0, 1);
94 layout->setColumnStretch(1, 0);
95 layout->setColumnStretch(2, 0);
96 layout->setColumnStretch(3, 1);
110 *m_modelGeneralBefore,
111 *m_modelGeneralAfter);
124 delete m_modelGeneralBefore;
125 delete m_modelGeneralAfter;
132 m_spinCursorSize->setValue (m_modelGeneralAfter->
cursorSize());
133 m_spinExtraPrecision->setValue (m_modelGeneralAfter->
extraPrecision());
143void DlgSettingsGeneral::slotCursorSize (
int cursorSize)
151void DlgSettingsGeneral::slotExtraPrecision (
int extraPrecision)
159void DlgSettingsGeneral::slotSaveDefault()
173void DlgSettingsGeneral::updateControls ()
const int INNER_RADIUS_MIN
log4cpp::Category * mainCat
const QString SETTINGS_ENGAUGE
const QString SETTINGS_GROUP_GENERAL
const QString SETTINGS_GENERAL_CURSOR_SIZE
const QString SETTINGS_GENERAL_EXTRA_PRECISION
const QString SETTINGS_DIGITIZER
Command for DlgSettingsGeneral.
Abstract base class for all Settings dialogs.
void setCmdMediator(CmdMediator &cmdMediator)
Store CmdMediator for easy access by the leaf class.
void finishPanel(QWidget *subPanel, int minimumWidth=MINIMUM_DIALOG_WIDTH, int minimumHeightOrZero=0)
Add Ok and Cancel buttons to subpanel to get the whole dialog.
CmdMediator & cmdMediator()
Provide access to Document information wrapped inside CmdMediator.
void enableOk(bool enable)
Let leaf subclass control the Ok button.
MainWindow & mainWindow()
Get method for MainWindow.
virtual void createOptionalSaveDefault(QHBoxLayout *layout)
Let subclass define an optional Save As Default button.
virtual void handleOk()
Process slotOk.
virtual void load(CmdMediator &cmdMediator)
Load settings from Document.
DlgSettingsGeneral(MainWindow &mainWindow)
Single constructor.
virtual ~DlgSettingsGeneral()
virtual void setSmallDialogs(bool smallDialogs)
If false then dialogs have a minimum size so all controls are visible.
virtual QWidget * createSubPanel()
Create dialog-specific panel to which base class will add Ok and Cancel buttons.
Model for DlgSettingsGeneral and CmdSettingsGeneral.
void setCursorSize(int cursorSize)
Set method for effective cursor size.
void setExtraPrecision(int extraPrecision)
Set method for extra digits of precision.
int extraPrecision() const
Get method for extra digits of precsion.
int cursorSize() const
Get method for effective cursor size.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
#define LOG4CPP_INFO_S(logger)