3 #include "ui_qxrdglobalpreferencesdialog.h"
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());
45 printf(
"QxrdGlobalPreferencesDialog::~QxrdGlobalPreferencesDialog(%p)\n",
this);
51 QDialog::changeEvent(e);
53 case QEvent::LanguageChange:
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());
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);
132 for (
int i=0; i<ndebug; i++) {
~QxrdGlobalPreferencesDialog()
qint64 qcepDebug(int cond)
QxrdApplication * m_Application
void setupDebugWidgets(qint64 dbg)
QVector< QCheckBox * > m_DebugWidgetList
QxrdGlobalPreferencesDialog(QxrdApplication *app, QWidget *parent=0)
qint64 readDebugWidgets()
void changeEvent(QEvent *e)
QSharedPointer< QcepDebugDictionary > g_DebugLevel
QSharedPointer< QcepAllocator > QcepAllocatorPtr
QcepAllocatorWPtr allocator() const