#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-map.h"
#include "oct-stream.h"
#include "oct-string.h"
#include "oct-strstrm.h"
Go to the source code of this file.
|
static octave_value | attempt_type_conversion (const octave_value &ov, const octave_value &old_value) |
|
static QString | formatComplex (Complex c, char format='f', int precision=4) |
|
static QString | formatNumber (double d, char format='f', int precision=4) |
|
static QString | formatNumber (float d, char format='f', int precision=4) |
|
static QTableWidgetItem * | itemFor (octave_value val, std::string format="", bool enabled=false) |
|
static std::pair< Qt::AlignmentFlag, QString > | qStringValueFor (octave_value val, std::string format="") |
|
static QSize | 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)
std::size_t format(std::ostream &os, const char *fmt,...)
Definition at line 179 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 167 of file Table.cc.
◆ FORMAT_VALUE
#define FORMAT_VALUE |
( |
|
f, |
|
|
|
l |
|
) |
| |
Value:
else \
{ \
flag = Qt::AlignLeft ; \
}
#define FORMAT_VALUE_EXCEPT_RAT(f, l)
static QString formatNumber(double d, char format='f', int precision=4)
F77_RET_T const F77_DBLE const F77_DBLE * f
std::string rational_approx(T val, int len)
Definition at line 157 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 126 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()) ? '\'' :'"'))
◆ attempt_type_conversion()
◆ formatComplex()
static QString formatComplex |
( |
Complex |
c, |
|
|
char |
format = 'f' , |
|
|
int |
precision = 4 |
|
) |
| |
|
static |
◆ formatNumber() [1/2]
static QString formatNumber |
( |
double |
d, |
|
|
char |
format = 'f' , |
|
|
int |
precision = 4 |
|
) |
| |
|
static |
◆ formatNumber() [2/2]
static QString formatNumber |
( |
float |
d, |
|
|
char |
format = 'f' , |
|
|
int |
precision = 4 |
|
) |
| |
|
static |
◆ itemFor()
static QTableWidgetItem* itemFor |
( |
octave_value |
val, |
|
|
std::string |
format = "" , |
|
|
bool |
enabled = false |
|
) |
| |
|
static |
◆ qStringValueFor()
static std::pair<Qt::AlignmentFlag, QString> qStringValueFor |
( |
octave_value |
val, |
|
|
std::string |
format = "" |
|
) |
| |
|
static |
Definition at line 194 of file Table.cc.
References octave_value::bool_value(), octave_value::complex_value(), octave_value::double_value(), octave_value::float_value(), format(), FORMAT_INT_VALUE, FORMAT_UINT_VALUE, FORMAT_VALUE, formatComplex(), Utils::fromStdString(), octave_value::int64_value(), octave_value::int_value(), octave_value::is_double_type(), octave_value::is_int16_type(), octave_value::is_int32_type(), octave_value::is_int64_type(), octave_value::is_int8_type(), octave_value::is_single_type(), octave_value::is_string(), octave_value::is_uint16_type(), octave_value::is_uint32_type(), octave_value::is_uint64_type(), octave_value::is_uint8_type(), octave_value::iscomplex(), octave_value::isempty(), octave_value::islogical(), octave_value::long_value(), rational_approx(), octave_value::short_value(), octave_value::string_value(), octave_value::uint64_value(), octave_value::uint_value(), octave_value::ulong_value(), and octave_value::ushort_value().
Referenced by Table::itemChanged(), itemFor(), and Table::updateData().
◆ realQSizeForTable()
static QSize realQSizeForTable |
( |
QTableWidget * |
t | ) |
|
|
static |
◆ AUTO_WIDTH
const int AUTO_WIDTH = 75 |
|
static |