Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QT download progress (default on Win32)
* Updated tcx2web.exe in place of tcx2garmin * Removed unnecessary antd code dependency on dbm
- Loading branch information
Showing
9 changed files
with
181 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/make -f | ||
|
||
SUBDIRS = core | ||
|
||
all: $(SUBDIRS) | ||
#doc | ||
|
||
$(SUBDIRS): | ||
$(MAKE) -C $@ | ||
|
||
apidoc: | ||
sphinx-apidoc --force -o doc/source . | ||
|
||
#export PYTHONPATH:= "${OSGEO4W_ROOT}/apps/qgis/python;${OSGEO4W_ROOT}/apps/qgis/python/plugins;${HOME}/.qgis/python/plugins;${OSGEO4W_ROOT}/apps/python27/lib/site-packages" | ||
#export PATH:= "${PATH}:${OSGEO4W_ROOT}/bin:${OSGEO4W_ROOT}/bin:${OSGEO4W_ROOT}/apps/qgis/bin:${OSGEO4W_ROOT}/apps/qgis/plugins:${OSGEO4W_ROOT}/apps/Python27/Scripts" | ||
|
||
doc: apidoc | ||
$(MAKE) -C doc html | ||
# cd doc && cmd \\/c make.bat html | ||
|
||
# @PATH=${PATH} echo %PATH% | ||
# @PATH=${PATH} $(MAKE) -C doc html | ||
|
||
zip: | ||
7z a -r -x!.ropeproject -x!doc schwinn810.zip ".\*.py" | ||
|
||
.PHONY: subdirs $(SUBDIRS) apidoc doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/make -f | ||
|
||
include ../top.make | ||
|
||
all: ui_progress.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>Dialog</class> | ||
<widget class="QDialog" name="Dialog"> | ||
<property name="windowModality"> | ||
<enum>Qt::NonModal</enum> | ||
</property> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>230</width> | ||
<height>108</height> | ||
</rect> | ||
</property> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Download</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<layout class="QHBoxLayout" name="pointlLayout"> | ||
<item> | ||
<widget class="QLabel" name="pointLabel"> | ||
<property name="text"> | ||
<string>Point</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="pointCountLabel"> | ||
<property name="text"> | ||
<string/> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<widget class="QProgressBar" name="pointBar"> | ||
<property name="value"> | ||
<number>0</number> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="tracklLayout"> | ||
<item> | ||
<widget class="QLabel" name="trackLabel"> | ||
<property name="text"> | ||
<string>Track</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="trackCountLabel"> | ||
<property name="text"> | ||
<string/> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<widget class="QProgressBar" name="trackBar"> | ||
<property name="value"> | ||
<number>0</number> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
<zorder>pointBar</zorder> | ||
<zorder>horizontalLayoutWidget</zorder> | ||
<zorder>trackBar</zorder> | ||
<zorder>horizontalLayoutWidget_2</zorder> | ||
<zorder>trackCountLabel</zorder> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
""" Simple QT progress indicator """ | ||
|
||
from PyQt4.QtGui import QDialog, QMessageBox | ||
from PyQt4.QtCore import Qt | ||
from ui_progress import Ui_Dialog | ||
|
||
# Shall we use QProgressDialog instead? | ||
|
||
class QtProgress(QDialog): | ||
|
||
def __init__(self): | ||
super(QtProgress, self).__init__() | ||
self.ui = Ui_Dialog() | ||
self.ui.setupUi(self) | ||
|
||
self.show() | ||
self._update() | ||
|
||
def _update(self): | ||
pass | ||
# while Gtk.events_pending(): Gtk.main_iteration() | ||
|
||
def track(self, name, at, end, points): | ||
self.ui.trackBar.setMaximum(end) | ||
self.ui.trackBar.setValue(at-1) | ||
self.ui.trackCountLabel.setText("{:d}/{:d}".format(at, end)) | ||
self._update() | ||
|
||
def point(self, at, end): | ||
if at % 100 == 0: | ||
self.ui.pointBar.setMaximum(end) | ||
self.ui.pointBar.setValue(at-1) | ||
self.ui.pointCountLabel.setText("{:d}/{:d}".format(at, end)) | ||
self._update() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# handy stuff | ||
|
||
ui_%.py : %.ui | ||
python -m PyQt4.uic.pyuic -x -o $@ $^ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,6 @@ | |
|
||
|
||
import logging | ||
import dbm | ||
import os | ||
|
||
_log = logging.getLogger("antd.plugin") | ||
|