Commit Graph

946 Commits

Author SHA1 Message Date
Dmitry Degtyarev
9784d63555 fix delegate image asking for null parent
happens when the delegate is filtered out
2020-11-04 16:44:20 +04:00
Dmitry Degtyarev
5eee03ad97 fix header bug newer Qt and/or windows
overlay header causes the item to not respond to input
\ so made the "header" a separate item that is on top of the list
2020-11-04 16:42:55 +04:00
Dmitry Degtyarev
375021074e make file type a regular enum 2020-11-04 14:34:37 +04:00
Dmitry Degtyarev
866c87630a change Architecture to a regular enum
dont register as qml type, wasn't used in qml
2020-11-04 14:09:43 +04:00
Dmitry Degtyarev
a0648daa5e rename FileType::abbreviation to extension
rename fileNameFilters to fileTypeFilters
2020-11-04 12:39:01 +04:00
Dmitry Degtyarev
889e2a7514 handle overlapping file types in fromFilename
"tar" vs "recovery.tar"
select longest abbreviation
bring back TAR file type
2020-11-04 12:36:11 +04:00
Dmitry Degtyarev
be0d2173ab rename variant statuses 2020-11-04 10:11:27 +04:00
Dmitry Degtyarev
f122af58bb fix custom file not opening on windows
fileUrl obtained from file dialog contains "file:///" suffix
remove it
2020-11-04 10:07:48 +04:00
Dmitry Degtyarev
7f257dca5d remove Variant::size
calculate size in drivemanager from filePath
remove size display in image details
change variant status strings to a map
clean up variant state transitions
2020-11-04 10:04:08 +04:00
Dmitry Degtyarev
e8e73b3abd construct Variant::filePath in ctor
change Variant::custom() to a ctor
2020-11-04 09:09:10 +04:00
Dmitry Degtyarev
920377e709 replace Variant::fullName with Variant::filename
displayed in drive notifications
makes more sense for custom variants
2020-11-04 08:40:00 +04:00
Dmitry Degtyarev
c24d7849d0 open url list files in text mode
so unix/windows line ending differences are taken care of by qt
check for reply error, not bytesAvailable, because some errors return
\ bytes too
2020-11-03 20:15:07 +04:00
Dmitry Degtyarev
0d413a2af2 use custome myMessageOutput to print on windows
need it after all
2020-11-03 20:09:29 +04:00
Dmitry Degtyarev
d8512a4fd3 move out filter out of releasemanager
create ReleaseFilterModel
use Architecture::Unknown instead of nullptr
add Architecture::All
2020-11-03 18:54:58 +04:00
Dmitry Degtyarev
e794a19846 delete info.plist, only used on mac 2020-11-03 17:25:20 +04:00
Dmitry Degtyarev
a791aec9db name the data role "release" for access in qml
fixes null errors in delegate
2020-11-03 17:15:20 +04:00
Dmitry Degtyarev
98c59070c6 restore name filter
select custom release when arch filter changes
2020-11-03 16:57:40 +04:00
Dmitry Degtyarev
0b6f89afda clean up translations dir
leave only ru ts and qm files
2020-11-03 16:36:51 +04:00
Dmitry Degtyarev
acf6340e76 update translation 2020-11-03 16:32:06 +04:00
Dmitry Degtyarev
e18f084bde check for null item in ReleaseManager::get() 2020-11-03 16:17:30 +04:00
Dmitry Degtyarev
88723310d1 replace ReleaseListModel with QStandardItemModel
use releases.get() instead of release in DelegateImage
register qml types in main.cpp
2020-11-03 15:12:30 +04:00
Dmitry Degtyarev
add2a09801 remove loading builtin metadata if failed to dl
move local f-ns to bottom of file
2020-11-03 14:37:24 +04:00
Dmitry Degtyarev
3810c9e0ba rename archPopover to otherVariantsPopover 2020-11-03 14:30:59 +04:00
Dmitry Degtyarev
2f08ee5aba save metadata urls in assets text files
load them from there
remove unneeded assets
update UPDATING.md
update assets.qrc

