Skip to content

Commit

Permalink
correct the path to all the packages moved to the widget folder
Browse files Browse the repository at this point in the history
  • Loading branch information
heldersepu committed Sep 26, 2012
1 parent 7a6d81b commit b020786
Show file tree
Hide file tree
Showing 30 changed files with 61 additions and 68 deletions.
5 changes: 0 additions & 5 deletions gmapcatcher/changeableConst.py

This file was deleted.

2 changes: 1 addition & 1 deletion gmapcatcher/mapConst.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
## @package gmapcatcher.mapConst
# Place to keep all constants

# from changeableConst import STRICT_LEGAL
import os

NAME = "GMapCatcher"
Expand Down Expand Up @@ -142,3 +141,4 @@
ENTRY_SUB_MENU = ['Starts With...', 'Ends With...',
'Contains...', 'Regular Expression...']

STRICT_LEGAL = False
2 changes: 1 addition & 1 deletion gmapcatcher/mapGPS.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
except:
available = False
import mapConst
import mapPixbuf
import widgets.mapPixbuf as mapPixbuf
from threading import Event, Thread
import time
import mapUtils
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/mapMark.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import os
import fileUtils
import mapPixbuf
import widgets.mapPixbuf as mapPixbuf
from mapConst import *


Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/mapUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from mapConst import *
import gtk
from customMsgBox import updateMsgBox
from widgets.customMsgBox import updateMsgBox
import openanything
from threading import Timer

Expand Down
4 changes: 2 additions & 2 deletions gmapcatcher/mapUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
## @package gmapcatcher.mapUtils
# A group of map utilities

import re
import math
from mapConst import *
from customWidgets import FileChooser, FileSaveChooser
from widgets.customWidgets import FileChooser, FileSaveChooser
from time import gmtime, strftime
from htmlentitydefs import name2codepoint
import re
from gmapcatcher import gpxpy


Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/tilesRepo/tilesRepoFS.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import os
import gmapcatcher.lrucache as lrucache
import gmapcatcher.mapPixbuf as mapPixbuf
import gmapcatcher.fileUtils as fileUtils
import gmapcatcher.widgets.mapPixbuf as mapPixbuf

from threading import Lock
from gmapcatcher.mapConst import *
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/tilesRepo/tilesRepoMGMaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import os
import gmapcatcher.lrucache as lrucache
import gmapcatcher.mapPixbuf as mapPixbuf
import gmapcatcher.fileUtils as fileUtils
import gmapcatcher.widgets.mapPixbuf as mapPixbuf

from threading import Lock
from gmapcatcher.mapConst import *
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/tilesRepo/tilesRepoOSM.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import os
import gmapcatcher.lrucache as lrucache
import gmapcatcher.mapPixbuf as mapPixbuf
import gmapcatcher.fileUtils as fileUtils
import gmapcatcher.widgets.mapPixbuf as mapPixbuf

from threading import Lock
from gmapcatcher.mapConst import *
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/tilesRepo/tilesRepoRMaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import traceback

import gmapcatcher.lrucache as lrucache
import gmapcatcher.mapPixbuf as mapPixbuf
import gmapcatcher.widgets.mapPixbuf as mapPixbuf
from threading import Lock, Thread
from gmapcatcher.mapConst import *

Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/tilesRepo/tilesRepoSQLite3.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import traceback

import gmapcatcher.lrucache as lrucache
import gmapcatcher.mapPixbuf as mapPixbuf
import gmapcatcher.widgets.mapPixbuf as mapPixbuf
from threading import Lock, Thread
from gmapcatcher.mapConst import *

Expand Down
14 changes: 7 additions & 7 deletions gmapcatcher/widgets/DLWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
pygtk.require('2.0')
import gtk

from mapConst import *
from mapArgs import MapArgs
from fileUtils import check_dir
from mapDownloader import MapDownloader
from gmapcatcher.mapConst import *
from gmapcatcher.mapArgs import MapArgs
from gmapcatcher.fileUtils import check_dir
from gmapcatcher.mapDownloader import MapDownloader
from customWidgets import lbl, myEntry, myFrame, SpinBtn

