#include <qxrdglobalpreferencesdialog.h>
QxrdGlobalPreferencesDialog::QxrdGlobalPreferencesDialog |
( |
QxrdApplication * |
app, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
explicit |
Definition at line 8 of file qxrdglobalpreferencesdialog.cpp.
References QxrdApplication::allocator(), DEBUG_CONSTRUCTORS, m_Application, qcepDebug(), and setupDebugWidgets().
13 printf(
"QxrdGlobalPreferencesDialog::QxrdGlobalPreferencesDialog(%p)\n",
this);
19 m_RecentExperimentsSize -> setValue(
m_Application->get_RecentExperimentsSize());
26 m_ReservedMemory32 -> setRange(500, 3000);
27 m_ReservedMemory32 -> setValue(alloc->get_TotalBufferSizeMB32());
28 m_ReservedMemory64 -> setRange(500, 60000);
29 m_ReservedMemory64 -> setValue(alloc->get_TotalBufferSizeMB64());
30 m_ExtraReservedMemory -> setRange(0, 500);
31 m_ExtraReservedMemory -> setValue(alloc->get_Reserve());
34 m_FileBrowserLimit -> setValue(
m_Application->get_FileBrowserLimit());
36 m_MessageWindowLines -> setValue(
m_Application->get_MessageWindowLines());
37 m_UpdateIntervalMsec -> setValue(
m_Application->get_UpdateIntervalMsec());
qint64 qcepDebug(int cond)
QxrdApplication * m_Application
void setupDebugWidgets(qint64 dbg)
QSharedPointer< QcepAllocator > QcepAllocatorPtr
QcepAllocatorWPtr allocator() const
QxrdGlobalPreferencesDialog::~QxrdGlobalPreferencesDialog |
( |
| ) |
|
void QxrdGlobalPreferencesDialog::accept |
( |
| ) |
|
|
slot |
Definition at line 61 of file qxrdglobalpreferencesdialog.cpp.
References QxrdApplication::allocator(), m_Application, and readDebugWidgets().
66 m_Application -> set_RecentExperimentsSize(m_RecentExperimentsSize->value());
68 int bufferSize32 = m_ReservedMemory32 -> value();
69 int bufferSize64 = m_ReservedMemory64 -> value();
70 int extraReserve = m_ExtraReservedMemory -> value();
78 alloc -> set_TotalBufferSizeMB32(bufferSize32);
79 alloc -> set_TotalBufferSizeMB64(bufferSize64);
80 alloc -> set_Reserve(extraReserve);
83 m_Application -> set_FileBrowserLimit(m_FileBrowserLimit->value());
84 m_Application -> set_MessageWindowLines(m_MessageWindowLines -> value());
85 m_Application -> set_UpdateIntervalMsec(m_UpdateIntervalMsec -> value());
QxrdApplication * m_Application
qint64 readDebugWidgets()
QSharedPointer< QcepAllocator > QcepAllocatorPtr
QcepAllocatorWPtr allocator() const
void QxrdGlobalPreferencesDialog::changeEvent |
( |
QEvent * |
e | ) |
|
|
protected |
qint64 QxrdGlobalPreferencesDialog::readDebugWidgets |
( |
| ) |
|
|
private |
void QxrdGlobalPreferencesDialog::setupDebugWidgets |
( |
qint64 |
dbg | ) |
|
|
private |
Definition at line 90 of file qxrdglobalpreferencesdialog.cpp.
References g_DebugLevel, and m_DebugWidgetList.
Referenced by QxrdGlobalPreferencesDialog().
93 printf(
"g_DebugLevel == NULL in QxrdGlobalPreferencesDialog::setupDebugWidgets\n");
95 QGridLayout *grid =
new QGridLayout(m_DebugWidgets);
97 for (
int i=0; i<64; i++) {
98 qint64 mask=((qint64)1)<<i;
101 if (msg.length() > 0) {
102 QCheckBox *cb =
new QCheckBox(msg);
103 cb->setChecked(dbg & mask);
112 int ncol = ndebug - ndebug/2;
114 for (
int i=0; i<ndebug; i++) {
118 grid->addWidget(cb, i, 0);
120 grid->addWidget(cb, i - ncol, 1);
QVector< QCheckBox * > m_DebugWidgetList
QSharedPointer< QcepDebugDictionary > g_DebugLevel
QVector<QCheckBox*> QxrdGlobalPreferencesDialog::m_DebugWidgetList |
|
private |
The documentation for this class was generated from the following files: