From 3b38e5f92496cb932d14c9a4492292b057d2f431 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 17 May 2013 11:53:22 -0500 Subject: Implemented LWJGL version lists. The LWJGL list actually doesn't use tasks for loading. Instead, it takes advantage of the QNetworkAccessManager's asynchronous requests. This is a system that I may look to implement for other version lists and things such as the Minecraft version list and possibly even instance mod lists. Loading things this way means that code that wants to load a list can simply call the load list function, rather than having to get a task from the list and execute the task. Unfortunately, it also means we can't have task progress dialogs for loading lists, but it shouldn't really be too difficult to write one that works with this system. At some point in the future, I'll probably end up putting all the code for this method of loading lists into a base class and then update the other lists to support it. --- gui/lwjglselectdialog.ui | 85 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 gui/lwjglselectdialog.ui (limited to 'gui/lwjglselectdialog.ui') diff --git a/gui/lwjglselectdialog.ui b/gui/lwjglselectdialog.ui new file mode 100644 index 00000000..c715cc07 --- /dev/null +++ b/gui/lwjglselectdialog.ui @@ -0,0 +1,85 @@ + + + LWJGLSelectDialog + + + + 0 + 0 + 400 + 300 + + + + Dialog + + + + + + Status label... + + + + + + + + + + + + &Refresh + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + + + buttonBox + accepted() + LWJGLSelectDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + LWJGLSelectDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + -- cgit v1.2.3