|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
"Parts Bin": a small Qt Widgets inventory, used by the walkthrough in notes/examples/widgets-to-qml.md, where an agent writes a matching QML front end for it while it runs. More...
#include <sonde/guitools.h>#include <sonde/qmltools.h>#include <sonde/server.h>#include <sonde/widgetsintegration.h>#include <QtCore/QAbstractTableModel>#include <QtCore/QList>#include <QtCore/QLocale>#include <QtCore/QSortFilterProxyModel>#include <QtGui/QPainter>#include <QtWidgets/QApplication>#include <QtWidgets/QDoubleSpinBox>#include <QtWidgets/QFormLayout>#include <QtWidgets/QGroupBox>#include <QtWidgets/QHBoxLayout>#include <QtWidgets/QHeaderView>#include <QtWidgets/QLabel>#include <QtWidgets/QLineEdit>#include <QtWidgets/QMainWindow>#include <QtWidgets/QPushButton>#include <QtWidgets/QSpinBox>#include <QtWidgets/QStatusBar>#include <QtWidgets/QStyledItemDelegate>#include <QtWidgets/QTableView>#include <QtWidgets/QVBoxLayout>#include <iterator>#include "main.moc"Classes | |
| struct | Part |
| One kind of part in the bin. More... | |
| class | Inventory |
| The inventory: one row per part, with totals. Knows nothing about widgets. More... | |
| class | LowStockDelegate |
| Paints rows that are low on stock with a red background. More... | |
| class | BinWindow |
| The main window: the filterable table, buttons for the selected part, a form for a new one, and the totals. More... | |
Functions | |
| static QList< Part > | startingParts () |
| The parts the bin starts with. | |
| int | main (int argc, char **argv) |
| Starts the bin with the Sonde debug server (SONDE_HTTP / SONDE_LOCAL). | |
Variables | |
| constexpr int | kReorderLevel = 5 |
| Below this many pieces a part is low on stock. | |
"Parts Bin": a small Qt Widgets inventory, used by the walkthrough in notes/examples/widgets-to-qml.md, where an agent writes a matching QML front end for it while it runs.
|
constexpr |
Below this many pieces a part is low on stock.
Deliberately here, next to the widgets, and not in Inventory: the walkthrough is about what that does to a port.