add missing file_type source
2020-11-03 14:15:47 +04:00
Dmitry Degtyarev
6315c61907 rename ImageType to FileType
make setDelayedWrite an invokable
2020-11-03 13:50:50 +04:00
Dmitry Degtyarev
82f73a8cdc rename Variant::image to Variant::file
DriveManager::image to DriveManager::variant
data vars in DriveManager to variant
2020-11-03 13:44:06 +04:00
Dmitry Degtyarev
debf878784 rename to Release::addVariant()
create variant in ReleaseManager::loadVariants()
2020-11-03 13:31:45 +04:00
Dmitry Degtyarev
d81f94237b remove frontPage download notification
\ because can't open frontpage unless downloaded metadata
rename beingUpdated to downloadingMetadata
2020-11-03 13:19:23 +04:00
Dmitry Degtyarev
dc573e264b disable and hide footer while downloading metadata
fade it in when downloaded
2020-11-03 13:13:34 +04:00
Dmitry Degtyarev
14ff5b9328 don't load built-in releases
before metadata is downloaded, just show custom release
move custom release to first position
once metadata is downloaded, load it
fix server-v variants replacing server variants
\ happened because was checking if release name contains variant name
\ now check for equality
2020-11-03 13:01:51 +04:00
Dmitry Degtyarev
7666d90dba use remove uses of releases.variant
access variant through releases.selected.variant
removed variantChanged() signal juggling
make parents of release and variant generic QObject's
pass release name to variant through ctor, not through release reference
add Variant::custom()
2020-11-03 12:27:55 +04:00
Dmitry Degtyarev
00b0658ca2 implement LIVE variant type
clean up custom release/variant logic
2020-11-02 18:40:37 +04:00
Dmitry Degtyarev
f6275fbadd check for null yml node in yml_get()
rename ymlToQString() to yml_get()
2020-11-02 17:50:58 +04:00
Dmitry Degtyarev
541ba9153a make naming consistent 2020-11-02 17:44:43 +04:00
Dmitry Degtyarev
b1dd534392 make separate source for Release 2020-11-02 17:30:14 +04:00
Dmitry Degtyarev
ea2ffdf5a8 rename rootfs msg
rename supportedForWriting to canWrite
2020-11-02 16:49:48 +04:00
Dmitry Degtyarev
b92267989a fix null variant qml errors
select a valid release/variant during loading
2020-11-02 16:30:03 +04:00
Dmitry Degtyarev
9e6d2805e3 download sections metadata too
download it together with images metadata
remove caching of metadata
remake release data completely when new metadata is downloaded
\ to avoid merging built-in and download versions
\ otherwise can have merge issues when the two versions diverge
2020-11-02 16:03:20 +04:00
Dmitry Degtyarev
26a00226c9 remove ReleaseVersion
move variants list up into Release
2020-11-02 13:44:10 +04:00
Dmitry Degtyarev
9ba47d938a remove custom message output
can do it through qt environment vars
add notes about debugging
remove args parser
remove isomd5 link
2020-11-02 12:48:54 +04:00
Dmitry Degtyarev
58537b5394 fix compilation on linux
undo QmlListProperty ctor upgrade, needs Qt 5.15
2020-11-02 12:22:08 +04:00
Dmitry Degtyarev
7f93ca1743 fix arch and image type not getting into qml
Q_PROPERTY() variable can't be const
2020-11-01 21:58:09 +04:00
Dmitry Degtyarev
9a1f943c9c create variant.cpp 2020-11-01 21:45:01 +04:00
Dmitry Degtyarev
4b4ee81b9a create architecture.cpp 2020-11-01 21:32:15 +04:00
Dmitry Degtyarev
f053bafba2 fix arch being read incorrectly 2020-11-01 21:26:10 +04:00
Dmitry Degtyarev
d8161409ee add missing files 2020-11-01 21:19:04 +04:00
Dmitry Degtyarev
8d4aa21a99 inline ReleaseManager::updateUrl()
increase constness
2020-11-01 21:18:56 +04:00
Dmitry Degtyarev
37a0ee2ba9 make separate source for image type
rename to image type
2020-11-01 20:57:48 +04:00
Dmitry Degtyarev
b4f25d06a0 remove mac stuff
\ mac is completely unsupported
2020-11-01 20:45:40 +04:00
Dmitry Degtyarev
3f1563fbb4 fix null progress for custom variant 2020-11-01 20:38:59 +04:00