Add unit validation with red highlighting and status bar feedback
Units that cannot be executed are shown in red on both the Units and Plans tabs. Validation checks target existence/executability, shell definition lookup, working directory existence, rectifier existence/executability, and environment file existence. The unit properties dialog applies live validation with GTK error styling on each field and reports issues to the status bar as the user edits. Selecting a unit or task re-runs validation so the status bar always reflects the selected item. Also separates plan dirty state from unit editor dirty state so editing unit properties no longer marks the plan as unsaved.
This commit is contained in:
@@ -50,6 +50,7 @@ public:
|
||||
std::filesystem::path resolved_units_dir() const;
|
||||
std::filesystem::path resolved_shells_path() const;
|
||||
|
||||
bool check_unit_valid(const Unit& u);
|
||||
Unit* find_unit(const std::string& unit_name);
|
||||
UnitFile* find_unit_file(const std::string& unit_name);
|
||||
bool is_unit_name_taken(const std::string& name, const Unit* exclude = nullptr) const;
|
||||
|
||||
Reference in New Issue
Block a user