Skip to content

Commit

Permalink
Rolled back changes to state before the reorganization of the
Browse files Browse the repository at this point in the history
widgets subdirectory (revision 4487). The reorganization created
an unresolvable circular dependency.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4489 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jan 7, 2006
1 parent a0b01f4 commit b961eb7
Show file tree
Hide file tree
Showing 17 changed files with 1,125 additions and 22 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Expand Up @@ -31,11 +31,11 @@ docdatadir = $(datadir)/$(PACKAGE)/doc
docdata_DATA = AUTHORS

if HAVE_QT3
SUBDIRS = src providers plugins doc tools i18n designer_plugins helpviewer
SUBDIRS = src widgets providers plugins doc tools i18n designer_plugins helpviewer
endif

if HAVE_QT4
SUBDIRS = src providers plugins doc tools i18n helpviewer
SUBDIRS = src widgets providers plugins doc tools i18n helpviewer
endif

pkginclude_HEADERS = qgsconfig.h
Expand Down
4 changes: 2 additions & 2 deletions configure.in
Expand Up @@ -457,8 +457,6 @@ AC_CONFIG_FILES([
src/mac/Makefile
src/mac/Contents/Makefile
src/mac/Contents/Resources/Makefile
src/widgets/Makefile
src/widgets/projectionselector/Makefile
providers/Makefile
providers/ogr/Makefile
providers/postgres/Makefile
Expand Down Expand Up @@ -492,6 +490,8 @@ AC_CONFIG_FILES([
tools/Makefile
tools/qgis_config/Makefile
tools/mapserver_export/Makefile
widgets/Makefile
widgets/projectionselector/Makefile
designer_plugins/Makefile
i18n/Makefile
helpviewer/Makefile
Expand Down
2 changes: 1 addition & 1 deletion designer_plugins/Makefile.am
Expand Up @@ -31,7 +31,7 @@ qgisdesignerwidgets_la_SOURCES = qgsprojectionselectorplugin.cpp\
BUILT_SOURCES = $(plugin_MOC)

#projectionselector_la_LIBADD = ../src/libqgis.la $(QT_LDADD)
qgisdesignerwidgets_la_LIBADD = $(QT_LDADD) ../src/widgets/projectionselector/libqgsprojectionselector.la
qgisdesignerwidgets_la_LIBADD = $(QT_LDADD) ../widgets/projectionselector/libqgsprojectionselector.la
qgisdesignerwidgets_la_LDFLAGS = -avoid-version -module
qgisdesignerwidgets_la_CXXFLAGS = $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) -I../src/

Expand Down
4 changes: 0 additions & 4 deletions plugins/delimited_text/qgsdelimitedtextplugin.cpp
Expand Up @@ -116,11 +116,7 @@ void QgsDelimitedTextPlugin::initGui()
"X and Y fields are required and must contain coordinates in decimal units.");

// Create the action for tool
#if QT_VERSION < 0x040000
myQActionPointer = new QAction("Add Delimited Text Layer", QIcon(icon), "&Wmi",0, this, "run");
#else
myQActionPointer = new QAction(QIcon(icon), "Add Delimited Text Layer", this);
#endif

myQActionPointer->setWhatsThis("Add a delimited text file as a map layer. "
"The file must have a header row containing the field names. "
Expand Down
2 changes: 1 addition & 1 deletion plugins/grass/qgsgrassnewmapset.cpp
Expand Up @@ -52,7 +52,7 @@
#include "../../src/qgsrect.h"
#include "../../src/qgscoordinatetransform.h"
#include "../../src/qgsspatialrefsys.h"
#include "../../src/widgets/projectionselector/qgsprojectionselector.h"
#include "../../widgets/projectionselector/qgsprojectionselector.h"

#include "../../providers/grass/qgsgrass.h"
#include "qgsgrassnewmapset.h"
Expand Down
2 changes: 1 addition & 1 deletion plugins/grass/qgsgrassnewmapset.h
Expand Up @@ -30,7 +30,7 @@ class QCloseEvent;
#include "../../src/qgisiface.h"
#include "../../src/qgspoint.h"
#include "../../src/qgsspatialrefsys.h"
#include "../../src/widgets/projectionselector/qgsprojectionselector.h"
#include "../../widgets/projectionselector/qgsprojectionselector.h"

class QgsGrassProvider;
#include "qgsgrassplugin.h"
Expand Down
21 changes: 12 additions & 9 deletions src/Makefile.am
Expand Up @@ -17,14 +17,14 @@ if HAVE_QTMAC
MAC = mac
endif

SUBDIRS = ui legend svg images themes resources raster composer widgets $(MAC)
SUBDIRS = ui legend svg images themes resources raster composer $(MAC)

if !HAVE_QTMAC
PREFIX=-DPREFIX=\"$(prefix)\"
PLUGINPATH=-DPLUGINPATH=\"$(pkglibdir)\"
PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\"
endif

WIDGETPATH=../widgets
%.moc.cpp: %.h
$(MOC) -o $@ $<

Expand Down Expand Up @@ -53,13 +53,13 @@ lib_LTLIBRARIES = libqgis.la

qgis_SOURCES = main.cpp

qgis_LDADD = raster/libqgis_raster.la legend/libqgis_legend.la composer/libqgis_composer.la $(LDADD) $(QT_LDADD) $(GDAL_LDADD) $(PG_LIB) $(GEOS_LDADD) $(PYTHON_LIB) -lproj -lsqlite3 libqgis.la
qgis_LDADD = raster/libqgis_raster.la legend/libqgis_legend.la composer/libqgis_composer.la $(LDADD) $(QT_LDADD) $(GDAL_LDADD) $(PG_LIB) $(GEOS_LDADD) $(PYTHON_LIB) -lproj -lsqlite3 libqgis.la
if HAVE_QTMAC
qgis_LDFLAGS = -framework ApplicationServices
else
qgis_LDFLAGS = -rdynamic
endif
qgis_CXXFLAGS = $(PREFIX) $(PLUGINPATH) $(PKGDATAPATH) $(GDAL_CFLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(PG_INC) $(DEBUG_QGIS) $(HAVE_PYTHON) $(GEOS_CFLAGS) $(PYTHON_INCLUDE_DIR) -I./ui/ -I./widgets/projectionselector/ -I./legend/ -I./raster/ -I./composer/
qgis_CXXFLAGS = $(PREFIX) $(PLUGINPATH) $(PKGDATAPATH) $(GDAL_CFLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(PG_INC) $(DEBUG_QGIS) $(HAVE_PYTHON) $(GEOS_CFLAGS) $(PYTHON_INCLUDE_DIR) -I./ui/ -I../widgets/projectionselector/ -I./legend/ -I./raster/ -I./composer/

##
## ----------------------------------------------------------------------
Expand Down Expand Up @@ -176,7 +176,8 @@ libqgisHEADERS = \
qgsuvaldialog.h \
qgsvectordataprovider.h \
qgsvectorfilewriter.h \
qgsvectorlayerproperties.h
qgsvectorlayerproperties.h \
$(WIDGETPATH)/projectionselector/qgsprojectionselector.h

## files generated from MOC
libqgis_la_MOC = \
Expand Down Expand Up @@ -229,7 +230,8 @@ libqgis_la_MOC = \
qgssisydialog.moc.cpp \
qgsuvaldialog.moc.cpp \
qgsvectorlayer.moc.cpp \
qgsvectorlayerproperties.moc.cpp
qgsvectorlayerproperties.moc.cpp \
$(WIDGETPATH)/projectionselector/qgsprojectionselector.moc.cpp

libqgis_la_SOURCES = \
qgisapp.cpp \
Expand Down Expand Up @@ -339,7 +341,8 @@ libqgis_la_SOURCES = \
qgsvectordataprovider.cpp \
qgsvectorfilewriter.cpp \
qgsvectorlayer.cpp \
qgsvectorlayerproperties.cpp
qgsvectorlayerproperties.cpp \
$(WIDGETPATH)/projectionselector/qgsprojectionselector.cpp

if HAVE_POSTGRESQL
postgresHEADERS = qgsdbsourceselect.h \
Expand Down Expand Up @@ -369,10 +372,10 @@ nodist_libqgis_la_SOURCES = $(libqgis_la_MOC)
BUILT_SOURCES = $(libqgis_la_MOC) $(qgis_YACC) $(postgresMOC)


libqgis_la_LIBADD = raster/libqgis_raster.la legend/libqgis_legend.la composer/libqgis_composer.la widgets/projectionselector/libqgsprojectionselector.la $(QT_LDADD) $(GEOS_LDADD) $(GDAL_LDADD) $(PYTHON_LIB) -lsqlite3
libqgis_la_LIBADD = raster/libqgis_raster.la legend/libqgis_legend.la composer/libqgis_composer.la $(QT_LDADD) $(GEOS_LDADD) $(GDAL_LDADD) $(PYTHON_LIB) -lsqlite3
libqgis_la_LDFLAGS = -version-info $(INTERFACE_VERSION)

libqgis_la_CXXFLAGS = $(PREFIX) $(PLUGINPATH) $(PKGDATAPATH) $(GDAL_CFLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(PG_INC) $(DEBUG_QGIS) $(GEOS_CFLAGS) $(PYTHON_INCLUDE_DIR) $(HAVE_PYTHON) -I./ui/ -I./widgets/projectionselector/ -I./legend/ -I./raster/ -I./composer/
libqgis_la_CXXFLAGS = $(PREFIX) $(PLUGINPATH) $(PKGDATAPATH) $(GDAL_CFLAGS) $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(PG_INC) $(DEBUG_QGIS) $(GEOS_CFLAGS) $(PYTHON_INCLUDE_DIR) $(HAVE_PYTHON) -I./ui/ -I../widgets/projectionselector/ -I./legend/ -I./raster/ -I./composer/

## for installing headers in $(includedir)/qgis
pkginclude_HEADERS = $(qgisHEADERS)
Expand Down
4 changes: 2 additions & 2 deletions src/ui/Makefile.am
Expand Up @@ -80,7 +80,7 @@ qgis_ui_UIC = \
qgsmarkerdialogbase.ui \
qgsnewhttpconnectionbase.ui \
qgsnewconnectionbase.ui \
../widgets/projectionselector/qgsprojectionselectorbase.ui
$(WIDGETPATH)/projectionselector/qgsprojectionselectorbase.ui

## all the ui files generate a corresponding header file
qgis_ui_UIHEADERS = ui_qgisappbase.h \
Expand Down Expand Up @@ -147,7 +147,7 @@ qgis_ui_UIHEADERS = ui_qgisappbase.h \
ui_qgsuvaldialogbase.h \
ui_qgsnewhttpconnectionbase.h \
ui_qgsnewconnectionbase.h \
../widgets/projectionselector/ui_qgsprojectionselectorbase.h
$(WIDGETPATH)/projectionselector/ui_qgsprojectionselectorbase.h


postgresUIHEADERS = ui_qgsdbsourceselectbase.h \
Expand Down
3 changes: 3 additions & 0 deletions widgets/.cvsignore
@@ -0,0 +1,3 @@
Makefile
Makefile.in

4 changes: 4 additions & 0 deletions widgets/Makefile.am
@@ -0,0 +1,4 @@
## Makefile.in generated from automake

SUBDIRS = projectionselector

13 changes: 13 additions & 0 deletions widgets/projectionselector/.cvsignore
@@ -0,0 +1,13 @@
Makefile
Makefile.in
*.la
*.lo
*.moc.cpp
*.moc.uic.cpp
*.uic.h
*.uic.cpp
qgsprojectionselectorbase.h
qgsprojectionselectorbase.cpp
.libs
.deps

48 changes: 48 additions & 0 deletions widgets/projectionselector/Makefile.am
@@ -0,0 +1,48 @@
# Copyright (C) 2005 Tim Sutton <tim at linfiniti.com>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# $Id$

selectordir = ${pkglibdir}
if !HAVE_QTMAC
PKGDATAPATH=-DPKGDATAPATH=\"$(pkgdatadir)\"
endif

%.moc.cpp: %.h
$(MOC) -o $@ $<

ui_%.h: %.ui
$(UIC) -o $@ $<

# name of the qgis library widget
selector_LTLIBRARIES = libqgsprojectionselector.la

selector_MOC = qgsprojectionselector.moc.cpp

selector_UIC = qgsprojectionselectorbase.ui

selector_UI = ui_qgsprojectionselectorbase.h


libqgsprojectionselector_la_SOURCES = qgsprojectionselector.cpp \
$(selector_UI) \
$(selector_UIC) \
$(selector_MOC)

BUILT_SOURCES = $(selector_MOC) $(selector_UI)

CLEANFILES = $(BUILT_SOURCES)


libqgsprojectionselector_la_LIBADD = ../../src/libqgis.la $(LDADD) $(QT_LDADD) $(GDAL_LDADD) -lsqlite3
libqgsprojectionselector_la_LDFLAGS = -avoid-version
libqgsprojectionselector_la_CXXFLAGS = $(PKGDATAPATH) $(CXXFLAGS) $(GDAL_CFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) -I../../src/

EXTRA_DIST = $(selector_UIC)
14 changes: 14 additions & 0 deletions widgets/projectionselector/projectionselector.pro
@@ -0,0 +1,14 @@
######################################################################
# Automatically generated by qmake (1.06c) Sat Apr 30 15:44:59 2005
######################################################################

TEMPLATE = lib
INCLUDEPATH += . \
..\..\src \
$(GDAL)\include \
$(SQLITE3)

# Input
HEADERS += qgsprojectionselector.h qgsprojectionselectorbase.ui.h
INTERFACES += qgsprojectionselectorbase.ui
SOURCES += qgsprojectionselector.cpp

0 comments on commit b961eb7

Please sign in to comment.