#include <QCheckBox>
#include <QComboBox>
#include <QEvent>
#include <QFrame>
#include <QHBoxLayout>
#include <QHeaderView>
#include <QLabel>
#include <QLineEdit>
#include <QModelIndexList>
#include <QMouseEvent>
#include <QString>
#include <QStringList>
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QTimer>
#include "Container.h"
#include "ContextMenu.h"
#include "Table.h"
#include "QtHandlesUtils.h"
#include "octave-qobject.h"
#include "graphics.h"
#include "interpreter.h"
#include "oct-stream.h"
#include "oct-string.h"
#include "oct-strstrm.h"
#include "ov-struct.h"
Go to the source code of this file.
|
static octave_value | QtHandles::attempt_type_conversion (const octave_value &ov, const octave_value &old_value) |
|
static QString | QtHandles::formatComplex (Complex c, char format='f', int precision=4) |
|
static QString | QtHandles::formatNumber (double d, char format='f', int precision=4) |
|
static QString | QtHandles::formatNumber (float d, char format='f', int precision=4) |
|
static QTableWidgetItem * | QtHandles::itemFor (octave_value val, std::string format="", bool enabled=false) |
|
static std::pair< Qt::AlignmentFlag, QString > | QtHandles::qStringValueFor (octave_value val, std::string format="") |
|
static QSize | QtHandles::realQSizeForTable (QTableWidget *t) |
|
◆ AUTO_HEIGHT
#define AUTO_HEIGHT (tp.get_fontsize () * 2 - 1) |
◆ FORMAT_INT_VALUE
#define FORMAT_INT_VALUE |
( |
| ) |
|
Value: text = QString::number (value); \
flag = Qt::AlignLeft ; \
{ \
if (value > 0) \
else if (value < 0) \
else \
}
QString fromStdString(const std::string &s)
size_t format(std::ostream &os, const char *fmt,...)
Definition at line 178 of file Table.cc.
◆ FORMAT_UINT_VALUE
#define FORMAT_UINT_VALUE |
( |
| ) |
|
Value: text = QString::number (value); \
flag = Qt::AlignLeft; \
{ \
if (value > 0) \
else \
}
Definition at line 166 of file Table.cc.
◆ FORMAT_VALUE
#define FORMAT_VALUE |
( |
|
f, |
|
|
|
l |
|
) |
| |
Value:
else \
{ \
flag = Qt::AlignLeft ; \
}
#define FORMAT_VALUE_EXCEPT_RAT(f, l)
F77_RET_T const F77_DBLE const F77_DBLE * f
static QString formatNumber(float d, char format='f', int precision=4)
std::string rational_approx(T val, int len)
Definition at line 156 of file Table.cc.
◆ FORMAT_VALUE_EXCEPT_RAT
#define FORMAT_VALUE_EXCEPT_RAT |
( |
|
f, |
|
|
|
l |
|
) |
| |
Value:
text = QString::number (value, 'f', 2); \
if (value > 0) \
else if (value < 0) \
else \
Definition at line 125 of file Table.cc.
◆ FORMATNUMBER
#define FORMATNUMBER |
( |
|
type | ) |
|
◆ SCANF_AND_CONVERT
#define SCANF_AND_CONVERT |
( |
|
name, |
|
|
|
ctype, |
|
|
|
format |
|
) |
| |
Value: else if (old_value.is_ ##
name ## _type ()) \
{ \
ctype val; \
const std::string cxx_str = ov.string_value (); \
const char *c_str = cxx_str.c_str (); \
{ \
val = 0; \
} \
}
void error(const char *fmt,...)
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))