mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-06 19:54:13 +02:00
Assistant house style: a drawing-convention text every AI assistant reads
QetSettings::houseStyle()/setHouseStyle() (assistant/house_style), qet.houseStyle()/qet.setHouseStyle() in the script API, a house_style field in qet-assistant.json, and qet_about in the qet MCP server showing it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -173,6 +173,23 @@ namespace QetSettings
|
||||
settings.setValue("scripting/live_assistant", enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief houseStyle
|
||||
* @return this installation's drawing conventions, in the user's own
|
||||
* words -- empty when nobody has set any.
|
||||
*/
|
||||
QString houseStyle()
|
||||
{
|
||||
QSettings settings;
|
||||
return settings.value("assistant/house_style", QString()).toString();
|
||||
}
|
||||
|
||||
void setHouseStyle(const QString &text)
|
||||
{
|
||||
QSettings settings;
|
||||
settings.setValue("assistant/house_style", text);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief setSheetBackground
|
||||
* Store the sheet background last picked in the diagram editor, so the
|
||||
|
||||
Reference in New Issue
Block a user