diff --git a/src/model_editor/InspectorGadget.cpp b/src/model_editor/InspectorGadget.cpp index 97c7144c7..847e9e396 100644 --- a/src/model_editor/InspectorGadget.cpp +++ b/src/model_editor/InspectorGadget.cpp @@ -789,9 +789,12 @@ void InspectorGadget::layoutComboBox(QVBoxLayout* layout, QWidget* parent, opens int idx = combo->findText(curVal.c_str(), Qt::MatchFixedString); if (-1 == idx) { + + // field is currently set to an invalid value idx = 0; - connect(combo, static_cast(&QComboBox::currentTextChanged), this, &InspectorGadget::IGdefaultRemoved); - //QString errormsg("We have a value:"); + combo->insertItem(idx, QPixmap(":/images/alert_image.png"), curVal.c_str(), "Invalid"); + + //QString errormsg("We have a value:"); //errormsg += curVal.c_str(); //errormsg += " that does not match the allowable values in the idd.Name:"; //errormsg += name.c_str(); @@ -887,13 +890,6 @@ void InspectorGadget::checkRemoveBtn(QPushButton* btn) { } //SLOTS -void InspectorGadget::IGdefaultRemoved(const QString& /*unused*/) { - QObject* source = sender(); - auto* w = dynamic_cast(source); - w->setStyleSheet("color:black"); - // using old style disconnect here - disconnect(source, nullptr, this, SLOT(IGdefaultRemoved(const QString&))); -} void InspectorGadget::IGvalueChanged(const QString& value) { OS_ASSERT(m_workspaceObj); diff --git a/src/model_editor/InspectorGadget.hpp b/src/model_editor/InspectorGadget.hpp index 1b69f8e37..3dcfb8953 100644 --- a/src/model_editor/InspectorGadget.hpp +++ b/src/model_editor/InspectorGadget.hpp @@ -160,16 +160,6 @@ class MODELEDITOR_API InspectorGadget */ void clear(bool recursive); - /*! \brief changes the color of widgets - * - * When widget are built, if the Field is required but there is no value and no default value - *(which in a way, is bad idf) the IG will put 0 or 0.0 in there for you, but color it red - * to point out that you should address this. Once you set a value, this function is automatically - * called for you and sets the color back to black. - * - */ - void IGdefaultRemoved(const QString&); - void IGvalueChanged(const QString&); void IGcommentChanged(const QString&); diff --git a/translations/OpenStudioApp_ar.ts b/translations/OpenStudioApp_ar.ts index eb5f2f55f..a03391ce0 100644 --- a/translations/OpenStudioApp_ar.ts +++ b/translations/OpenStudioApp_ar.ts @@ -49,7 +49,7 @@ - + Add/Remove Extensible Groups @@ -740,24 +740,24 @@ If you would like to see the OpenStudioApplication translated in your language o openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1145,6 +1145,24 @@ Would you like to Restore library paths to default values or Open the library se + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_ca.ts b/translations/OpenStudioApp_ca.ts index e3f89e946..1545b9a8c 100644 --- a/translations/OpenStudioApp_ca.ts +++ b/translations/OpenStudioApp_ca.ts @@ -50,7 +50,7 @@ Autocalcular - + Add/Remove Extensible Groups Afegir/Eliminat Grups Extensibles @@ -832,24 +832,24 @@ Si voleu que OpeStudioApplication estigui a la vostra llengua, esperem la vostra openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1275,6 +1275,24 @@ Would you like to Restore library paths to default values or Open the library se Voldries Restaurar els valors per defecte dels camins de les llibrerires o Obrir-ne la configuració per canviar-ho manualment? + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_de.ts b/translations/OpenStudioApp_de.ts index 7cf06483f..c51824188 100644 --- a/translations/OpenStudioApp_de.ts +++ b/translations/OpenStudioApp_de.ts @@ -49,7 +49,7 @@ Automatisch berechnet - + Add/Remove Extensible Groups Hinzufügen/Entfernen von erweiterbaren Gruppen @@ -840,24 +840,24 @@ Wenn Sie möchten, dass die OpenStudio-Applikation in die Sprache Ihrer Wahl üb openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1285,6 +1285,24 @@ Would you like to Restore library paths to default values or Open the library se Möchten Sie die Bibliothekspfade auf die Standardwerte zurücksetzen oder öffnen Sie die Bibliothekseinstellungen, um die Einstellungen manuell zu ändern? + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_el.ts b/translations/OpenStudioApp_el.ts index 27038c989..870fe8458 100644 --- a/translations/OpenStudioApp_el.ts +++ b/translations/OpenStudioApp_el.ts @@ -49,7 +49,7 @@ Αυτόματος υπολογισμός - + Add/Remove Extensible Groups Προσθήκη/Κατάργηση επεκτάσιμων ομάδων @@ -830,24 +830,24 @@ If you would like to see the OpenStudioApplication translated in your language o openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1272,6 +1272,24 @@ Would you like to Restore library paths to default values or Open the library se Θέλετε να επαναφέρετε διαδρομές βιβλιοθήκης σε προεπιλεγμένες τιμές ή να ανοίξετε τις ρυθμίσεις της βιβλιοθήκης για να τις αλλάξετε χειροκίνητα? + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_es.ts b/translations/OpenStudioApp_es.ts index c88062399..ea27702bf 100644 --- a/translations/OpenStudioApp_es.ts +++ b/translations/OpenStudioApp_es.ts @@ -50,7 +50,7 @@ Auto Calcular - + Add/Remove Extensible Groups Añadir/Remover Grupos Extendibles @@ -831,24 +831,24 @@ Si le gustaría ver la AplicaciónOpenStudio traducido a algun otro lenguaje, le openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1273,6 +1273,24 @@ Would you like to Restore library paths to default values or Open the library se Desea Restaurar la ruta por defecto de las librerías o Abrir los ajustes de librería para cambiarlos manualmente? + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_fa.ts b/translations/OpenStudioApp_fa.ts index 3f0ca9cfc..a64abe4c7 100644 --- a/translations/OpenStudioApp_fa.ts +++ b/translations/OpenStudioApp_fa.ts @@ -49,7 +49,7 @@ محاسبه خودکار - + Add/Remove Extensible Groups افزودن/حذف گروههای قابل توسعه @@ -830,24 +830,24 @@ If you would like to see the OpenStudioApplication translated in your language o openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1271,6 +1271,24 @@ Would you like to Restore library paths to default values or Open the library se آیا می خواهید مسیرهای کتابخانه را به پیش فرض بازیابی کنید یا تنظیمات کتابخانه را بصورت دستی تغییر دهید؟ + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_fr.ts b/translations/OpenStudioApp_fr.ts index 7d24b715d..6dcb7d70a 100644 --- a/translations/OpenStudioApp_fr.ts +++ b/translations/OpenStudioApp_fr.ts @@ -49,7 +49,7 @@ Autocalculé - + Add/Remove Extensible Groups Ajouter / Supprimer des groupes extensibles @@ -830,24 +830,24 @@ Si vous voulez voir l'Application OpenStudio traduite dans la langue de vot openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1273,6 +1273,24 @@ Would you like to Restore library paths to default values or Open the library se Souhaitez-vous restaurer les chemins de bibliothèque aux valeurs par défaut ou ouvrir les paramètres de la bibliothèque pour les modifier manuellement ? + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_he.ts b/translations/OpenStudioApp_he.ts index 2a3e3bb8c..c11d9e0de 100644 --- a/translations/OpenStudioApp_he.ts +++ b/translations/OpenStudioApp_he.ts @@ -49,7 +49,7 @@ מחושב אוטומטית - + Add/Remove Extensible Groups הוסף/הסר קבוצות מורחבות @@ -828,24 +828,24 @@ If you would like to see the OpenStudioApplication translated in your language o openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1259,6 +1259,24 @@ Would you like to Restore library paths to default values or Open the library se האם תרצה לשחזר את נתיבי הספרייה לערכי ברירת המחדל או לפתוח את הגדרות הספרייה כדי לשנות אותם באופן ידני? + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_hi.ts b/translations/OpenStudioApp_hi.ts index 67d343aea..6e3077677 100644 --- a/translations/OpenStudioApp_hi.ts +++ b/translations/OpenStudioApp_hi.ts @@ -49,7 +49,7 @@ स्व-गणना - + Add/Remove Extensible Groups एक्स्टेंसिबल समूह जोड़ें/निकालें @@ -831,24 +831,24 @@ If you would like to see the OpenStudioApplication translated in your language o openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1273,6 +1273,24 @@ Would you like to Restore library paths to default values or Open the library se क्या आप लाइब्रेरी पथों को डिफ़ॉल्ट मानों पर पुनर्स्थापित करना चाहते हैं या उन्हें मैन्युअल रूप से बदलने के लिए लाइब्रेरी सेटिंग्स खोलना चाहते हैं? + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_it.ts b/translations/OpenStudioApp_it.ts index 07adbc1b5..5fa20a3d0 100644 --- a/translations/OpenStudioApp_it.ts +++ b/translations/OpenStudioApp_it.ts @@ -49,7 +49,7 @@ Calcolo Automatico - + Add/Remove Extensible Groups Aggiungi/Rimuovi Gruppi d'Estensione @@ -832,24 +832,24 @@ Se vuoi vedere OpenStudioApplication tradotto nel tuo linguaggio preferito, appr openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1274,6 +1274,24 @@ Would you like to Restore library paths to default values or Open the library se Vuoi ripristinare I percorsi delle librerie come Predefiniti o Aprire i settaggi della libreria e cambiarli manualmente? + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_ja.ts b/translations/OpenStudioApp_ja.ts index 71c5736c4..218f363b9 100644 --- a/translations/OpenStudioApp_ja.ts +++ b/translations/OpenStudioApp_ja.ts @@ -49,7 +49,7 @@ 自動計算 - + Add/Remove Extensible Groups 追加/削除 @@ -831,24 +831,24 @@ If you would like to see the OpenStudioApplication translated in your language o openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1276,6 +1276,24 @@ Would you like to Restore library paths to default values or Open the library se デフォルトのライブラリーに戻るか手動でライブラリーの設定を変更しますか? + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_pl.ts b/translations/OpenStudioApp_pl.ts index e50358629..8d496100d 100644 --- a/translations/OpenStudioApp_pl.ts +++ b/translations/OpenStudioApp_pl.ts @@ -49,7 +49,7 @@ Automatyczne obliczenia - + Add/Remove Extensible Groups Dodaj/Usuń rozszerzalne grupy @@ -831,24 +831,24 @@ Jeśli chcesz zobaczyć aplikację OpenStudio przetłumaczoną na wybrany przez openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1273,6 +1273,24 @@ Would you like to Restore library paths to default values or Open the library se Chcesz przywrócić ścieżki biblioteki do wartości domyślnych, czy otworzyć ustawienia biblioteki, aby zmienić je ręcznie? + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_vi.ts b/translations/OpenStudioApp_vi.ts index cd3a9d7a1..d1c2e9dd2 100644 --- a/translations/OpenStudioApp_vi.ts +++ b/translations/OpenStudioApp_vi.ts @@ -49,7 +49,7 @@ Tự động tính toán - + Add/Remove Extensible Groups Thêm/bớt các nhóm có thể mở rộng @@ -828,24 +828,24 @@ Nếu bạn muốn thấy OpenStudioApplication được dịch sang ngôn ngữ openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1270,6 +1270,24 @@ Would you like to Restore library paths to default values or Open the library se Bạn có muốn Khôi phục đường dẫn thư viện về giá trị mặc định hay Mở cài đặt thư viện để thay đổi chúng theo cách thủ công? + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView diff --git a/translations/OpenStudioApp_zh_CN.ts b/translations/OpenStudioApp_zh_CN.ts index dc235aaa2..b3562fb92 100644 --- a/translations/OpenStudioApp_zh_CN.ts +++ b/translations/OpenStudioApp_zh_CN.ts @@ -49,7 +49,7 @@ 自动计算 - + Add/Remove Extensible Groups 增加/删除 扩展组 @@ -831,24 +831,24 @@ If you would like to see the OpenStudioApplication translated in your language o openstudio::MeasureManager - - + + Measures Updated - + All measures are up-to-date. - + measures have been updated on BCL compared to your local BCL directory. - + Would you like update them? @@ -1271,6 +1271,24 @@ Would you like to Restore library paths to default values or Open the library se + + openstudio::PathInputView + + + Open Directory + + + + + Open Read File + + + + + Select Save File + + + openstudio::PeopleDefinitionInspectorView