• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • active
  • app
  • package
  • contents
  • ui
main.qml
Go to the documentation of this file.
1 /*
2  * Copyright 2012 Marco Martin <mart@kde.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2,
7  * or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details
13  *
14  * You should have received a copy of the GNU General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 import QtQuick 1.1
21 import org.kde.okular 0.1 as Okular
22 import org.kde.plasma.extras 0.1 as PlasmaExtras
23 import org.kde.plasma.components 0.1 as PlasmaComponents
24 
25 Image {
26  id: fileBrowserRoot
27  objectName: "fileBrowserRoot"
28  source: "image://appbackgrounds/contextarea"
29  fillMode: Image.Tile
30 
31  width: 360
32  height: 360
33 
34  PlasmaExtras.ResourceInstance {
35  id: resourceInstance
36  uri: documentItem.path
37  }
38 
39  Okular.DocumentItem {
40  id: documentItem
41  onWindowTitleForDocumentChanged: {
42  application.caption = windowTitleForDocument
43  }
44  }
45 
46  PlasmaComponents.PageStack {
47  id: mainStack
48  clip: false
49  anchors.fill: parent
50  }
51 
52  //FIXME: this is due to global vars being binded after the parse is done, do the 2 steps parsing
53  Timer {
54  interval: 100
55  running: true
56  onTriggered: {
57  if (application.startupArguments.length > 0) {
58  documentItem.path = application.startupArguments[0]
59  }
60 
61  mainStack.push(Qt.createComponent("Browser.qml"))
62  }
63  }
64 }
Image
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal