28 Commits (33a4b08ac02d270fcd8439177d1dbeb20aa66b5e)

Author SHA1 Message Date
Adriaan de Groot 433ed8384f [netinstall] Inherit criticalness in groups
- Groups inherit slightly differently: if a subgroup **explicitly**
  configures criticalness, use that. It would be weird, but possibly,
  to have a non-critical subgroup of a critical group.
6 years ago
Adriaan de Groot 83a89c144c [netinstall] Packages should inherit critical-ness from parent 6 years ago
Adriaan de Groot 464561b420 [netinstall] Update subgroup-checkedness based on children
- An unselected group with (some) selected subgroups was not
  displayed as (semi)checked -- it was unchecked, because
  its checked-ness was not updated based on the children.
6 years ago
Adriaan de Groot 63b940a623 [netinstall] Implement immutable groups
- An immutable group doesn't show a checkbox at all
6 years ago
Adriaan de Groot 025ab8b524 [netinstall] Be explicit about checkedness-to-bool conversions 6 years ago
Adriaan de Groot 0e2b3986b9 [netinstall] Use explicit accessor for the type-of-item 6 years ago
Adriaan de Groot f7191ac29e [netinstall] Compare two PackageTreeItems
- Packages and groups check different fields for equality.
- Selected-state is **not** part of equality.
- Also operator !=
6 years ago
Adriaan de Groot 52d3f4417f [netinstall] Add explicit isGroup()
- Previously you would either need to know where in the tree a
  PackageTreeItem was, or guess that an empty packageName() means that
  it's a group.
6 years ago
Adriaan de Groot c7b646315a [netinstall] Add immutable to groups settings 6 years ago
Adriaan de Groot 4cb2ed9552 [netinstall] Chase removal of ItemData
- Simplify creation of PackageTreeItems by interpreting the
  YAML directly (instead of via ItemData),
- Simplify list types,
- Drop superfluous API.
6 years ago
Adriaan de Groot c66ef5a201 [netinstall] Refactor: kill ItemData
- This doesn't compile right now.
- The nested class ItemData doesn't do anything useful or
  meaningful that having model items with the right data wouldn't.
6 years ago
Adriaan de Groot 0f7f5216ee [netinstall] isHidden is const after construction 6 years ago
Adriaan de Groot b074696ac1 [netinstall] isCritical is const after construction 6 years ago
Adriaan de Groot 3d68c74a19 [netinstall] Sanitize PackageTreeItem::data()
- Use of != nullptr for QString just a bad idea
- Massage code so structure for packages resembles that of groups
6 years ago
Adriaan de Groot 5b67ca315a [netinstall] It should be easier to get the number 2 7 years ago
Adriaan de Groot 0877a994f1 [netinstall] Update copyright 7 years ago
Adriaan de Groot 056b0d7548 [netinstall] Refactor variant-from-ItemData 7 years ago
Adriaan de Groot 17eb3f5e33 [netinstall] Apply coding style 7 years ago
Andrius Štikonas 490c14d93d QLatin1Literal->QLatin1String. 7 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 9 years ago
Adriaan de Groot 93ab6432c4 [netinstall] Special-case the root node.
Root is always selected, can't be unselected, and has its own explicit
constructor and name. This resolves issue reported where unchecking
all *visible* groups caused the root to be unchecked, after which
hidden-but-still-selected subgroups were not installed.

Reported by crazy@
9 years ago
Adriaan de Groot aa0fa37492 [netinstall] Hidden groups follow selectedness of parents.
If a subgroup is hidden, then it should be considered
selected if its parent is selected or partially-selected.
If the parent group is totally unselected, then the hidden
subgroup shouldn't be installed either. This allows putting
required-packages into a group, without cluttering the
interface.

FIXES #864
9 years ago
Adriaan de Groot 71e80f680e [netinstall] Only update selectedness of parents with children.
While walking up the tree, only switch the selectedness states
of parents with children. This avoids the case where a parent
has a first subgroup that is hidden -- in which case the
parent ends up with no children, and is unselected even though
it is marked as selected in the config file.

FIXES #864
9 years ago
Adriaan de Groot 13807ceabf Licensing: add self
- to all the files I've touched recently
 - to (very incomplete) AUTHORS list

Licensing: add license info to top-level CMakeLists.txt
9 years ago
Adriaan de Groot edb1dbaa6e Clang: warnings-- 9 years ago
Kyle Robertze 1d7ad9e045 made requested changes 10 years ago
Kyle Robertze f5fe887a79 fixed style issues 10 years ago
Kyle Robertze a4aef3bce5 moved netinstall to a tree based ui 10 years ago