import mapPixbuf
import mapUtils
import mapServices
from gtkThread import gui_callback
import gmapcatcher.mapUtils as mapUtils
import gmapcatcher.mapServices as mapServices
from gmapcatcher.gtkThread import gui_callback
from os.path import join, isdir


Expand Down
10 changes: 4 additions & 6 deletions gmapcatcher/widgets/EXWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
pygtk.require('2.0')
import gtk

from mapConst import *
from gmapcatcher.mapConst import *
from customWidgets import lbl, myEntry, myFrame, SpinBtn, FolderChooser

import tilesRepo.Factory as trFactory
import mapTilesTransfer

import gmapcatcher.tilesRepo.Factory as trFactory
import gmapcatcher.mapTilesTransfer as mapTilesTransfer
import gmapcatcher.mapUtils as mapUtils
import mapPixbuf
import mapUtils
# from gtkThread import gui_callback


class EXWindow(gtk.Window):
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/widgets/customWidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import gtk
import gobject
import mapPixbuf
from mapConst import *
from gmapcatcher.mapConst import *
from inputValidation import allow_only_numbers

import warnings
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/widgets/gpsWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from gobject import timeout_add_seconds
from pango import FontDescription
from mapConst import MODE_NO_FIX
from gmapcatcher.mapConst import MODE_NO_FIX


class gpsWindow(gtk.Window):
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/widgets/inputValidation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## @package gmapcatcher.inputValidation
## @package gmapcatcher.widgets.inputValidation
# Validation of all the user input.


Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/widgets/mapHideMapServers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pygtk
pygtk.require('2.0')
import gtk
from mapConst import *
from gmapcatcher.mapConst import *
from widMapServers import WidMapServers


Expand Down
6 changes: 3 additions & 3 deletions gmapcatcher/widgets/mapPixbuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
# Get the Pixbuf from image files.

import gtk
from mapConst import *
from gmapcatcher.mapConst import *
from os.path import join, dirname, abspath, exists, isfile


## Absolute Path to the images directory
if 'library.zip' in __file__:
_prefix = abspath(join(dirname(__file__), "../../images"))
_prefix = abspath(join(dirname(__file__), "../../../images"))
else:
_prefix = abspath(join(dirname(__file__), "../images"))
_prefix = abspath(join(dirname(__file__), "../../images"))

if not isfile(join(_prefix, 'missing.png')):
_prefix = '/usr/share/pixmaps/gmapcatcher'
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/widgets/mapTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import widMySettings
import widChangeTheme
import widMyGPS
from mapConst import *
from gmapcatcher.mapConst import *


class MapTools():
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/widgets/trackWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import gtk

from customMsgBox import error_msg_non_blocking
from mapUtils import openGPX, saveGPX
from gmapcatcher.mapUtils import openGPX, saveGPX


class trackWindow(gtk.Window):
Expand Down
4 changes: 2 additions & 2 deletions gmapcatcher/widgets/widChangeTheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# Displayed inside a tab in MapTools.

import gtk
import fileUtils
import mapHideMapServers
from mapConst import *
import gmapcatcher.fileUtils as fileUtils
from gmapcatcher.mapConst import *
from customWidgets import myFrame, lbl


Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/widgets/widComboBoxEntry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ComboBoxEntry widget used to collect data to search

import gtk
from mapConst import *
from gmapcatcher.mapConst import *


## This widget is where we collect data to search
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/widgets/widComboBoxLayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ComboBoxLayer widget used to collect data to search

import gtk
from mapConst import *
from gmapcatcher.mapConst import *
from gobject import TYPE_STRING, TYPE_INT


Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/widgets/widCredits.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# AboutDialog widget used to show credits

import gtk
from mapConst import *
from gmapcatcher.mapConst import *


class OurCredits(gtk.AboutDialog):
Expand Down
4 changes: 2 additions & 2 deletions gmapcatcher/widgets/widDrawingArea.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import gtk
import pango
import math
import mapUtils
from mapConst import *
import gmapcatcher.mapUtils as mapUtils
from gmapcatcher.mapConst import *
from threading import Timer

