Commit d4310004 authored by Loong Jin Chow's avatar Loong Jin Chow

Imported Upstream version 13.05.3

parents
project = qreator
version = 12.08.1
template = ubuntu-application
lp_id = qreator
dependencies = software-center
ppa = qreator-stable
Copyright (C) 2012 David Planella <david.planella@ubuntu.com>
This diff is collapsed.
Metadata-Version: 1.1
Name: qreator
Version: 13.05.3
Summary: Create your own QR codes
Home-page: https://launchpad.net/qreator
Author: David Planella
Author-email: david.planella@ubuntu.com
License: GPL-3
Description: Qreator enables you to easily create your own QR codes to encode different types of information in an efficient, compact and cool way.
Platform: UNKNOWN
Requires: Image
Requires: ImageOps
Requires: cairo
Requires: dbus
Requires: defer
Requires: gi.repository.Champlain
Requires: gi.repository.Clutter
Requires: gi.repository.GLib
Requires: gi.repository.GObject
Requires: gi.repository.Gdk
Requires: gi.repository.GdkPixbuf
Requires: gi.repository.Gio
Requires: gi.repository.Gtk
Requires: gi.repository.GtkChamplain
Requires: gi.repository.GtkClutter
Requires: gi.repository.NMClient
Requires: gi.repository.NetworkManager
Requires: qrencode
Requires: requests
Requires: softwarecenter.db.database
Requires: vobject
Requires: xdg
Provides: qreator
Provides: qreator_lib
#!/usr/bin/python
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# Copyright (C) 2012 David Planella <david.planella@ubuntu.com>
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
### END LICENSE
### DO NOT EDIT THIS FILE ###
import sys
import os
import locale
locale.textdomain('qreator')
# Add project root directory (enable symlink and trunk execution)
PROJECT_ROOT_DIRECTORY = os.path.abspath(
os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0]))))
python_path = []
if os.path.abspath(__file__).startswith('/opt'):
locale.bindtextdomain('qreator', '/opt/extras.ubuntu.com/qreator/share/locale')
syspath = sys.path[:] # copy to avoid infinite loop in pending objects
for path in syspath:
opt_path = path.replace('/usr', '/opt/extras.ubuntu.com/qreator')
python_path.insert(0, opt_path)
sys.path.insert(0, opt_path)
os.putenv("XDG_DATA_DIRS", "%s:%s" % ("/opt/extras.ubuntu.com/qreator/share/", os.getenv("XDG_DATA_DIRS", "/usr/local/share/:/usr/share/")))
if (os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'qreator'))
and PROJECT_ROOT_DIRECTORY not in sys.path):
python_path.insert(0, PROJECT_ROOT_DIRECTORY)
sys.path.insert(0, PROJECT_ROOT_DIRECTORY)
if python_path:
os.putenv('PYTHONPATH', "%s:%s" % (os.getenv('PYTHONPATH', ''), ':'.join(python_path))) # for subprocesses
import qreator
qreator.main()
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="qreator">
<schema id="net.launchpad.qreator" path="/net/launchpad/qreator/">
<key name="example" type="s">
<default>''</default>
<summary>Sample setting</summary>
<description>Longer description of this sample setting. Talk about allowed values and what it does.</description>
</key>
</schema>
</schemalist>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg2"
version="1.1"
inkscape:version="0.48.3.1 r9886"
width="64"
height="64"
sodipodi:docname="sms.svg"
inkscape:export-filename="/home/schwarz/Projects/Qreator/qreator_sms/data/media/sms.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<metadata
id="metadata8">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1301"
inkscape:window-height="744"
id="namedview4"
showgrid="false"
inkscape:zoom="2.6074563"
inkscape:cx="-58.933414"
inkscape:cy="17.187981"
inkscape:window-x="65"
inkscape:window-y="24"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<path
sodipodi:type="arc"
style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:1.99249995000000002;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
id="path3926"
sodipodi:cx="-152.44742"
sodipodi:cy="7.8149738"
sodipodi:rx="20.518082"
sodipodi:ry="17.066441"
d="m -131.92934,7.8149738 a 20.518082,17.066441 0 1 1 -41.03616,0 20.518082,17.066441 0 1 1 41.03616,0 z"
transform="matrix(1.4807658,0,0,1.7802466,257.73892,18.08742)" />
<path
style="fill:#dd4814;fill-opacity:1;stroke:none"
d="M 32,4e-8 C 20.68115,4e-8 10.75154,5.8813601 5.0624999,14.75 l 21.9687501,0 c 0.90143,0 1.625,0.623814 1.625,1.375 l 0,42.03125 c 0,0.751186 -0.72357,1.34375 -1.625,1.34375 L 15.625,59.5 C 20.41587,62.359411 26.01528,64 32,64 49.673109,64 64,49.67311 64,32 64,14.326887 49.673109,4e-8 32,4e-8 z M 1.8124998,21.375 C 0.64061985,24.702084 -1.5e-7,28.272078 -1.5e-7,32 c 0,3.725289 0.6422,7.29991 1.81249995,10.625 l 0,-21.25 z"
id="path2987"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
style="fill:#dd4814;fill-opacity:1;stroke:none"
d="m 5.66702,18.440675 18.98305,0 c 0.90143,0 1.62712,0.78743 1.62712,1.765537 l 0,30.367235 c 0,0.978107 -0.72569,1.765536 -1.62712,1.765536 l -18.98305,0 c -0.90142,0 -1.62712,-0.787429 -1.62712,-1.765536 l 0,-30.367235 c 0,-0.978107 0.7257,-1.765537 1.62712,-1.765537 z"
id="rect3759" />
<path
inkscape:connector-curvature="0"
style="fill:#dd4814;fill-opacity:1;stroke:none"
d="m 21.53142,16.677966 c 0,0.299544 -2.85324,0.542373 -6.37288,0.542373 -3.51965,0 -6.37288,-0.242829 -6.37288,-0.542373 0,-0.299544 2.85323,-0.542373 6.37288,-0.542373 3.51964,0 6.37288,0.242829 6.37288,0.542373 z"
id="path3761-2" />
<path
inkscape:connector-curvature="0"
style="fill:#dd4814;fill-opacity:1;stroke:none"
d="m 13.80261,53.152542 2.71187,0 c 0.90142,0 1.62712,0.787429 1.62712,1.765536 l 0,1.62147 c 0,0.978107 -0.7257,1.765536 -1.62712,1.765536 l -2.71187,0 c -0.90142,0 -1.62712,-0.787429 -1.62712,-1.765536 l 0,-1.62147 c 0,-0.978107 0.7257,-1.765536 1.62712,-1.765536 z"
id="rect3781" />
<path
style="fill:#ffffff;fill-opacity:1;stroke:none"
d="m 20.677967,21.864405 32.271187,0 0,20.338983 -32.271187,0 z"
id="rect3795"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#dd4814;stroke-width:1.99249995;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="m 20.737831,21.924265 16.71,11.066721 15.37367,-11.003611"
id="path3797"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccc" />
<path
style="fill:none;stroke:#dd4814;stroke-width:1.99249995;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="M 20.671149,42.142414 33.430555,31.077924"
id="path3799"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#dd4814;stroke-width:1.99249995;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="M 52.606159,41.860391 40.953172,30.817574"
id="path3801"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#ffffff;stroke-width:1px;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
d="m 28.077497,9.009053 c 0,0 2.368569,-0.579447 5.033641,1.965518 2.665072,2.544964 1.965517,5.417157 1.965517,5.417157"
id="path3803"
inkscape:connector-curvature="0"
sodipodi:nodetypes="czc" />
<path
style="fill:none;stroke:#ffffff;stroke-width:1.65370095px;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
d="m 29.561382,3.508059 c 0,0 3.785323,-0.9915414 8.044504,3.3633638 4.259179,4.3549052 3.141186,9.2697582 3.141186,9.2697582"
id="path3803-7"
inkscape:connector-curvature="0"
sodipodi:nodetypes="czc" />
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkGrid" id="qr_code_location">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkExpander" id="expander1">
<property name="can_focus">True</property>
<property name="margin_top">6</property>
<property name="margin_bottom">6</property>
<property name="hexpand">True</property>
<child>
<object class="GtkGrid" id="grid4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_top">6</property>
<property name="margin_bottom">6</property>
<child>
<object class="GtkEntry" id="lat_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="margin_top">6</property>
<property name="margin_bottom">3</property>
<property name="hexpand">True</property>
<property name="editable">False</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="lon_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="margin_top">3</property>
<property name="margin_bottom">6</property>
<property name="hexpand">True</property>
<property name="editable">False</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label15">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_right">6</property>
<property name="margin_top">6</property>
<property name="margin_bottom">3</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Latitude:</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label16">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_right">6</property>
<property name="margin_top">3</property>
<property name="margin_bottom">6</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Longitude:</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label14">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Location details</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
</interface>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkGrid" id="qr_code_sms">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_bottom">3</property>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_right">6</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Phone:</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="entryNumber">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="margin_top">3</property>
<property name="margin_bottom">6</property>
<property name="hexpand">True</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
<property name="placeholder_text">[Phone number in international format, e.g. +15552106]</property>
<property name="input_purpose">phone</property>
<signal name="changed" handler="on_entryNumber_changed" swapped="no"/>
<signal name="icon-press" handler="on_entryNumber_icon_press" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkComboBoxText" id="comboboxType">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_top">3</property>
<property name="margin_bottom">3</property>
<property name="entry_text_column">0</property>
<property name="id_column">1</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_right">6</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Type: </property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="labelMessage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_right">6</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Message: </property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow2">
<property name="height_request">100</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTextView" id="textviewMessage">
<property name="height_request">50</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="wrap_mode">word</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</interface>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkGrid" id="qr_code_softwarecenterapp">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkLabel" id="labelApp">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="margin_right">6</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Ubuntu Software Center app:</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</interface>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkGrid" id="qr_code_text">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow2">
<property name="height_request">100</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="shadow_type">in</property>
<child>
<object class="GtkTextView" id="entryText">
<property name="height_request">100</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="wrap_mode">word</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</interface>
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkAction" id="action1">
<property name="label" translatable="yes">Shorten</property>
</object>
<object class="GtkMessageDialog" id="messagedialog1">
<property name="can_focus">False</property>
<property name="border_width">5</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<property name="buttons">ok</property>
<signal name="close" handler="on_messagedialog1_response" swapped="no"/>
<signal name="response" handler="on_messagedialog1_response" swapped="no"/>
<child internal-child="vbox">
<object class="GtkBox" id="messagedialog-vbox">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="messagedialog-action_area">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
</object>
</child>
</object>
<object class="GtkGrid" id="qr_code_url">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkComboBoxText" id="comboboxtextProtocol">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_right">6</property>
<property name="active">0</property>
<property name="entry_text_column">0</property>
<property name="id_column">1</property>
<items>
<item>http://</item>
<item>https://</item>
</items>
<signal name="changed" handler="on_comboboxtextProtocol_changed" swapped="no"/>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkToggleButton" id="togglebuttonShorten">
<property name="label" translatable="yes" comments="TRANSLATORS: this refers to the button to shorten a URL for the URL QR code type">Shorten</property>
<property name="use_action_appearance">False</property>
<property name="related_action">action1</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<signal name="toggled" handler="on_togglebuttonShorten_toggled" swapped="no"/>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="entryURL">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="margin_top">3</property>
<property name="margin_bottom">3</property>
<property name="hexpand">True</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
<property name="placeholder_text">[URL]</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</interface>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkGrid" id="qr_code_wifi">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkComboBoxText" id="comboboxtextSecurity">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_bottom">3</property>
<property name="active">0</property>
<property name="entry_text_column">0</property>
<property name="id_column">1</property>
<items>
<item>WPA</item>
<item>WEP</item>
</items>
<signal name="changed" handler="on_comboboxtextSecurity_changed" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_right">6</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Security:</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label3">