Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/viewers/ViewerBase.qml
Show All 16 Lines | |||||
17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public | ||
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | import QtQuick 2.1 | 22 | import QtQuick 2.1 | ||
23 | import QtQuick.Layouts 1.1 | 23 | import QtQuick.Layouts 1.1 | ||
24 | import QtQuick.Controls 1.0 | 24 | import QtQuick.Controls 1.0 | ||
25 | 25 | /** | |||
26 | * @brief a base for holding the image browser. | ||||
27 | * | ||||
28 | * It keeps track of the comic data and deals with all sorts | ||||
29 | * of side functions like keeping track of the current page, | ||||
30 | * right to left mode and the controls. | ||||
31 | * | ||||
32 | * This is slightly different between filetypes. | ||||
33 | */ | ||||
26 | Item { | 34 | Item { | ||
27 | id: root; | 35 | id: root; | ||
28 | signal goNextPage(); | 36 | signal goNextPage(); | ||
29 | signal goPreviousPage(); | 37 | signal goPreviousPage(); | ||
30 | // Fired when the viewer has completed loading the file. | 38 | // Fired when the viewer has completed loading the file. | ||
31 | // Success is true if this was successful, and false otherwise. | 39 | // Success is true if this was successful, and false otherwise. | ||
32 | signal loadingCompleted(bool success); | 40 | signal loadingCompleted(bool success); | ||
33 | property string file; | 41 | property string file; | ||
Show All 33 Lines |