fix(plot): correct style mode behavior (#874)

This commit is contained in:
Hakan Seven committed 2026-08-25 18:08:52 +03:00
commit 47612fd662
23 files changed
+108 -23

No files matched your search

+4
View File
@@ -345,6 +345,7 @@ common =
.brightness = السطوع
.by-layer = حسب الطبقة
.byblock = حسب الكتلة
.bycolor = حسب اللون
.bylayer = حسب الطبقة
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: تم تحويل __ocs_fmt_0__ مجسم إلى أسطح.
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: حدد مجسمًا أُنشئ في هذه الجلسة.
@@ -2737,6 +2738,9 @@ properties =
.plot-style-table = جدول نمط الطباعة
.plot-table-attached-to = جدول الطباعة مرفق بـ
.plot-table-type = نوع جدول الطباعة
.color-dependent-plot-styles = أنماط طباعة معتمدة على اللون
.named-plot-styles = أنماط طباعة مسماة
.plot-style-is-locked-to-color-in-color-dependent = نمط الطباعة مقيد باللون في الوضع المعتمد على اللون (CTB)
.point-1-x = النقطة 1 X
.point-1-y = النقطة 1 Y
.point-1-z = النقطة 1 Z
+4
View File
@@ -332,6 +332,7 @@ common =
.brightness = Яркост
.by-layer = По слой
.byblock = По блок
.bycolor = По цвят
.bylayer = По слой
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: конвертирани __ocs_fmt_0__ тяло/а в повърхност/и.
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: избери тяло, създадено в тази сесия.
@@ -2725,6 +2726,9 @@ properties =
.plot-style-table = Таблица със стилове за плотиране
.plot-table-attached-to = Таблицата за плотиране е прикачена към
.plot-table-type = Тип на таблица за плотиране
.color-dependent-plot-styles = Цветово-зависими стилове за печат
.named-plot-styles = Именувани стилове за печат
.plot-style-is-locked-to-color-in-color-dependent = Стилът за печат е заключен към цвета в цветово-зависим режим (CTB)
.point-1-x = Точка 1 X
.point-1-y = Точка 1 Y
.point-1-z = Точка 1 Z
+4
View File
@@ -332,6 +332,7 @@ common =
.brightness = Jas
.by-layer = Podle vrstvy
.byblock = ByBlock
.bycolor = Podle barvy
.bylayer = Podle vrstvy
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: převede tělesa __ocs_fmt_0__ na povrchy.
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: vyberte těleso vytvořené v této relaci.
@@ -2724,6 +2725,9 @@ properties =
.plot-style-table = Tabulka stylu pozemku
.plot-table-attached-to =Plot tabulka připojena k
.plot-table-type = Typ tabulky grafu
.color-dependent-plot-styles = Barevně závislé styly vykreslování
.named-plot-styles = Pojmenované styly vykreslování
.plot-style-is-locked-to-color-in-color-dependent = V barevně závislém režimu (CTB) je styl vykreslování uzamčen podle barvy
.point-1-x = Bod 1 X
.point-1-y = Bod 1 Y
.point-1-z = Bod 1 Z
+4
View File
@@ -333,6 +333,7 @@ common =
.brightness = Helligkeit
.by-layer = Nach Lage
.byblock = Block
.bycolor = Nach Farbe
.bylayer = ByLayer
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: Umgerechnet __ocs_fmt_0__ Feststoff(e) in Oberfläche(n).
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: Wählen Sie einen erstellten Volumenkörper.
@@ -2723,6 +2724,9 @@ properties =
.plot-style-table = Plotstiltabelle
.plot-table-attached-to = Angefügte Parzellentabelle
.plot-table-type = Art der Flächentabelle
.color-dependent-plot-styles = Farbabhängige Plotstile
.named-plot-styles = Benannte Plotstile
.plot-style-is-locked-to-color-in-color-dependent = Im farbabhängigen Modus (CTB) ist der Plotstil an die Farbe gebunden
.point-1-x = Punkt 1 X
.point-1-y = Punkt 1 Y
.point-1-z = Punkt 1 Z
+4
View File
@@ -333,6 +333,7 @@ common =
.brightness = Brightness
.by-layer = By layer
.byblock = ByBlock
.bycolor = ByColor
.bylayer = ByLayer
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: converted __ocs_fmt_0__ solid(s) to surface(s).
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: select a solid created this session.
@@ -2786,6 +2787,9 @@ properties =
.plot-style-table = Plot style table
.plot-table-attached-to = Plot table attached to
.plot-table-type = Plot table type
.color-dependent-plot-styles = Color-dependent plot styles
.named-plot-styles = Named plot styles
.plot-style-is-locked-to-color-in-color-dependent = Plot style is locked to color in Color-Dependent (CTB) mode
.point-1-x = Point 1 X
.point-1-y = Point 1 Y
.point-1-z = Point 1 Z
+4
View File
@@ -333,6 +333,7 @@ common =
.brightness = Brillo
.by-layer = Por capa
.byblock = PorBloque
.bycolor = PorColor
.bylayer = PorCapa
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: se convirtieron __ocs_fmt_0__ sólidos en superficies.
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: seleccione un sólido creado en esta sesión.
@@ -2725,6 +2726,9 @@ properties =
.plot-style-table = Tabla de estilos de trazado
.plot-table-attached-to = Tabla de trazado asociada a
.plot-table-type = Tipo de tabla de trazado
.color-dependent-plot-styles = Estilos de trazado dependientes del color
.named-plot-styles = Estilos de trazado con nombre
.plot-style-is-locked-to-color-in-color-dependent = En el modo dependiente del color (CTB), el estilo de trazado está vinculado al color
.point-1-x = Punto 1 X
.point-1-y = Punto 1 Y
.point-1-z = Punto 1 Z
+4
View File
@@ -332,6 +332,7 @@ common =
.brightness = Kirkkaus
.by-layer = Kerroksen mukaan
.byblock = ByBlock
.bycolor = Värin mukaan
.bylayer = Layerin mukaan
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: muutettu __ocs_fmt_0__-kiintoaine(t) pinnoiksi.
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: valitse tässä istunnossa luotu solid.
@@ -2724,6 +2725,9 @@ properties =
.plot-style-table = Juontyylinen pöytä
.plot-table-attached-to =Tonttitaulukko liitteenä
.plot-table-type = Piirretaulukon tyyppi
.color-dependent-plot-styles = Väristä riippuvat tulostustyylit
.named-plot-styles = Nimetyt tulostustyylit
.plot-style-is-locked-to-color-in-color-dependent = Väristä riippuvassa tilassa (CTB) tulostustyyli määräytyy värin mukaan
.point-1-x = Kohta 1 X
.point-1-y = Kohta 1 Y
.point-1-z = Kohta 1 Z
+4
View File
@@ -333,6 +333,7 @@ common =
.brightness = Luminosité
.by-layer = DuCalque
.byblock = Par bloc
.bycolor = Par couleur
.bylayer = ParLayer
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: converti en surface ou en surface __ocs_fmt_0__ solide(s).
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE : sélectionnez une session solide créée.
@@ -2725,6 +2726,9 @@ properties =
.plot-style-table = Table des styles de tracé
.plot-table-attached-to = Tableau de correspondance joint à la
.plot-table-type = Type de table de tracé
.color-dependent-plot-styles = Styles de tracé dépendant de la couleur
.named-plot-styles = Styles de tracé nommés
.plot-style-is-locked-to-color-in-color-dependent = En mode dépendant de la couleur (CTB), le style de tracé est lié à la couleur
.point-1-x = Point 1 X
.point-1-y = Point 1 Y
.point-1-z = Point 1 Z
+4
View File
@@ -321,6 +321,7 @@ common =
.brightness = चमक
.by-layer = ByLayer
.byblock = ब्लॉक द्वारा
.bycolor = रंग द्वारा
.bylayer = ByLayer
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: सतह (s) के लिए __ocs_fmt_0__ ठोस (s) परिवर्तित।
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: इस सत्र को एक ठोस बनाया गया चयन करें।
@@ -2713,6 +2714,9 @@ properties =
.plot-style-table = प्लॉट स्टाइल टेबल
.plot-table-attached-to = से जुड़ी प्लॉट टेबल
.plot-table-type = प्लॉट तालिका प्रकार
.color-dependent-plot-styles = रंग-निर्भर प्लॉट शैलियाँ
.named-plot-styles = नामित प्लॉट शैलियाँ
.plot-style-is-locked-to-color-in-color-dependent = रंग-निर्भर (CTB) मोड में प्लॉट शैली रंग से लॉक होती है
.point-1-x = अंक 1 X
.point-1-y = अंक 1 Y
.point-1-z = प्वाइंट 1
+4
View File
@@ -332,6 +332,7 @@ common =
.brightness = Fényerő
.by-layer = Réteg szerint
.byblock = ByBlock
.bycolor = Szín szerint
.bylayer = ByLayer
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: __ocs_fmt_0__ szilárdtest(ek)et felületté alakított(ok).
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: válassza ki a munkamenetben létrehozott szilárdtestet.
@@ -2724,6 +2725,9 @@ properties =
.plot-style-table = Telek stílusú táblázat
.plot-table-attached-to =Telektábla csatolva
.plot-table-type = Plot tábla típusa
.color-dependent-plot-styles = Színfüggő nyomtatási stílusok
.named-plot-styles = Elnevezett nyomtatási stílusok
.plot-style-is-locked-to-color-in-color-dependent = Színfüggő (CTB) módban a nyomtatási stílust a szín határozza meg
.point-1-x = 1. pont X
.point-1-y = 1. pont Y
.point-1-z = 1. pont Z
+4
View File
@@ -332,6 +332,7 @@ common =
.brightness = Luminosità
.by-layer = Per strato
.byblock = PerBlocco
.bycolor = PerColore
.bylayer = PerLayer
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: convertito(i) solido(i) __ocs_fmt_0__ in superficie(i).
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: seleziona un solido creato in questa sessione.
@@ -2724,6 +2725,9 @@ properties =
.plot-style-table = Tabella stili di stampa
.plot-table-attached-to =Tabella di stampa allegata a
.plot-table-type = Tipo di tabella di stampa
.color-dependent-plot-styles = Stili di stampa dipendenti dal colore
.named-plot-styles = Stili di stampa con nome
.plot-style-is-locked-to-color-in-color-dependent = In modalità dipendente dal colore (CTB), lo stile di stampa è vincolato al colore
.point-1-x = Punto 1 X
.point-1-y = Punto 1 Y
.point-1-z = Punto 1 Z
+4
View File
@@ -323,6 +323,7 @@ common =
.brightness = 明るさ
.by-layer = レイヤー別
.byblock = ブロック依存
.bycolor = 色依存
.bylayer = レイヤー依存
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: __ocs_fmt_0__ 個のソリッドをサーフェスに変換しました。
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: このセッションで作成したソリッドを選択してください。
@@ -2713,6 +2714,9 @@ properties =
.plot-style-table = 印刷スタイルテーブル
.plot-table-attached-to = 印刷テーブルのアタッチ先
.plot-table-type = 印刷テーブルの種類
.color-dependent-plot-styles = 色従属印刷スタイル
.named-plot-styles = 名前付き印刷スタイル
.plot-style-is-locked-to-color-in-color-dependent = 色従属(CTB)モードでは、印刷スタイルは色に固定されます
.point-1-x = 点 1 X
.point-1-y = 点 1 Y
.point-1-z = 点 1 Z
+4
View File
@@ -332,6 +332,7 @@ common =
.brightness = 밝기
.by-layer = 레이어별
.byblock = 바이블록
.bycolor = 색상별
.bylayer = 레이어별
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: __ocs_fmt_0__ 솔리드를 표면으로 변환했습니다.
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: 이 세션에서 생성된 솔리드를 선택합니다.
@@ -2724,6 +2725,9 @@ properties =
.plot-style-table = 플롯 스타일 테이블
.plot-table-attached-to =플롯 테이블이 첨부됨
.plot-table-type = 플롯 테이블 유형
.color-dependent-plot-styles = 색상 종속 플롯 스타일
.named-plot-styles = 명명된 플롯 스타일
.plot-style-is-locked-to-color-in-color-dependent = 색상 종속(CTB) 모드에서는 플롯 스타일이 색상에 고정됩니다
.point-1-x = 포인트 1 X
.point-1-y = 포인트 1 Y
.point-1-z = 포인트 1 Z
+4
View File
@@ -333,6 +333,7 @@ common =
.brightness = Helderheid
.by-layer = Op laag
.byblock = Per blok
.bycolor = Per kleur
.bylayer = DoorLayer
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: omgezet __ocs_fmt_0__ vaste stof(s) naar oppervlakte(s).
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: selecteer een vaste aangemaakte sessie.
@@ -2725,6 +2726,9 @@ properties =
.plot-style-table = Plotstijltabel
.plot-table-attached-to = Plottabel bijvoegen
.plot-table-type = Type plotstijltabel
.color-dependent-plot-styles = Kleurafhankelijke plotstijlen
.named-plot-styles = Benoemde plotstijlen
.plot-style-is-locked-to-color-in-color-dependent = In kleurafhankelijke modus (CTB) is de plotstijl aan de kleur gekoppeld
.point-1-x = Punt 1 X
.point-1-y = Punt 1 Y
.point-1-z = Punt 1 Z
+4
View File
@@ -332,6 +332,7 @@ common =
.brightness = Jasność
.by-layer = Według warstwy
.byblock = ByBlock
.bycolor = Według koloru
.bylayer = Według warstwy
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: przekształcono bryłę __ocs_fmt_0__ w powierzchnię.
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: wybierz bryłę utworzoną w tej sesji.
@@ -2724,6 +2725,9 @@ properties =
.plot-style-table = Tabela stylów wydruku
.plot-table-attached-to =Tabela wykresów dołączona do
.plot-table-type = Typ tabeli wykresów
.color-dependent-plot-styles = Style wydruku zależne od koloru
.named-plot-styles = Nazwane style wydruku
.plot-style-is-locked-to-color-in-color-dependent = W trybie zależnym od koloru (CTB) styl wydruku jest przypisany do koloru
.point-1-x = Punkt 1 X
.point-1-y = Punkt 1 Y
.point-1-z = Punkt 1 Z
+4
View File
@@ -333,6 +333,7 @@ common =
.brightness = Brilho
.by-layer = Por camada
.byblock = PorBloco
.bycolor = PorCor
.bylayer = PorCamada
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: __ocs_fmt_0__ sólidos convertidos em superfícies.
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: selecione um sólido criado nesta sessão.
@@ -2725,6 +2726,9 @@ properties =
.plot-style-table = Tabela de estilos de plotagem
.plot-table-attached-to = Tabela de plotagem anexada a
.plot-table-type = Tipo de tabela de plotagem
.color-dependent-plot-styles = Estilos de plotagem dependentes de cor
.named-plot-styles = Estilos de plotagem nomeados
.plot-style-is-locked-to-color-in-color-dependent = No modo dependente de cor (CTB), o estilo de plotagem fica vinculado à cor
.point-1-x = Ponto 1 X
.point-1-y = Ponto 1 Y
.point-1-z = Ponto 1 Z
+4
View File
@@ -336,6 +336,7 @@ common =
.brightness = Яркость
.by-layer = слой
.byblock = Блокировка
.bycolor = По цвету
.bylayer = ByLayer
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: преобразовано __ocs_fmt_0__ твердое(ые) в поверхность(ы).
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: выберите твердое решение, созданное в ходе этой сессии.
@@ -2728,6 +2729,9 @@ properties =
.plot-style-table = Таблица стилей печати
.plot-table-attached-to = Стол для игровых участков, прикрепленный
.plot-table-type = Тип стола для игровых автоматов
.color-dependent-plot-styles = Цветозависимые стили печати
.named-plot-styles = Именованные стили печати
.plot-style-is-locked-to-color-in-color-dependent = В цветозависимом режиме (CTB) стиль печати определяется цветом
.point-1-x = Точка 1 X
.point-1-y = Точка 1 Y
.point-1-z = Точка 1 Z
+4
View File
@@ -319,6 +319,7 @@ common =
.brightness = Parlaklık
.by-layer = Katmandan
.byblock = Bloktan
.bycolor = Renge göre
.bylayer = Katmandan
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE: __ocs_fmt_0__ katı yüzeye dönüştürüldü.
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE: bu oturumda oluşturulmuş bir katı seçin.
@@ -2725,6 +2726,9 @@ properties =
.plot-style-table = Çizim stili tablosu
.plot-table-attached-to = Çizim tablosunun eklendiği
.plot-table-type = Çizim tablosu türü
.color-dependent-plot-styles = Renge bağlı çizim stilleri
.named-plot-styles = Adlandırılmış çizim stilleri
.plot-style-is-locked-to-color-in-color-dependent = Renge Bağlı (CTB) modunda çizim stili renge kilitlidir
.point-1-x = Nokta 1 X
.point-1-y = Nokta 1 Y
.point-1-z = Nokta 1 Z
+4
View File
@@ -320,6 +320,7 @@ common =
.brightness = 亮度
.by-layer = 按层
.byblock = 按块
.bycolor = 按颜色
.bylayer = 随层
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE:将__ocs_fmt_0__固态转换为地表.
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE:选择创建此会话的固件 。
@@ -2708,6 +2709,9 @@ properties =
.plot-style-table = 打印样式表
.plot-table-attached-to = 打印样式表应用于
.plot-table-type = 打印样式表类型
.color-dependent-plot-styles = 颜色相关打印样式
.named-plot-styles = 命名打印样式
.plot-style-is-locked-to-color-in-color-dependent = 在颜色相关 (CTB) 模式下,打印样式由颜色决定
.point-1-x = 点 1 X
.point-1-y = 点 1 Y
.point-1-z = 点 1 Z
+4
View File
@@ -332,6 +332,7 @@ common =
.brightness = 亮度
.by-layer = 按層
.byblock = 依圖塊
.bycolor = 依色彩
.bylayer = 隨層
.convtosurface-converted-n-solid-s-to-surface-s = CONVTOSURFACE:將__ocs_fmt_0__實體轉換為曲面.
.convtosurface-select-a-solid-created-this-sess = CONVTOSURFACE:選擇建立此會話的固件 。
@@ -2720,6 +2721,9 @@ properties =
.plot-style-table = 列印樣式表
.plot-table-attached-to = 列印樣式表應用於
.plot-table-type = 列印樣式表類型
.color-dependent-plot-styles = 色彩相關出圖型式
.named-plot-styles = 具名出圖型式
.plot-style-is-locked-to-color-in-color-dependent = 在色彩相關 (CTB) 模式下,出圖型式由色彩決定
.point-1-x = 點 1 X
.point-1-y = 點 1 Y
.point-1-z = 點 1 Z
+15 -22
View File
@@ -203,11 +203,15 @@ impl OpenCADStudio {
})
.unwrap_or_else(|| "ByLayer".to_string())
};
let plot_style = match header.current_plotstyle_type {
1 => "ByBlock",
2 => "ByColor",
3 => "ByObject",
_ => "ByLayer",
let plot_style = if header.plotstyle_mode {
"ByColor"
} else {
match header.current_plotstyle_type {
1 => "ByBlock",
2 => "Normal",
3 => "ByObject",
_ => "ByLayer",
}
};
let layout_plot_table = doc.objects.values().find_map(|object| {
let acadrust::objects::ObjectType::Layout(layout) = object else {
@@ -316,7 +320,7 @@ impl OpenCADStudio {
Property {
label: t!("Plot style").into_owned(),
field: "plot_style",
value: if header.plotstyle_mode {
value: if !header.plotstyle_mode {
PropValue::Choice {
selected: plot_style.to_string(),
options: vec![
@@ -327,7 +331,7 @@ impl OpenCADStudio {
}
} else {
PropValue::ReadOnlyWithTooltip {
value: plot_style.to_string(),
value: t!("ByColor").into_owned(),
tooltip: t!("Plot style is locked to color in Color-Dependent (CTB) mode").into_owned(),
}
},
@@ -344,9 +348,9 @@ impl OpenCADStudio {
read_only(
t!("Plot table type").as_ref(),
if header.plotstyle_mode {
"Named plot styles".to_string()
t!("Color-dependent plot styles").into_owned()
} else {
"Color-dependent plot styles".to_string()
t!("Named plot styles").into_owned()
},
),
],
@@ -746,11 +750,7 @@ impl OpenCADStudio {
}
}
// In named plot-style mode (PSTYLEMODE=1) the Plot style row
// picks a named style from the drawing's plot style table. In
// the color-dependent mode it stays read-only (the object's
// color drives the plot style), so it is left untouched.
if self.tabs[i].scene.document.header.plotstyle_mode {
if !self.tabs[i].scene.document.header.plotstyle_mode {
let doc = &self.tabs[i].scene.document;
let dict_h = doc.header.acad_plotstylename_dict_handle;
let common = entity.common();
@@ -797,15 +797,8 @@ impl OpenCADStudio {
if let Some(row) =
section.props.iter_mut().find(|p| p.field == "plot_style")
{
let common = entity.common();
let plot_style_str = match common.plotstyle_flags {
0 => "ByLayer",
1 => "ByBlock",
2 => "Normal",
_ => "ByColor",
};
row.value = crate::scene::model::object::PropValue::ReadOnlyWithTooltip {
value: plot_style_str.to_string(),
value: t!("ByColor").into_owned(),
tooltip: t!("Plot style is locked to color in Color-Dependent (CTB) mode").into_owned(),
};
}
+9 -1
View File
@@ -2169,6 +2169,10 @@ pub(super) fn on_tab_close(&mut self, idx: usize) -> Task<Message> {
}
}
} else if field == "plot_style" {
if self.tabs[i].scene.document.header.plotstyle_mode {
self.refresh_properties();
return Task::none();
}
// Named plot-style pick: ByLayer / ByBlock clear the
// handle; a named style resolves through the drawing's
// ACAD_PLOTSTYLENAME dictionary to its placeholder handle.
@@ -2349,11 +2353,15 @@ pub(super) fn on_tab_close(&mut self, idx: usize) -> Task<Message> {
self.refresh_properties();
}
"plot_style" => {
if self.tabs[i].scene.document.header.plotstyle_mode {
self.refresh_properties();
return Task::none();
}
match value.as_str() {
"ByBlock" => {
self.tabs[i].scene.document.header.current_plotstyle_type = 1
}
"Normal" | "ByColor" => {
"Normal" => {
self.tabs[i].scene.document.header.current_plotstyle_type = 2
}
_ => self.tabs[i].scene.document.header.current_plotstyle_type = 0,
+4
View File
@@ -478,6 +478,7 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"By layer" => Some(("common", "by-layer")),
"By style" => Some(("properties", "by-style")),
"ByBlock" => Some(("common", "byblock")),
"ByColor" => Some(("common", "bycolor")),
"ByLayer" => Some(("common", "bylayer")),
"C++ Class" => Some(("properties", "c-class")),
"CAD application for Architecture & Engineering" => Some(("ui", "cad-application-for-architecture-engineering")),
@@ -618,6 +619,7 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"Collapsed" => Some(("ui", "collapsed")),
"Collect Leaders" => Some(("annotate", "collect-leaders")),
"Color" => Some(("common", "color")),
"Color-dependent plot styles" => Some(("properties", "color-dependent-plot-styles")),
"Color 1" => Some(("properties", "color-1")),
"Color 2" => Some(("properties", "color-2")),
"Color Book" => Some(("properties", "color-book")),
@@ -1706,6 +1708,7 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"Name:" => Some(("common", "name-label-title-case")),
"Named" => Some(("view", "named")),
"Named View" => Some(("properties", "named-view")),
"Named plot styles" => Some(("properties", "named-plot-styles")),
"Named views: {}" => Some(("layers", "named-views")),
"Navigate" => Some(("view", "navigate")),
"Nearest" => Some(("common", "nearest")),
@@ -1992,6 +1995,7 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"Plot scale" => Some(("plot", "plot-scale")),
"Plot stamp" => Some(("plot", "plot-stamp")),
"Plot style" => Some(("common", "plot-style")),
"Plot style is locked to color in Color-Dependent (CTB) mode" => Some(("properties", "plot-style-is-locked-to-color-in-color-dependent")),
"Plot style '{}' loaded ({} color entries)." => Some(("common", "plot-style-loaded-color-entries")),
"Plot style ACI {aci} updated." => Some(("file", "plot-style-aci-aci-updated")),
"Plot style table" => Some(("properties", "plot-style-table")),