ternary = lambda a, b, c: (b, c)[not a]
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/widgets/widMapServers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Displayed inside MapHideMapServers.

import gtk
from mapConst import *
from gmapcatcher.mapConst import *


## This widget allows the user to modify visible map services
Expand Down
4 changes: 2 additions & 2 deletions gmapcatcher/widgets/widMyGPS.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# Displayed inside a tab in MapTools.

import gtk
from mapConst import *
from gmapcatcher.mapConst import *
from gmapcatcher.serialGPS import serialPortScan, BAUDRATES
from customWidgets import myEntry, SpinBtn, myFrame, lbl
from serialGPS import serialPortScan, BAUDRATES


## This widget lets the user change GPS settings
Expand Down
2 changes: 1 addition & 1 deletion gmapcatcher/widgets/widMySettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import os
import gtk
from mapConst import *
from gmapcatcher.mapConst import *
from customWidgets import SpinBtn, myFrame, lbl, FolderChooser


Expand Down
4 changes: 2 additions & 2 deletions gmapcatcher/widgets/widTreeView.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# Displayed inside a tab in MapTools.

import gtk
import fileUtils
from mapConst import *
import gmapcatcher.fileUtils as fileUtils
from gmapcatcher.mapConst import *


## This widget allows the user to modify the locations and markers
Expand Down
34 changes: 17 additions & 17 deletions maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@
# This is the Main Window

import os
import gmapcatcher.mapGPS as mapGPS
import gmapcatcher.mapUtils as mapUtils
import gmapcatcher.mapTools as mapTools
import gmapcatcher.mapPixbuf as mapPixbuf
import signal
import gobject
import sys
import re
import sys
import time
import signal
import gobject
import gmapcatcher.mapGPS as mapGPS
import gmapcatcher.mapUtils as mapUtils
import gmapcatcher.widgets.mapTools as mapTools
import gmapcatcher.widgets.mapPixbuf as mapPixbuf

from gmapcatcher.mapConst import *
from gmapcatcher.gtkThread import gui_callback
from gmapcatcher.mapConf import MapConf
from gmapcatcher.mapMark import MyMarkers
from gmapcatcher.DLWindow import DLWindow
from gmapcatcher.EXWindow import EXWindow
from gmapcatcher.gpsWindow import gpsWindow
from gmapcatcher.trackWindow import trackWindow
from gmapcatcher.mapUpdate import CheckForUpdates
from gmapcatcher.mapServices import MapServ
from gmapcatcher.customMsgBox import user_confirm, error_msg, error_msg_non_blocking
from gmapcatcher.mapDownloader import MapDownloader
from gmapcatcher.customWidgets import gtk, gtk_menu, myToolTip, myFrame, lbl, legal_warning, ProgressBar, SpinBtn
from gmapcatcher.xmlUtils import kml_to_markers
from gmapcatcher.widDrawingArea import DrawingArea
from gmapcatcher.widComboBoxLayer import ComboBoxLayer
from gmapcatcher.widComboBoxEntry import ComboBoxEntry
from gmapcatcher.widCredits import OurCredits
from gmapcatcher.widgets.DLWindow import DLWindow
from gmapcatcher.widgets.EXWindow import EXWindow
from gmapcatcher.widgets.gpsWindow import gpsWindow
from gmapcatcher.widgets.trackWindow import trackWindow
from gmapcatcher.widgets.customMsgBox import user_confirm, error_msg, error_msg_non_blocking
from gmapcatcher.widgets.customWidgets import gtk, gtk_menu, myToolTip, myFrame, lbl, legal_warning, ProgressBar, SpinBtn
from gmapcatcher.widgets.widDrawingArea import DrawingArea
from gmapcatcher.widgets.widComboBoxLayer import ComboBoxLayer
from gmapcatcher.widgets.widComboBoxEntry import ComboBoxEntry
from gmapcatcher.widgets.widCredits import OurCredits


class MainWindow(gtk.Window):
Expand Down

0 comments on commit b020786

Please sign in to comment.