LazMapViewer: Rename unit mvPluginCore to mvPluginCommon. Adapt all sample projects.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9581 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
4bf90d369f
commit
8df360f422
@ -579,6 +579,7 @@ object CfgFrame: TCfgFrame
|
||||
end
|
||||
object MapScalePlugin: TMapScalePlugin
|
||||
ZoomMin = 5
|
||||
BackgroundOpacity = 0.550000011920929
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -6,9 +6,9 @@ interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, IniFiles,
|
||||
Graphics,
|
||||
Forms, Controls, StdCtrls, Buttons, Dialogs, ExtCtrls, ColorBox, ExtDlgs, Spin,
|
||||
mvMapViewer, mvEngine, mvPluginCore, mvMapGridPlugin, mvMapScalePlugin,
|
||||
Graphics, Forms, Controls, StdCtrls, Buttons, Dialogs, ExtCtrls,
|
||||
ColorBox, ExtDlgs, Spin,
|
||||
mvMapViewer, mvEngine, mvPluginCommon, mvMapGridPlugin, mvMapScalePlugin,
|
||||
globals;
|
||||
|
||||
type
|
||||
|
@ -7,7 +7,7 @@ interface
|
||||
uses
|
||||
SysUtils, Classes, Math,
|
||||
Graphics, Forms, Controls, StdCtrls, ExtCtrls,
|
||||
mvDLEFpc, mvMapViewer, mvPluginCore, mvPlugins, mvGPSObj;
|
||||
mvDLEFpc, mvMapViewer, mvPluginCommon, mvPlugins, mvGPSObj;
|
||||
|
||||
type
|
||||
|
||||
|
@ -7,7 +7,7 @@ interface
|
||||
uses
|
||||
Classes, ComCtrls, DividerBevel, ExtCtrls, Spin, StdCtrls, SysUtils,
|
||||
Forms, Controls, Graphics, Dialogs, //LazLogger,
|
||||
mvMapViewer, mvTypes, mvEngine, mvPluginCore, mvMapGridPlugin;
|
||||
mvMapViewer, mvTypes, mvEngine, mvPluginCommon, mvMapGridPlugin;
|
||||
|
||||
type
|
||||
TMainForm = class(TForm)
|
||||
|
@ -7,7 +7,7 @@ interface
|
||||
uses
|
||||
Classes, SysUtils,
|
||||
LCLIntf, Forms, Controls, Graphics, ExtCtrls, StdCtrls, Dialogs, Spin,
|
||||
mvMapViewer, mvPluginCore, mvPlugins;
|
||||
mvMapViewer, mvPluginCommon, mvPlugins;
|
||||
|
||||
type
|
||||
TMainForm = class(TForm)
|
||||
|
@ -7,7 +7,7 @@ interface
|
||||
uses
|
||||
Buttons, Classes, SysUtils, Math,
|
||||
Graphics, Controls, StdCtrls, ExtCtrls, Forms,
|
||||
mvMapViewer, mvPluginCore, mvPlugins;
|
||||
mvMapViewer, mvPluginCommon, mvPlugins;
|
||||
|
||||
type
|
||||
|
||||
|
@ -6,7 +6,7 @@ interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, Controls, Graphics,
|
||||
mvPluginCore, mvPlugins, mvMapViewer, mvTypes, mvGPSObj, mvGeoMath;
|
||||
mvPluginCommon, mvPlugins, mvMapViewer, mvTypes, mvGPSObj, mvGeoMath;
|
||||
|
||||
type
|
||||
|
||||
|
@ -5,8 +5,8 @@ unit Unit1;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, mvMapViewer,
|
||||
mvPluginCore, uDragColoredItemPlugin;
|
||||
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls,
|
||||
mvMapViewer, mvPluginCommon, uDragColoredItemPlugin;
|
||||
|
||||
type
|
||||
|
||||
|
@ -76,24 +76,24 @@ object Form1: TForm1
|
||||
object MvPluginManager1LegalNoticePlugin1: TLegalNoticePlugin
|
||||
BackgroundColor = clWhite
|
||||
BackgroundOpacity = 1
|
||||
Font.Height = -19
|
||||
LegalNotice = 'Test 1'
|
||||
Font.Height = -19
|
||||
end
|
||||
object MvPluginManager1LegalNoticePlugin2: TLegalNoticePlugin
|
||||
BackgroundColor = clYellow
|
||||
BackgroundOpacity = 1
|
||||
Font.Color = clRed
|
||||
Font.Height = -19
|
||||
LegalNotice = 'Test 2'
|
||||
Spacing = 14
|
||||
Font.Color = clRed
|
||||
Font.Height = -19
|
||||
end
|
||||
object MvPluginManager1LegalNoticePlugin3: TLegalNoticePlugin
|
||||
BackgroundColor = clBlue
|
||||
BackgroundOpacity = 1
|
||||
Font.Color = clWhite
|
||||
Font.Height = -19
|
||||
LegalNotice = 'Test 3'
|
||||
Spacing = 24
|
||||
Font.Color = clWhite
|
||||
Font.Height = -19
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -5,8 +5,9 @@ unit Unit1;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, ExtCtrls, mvMapViewer, mvPluginCore, mvPlugins, StdCtrls, SysUtils,
|
||||
Forms, Controls, Graphics, Dialogs, ValEdit;
|
||||
SysUtils, Classes,
|
||||
Forms, Controls, Graphics, StdCtrls, ExtCtrls, Dialogs, ValEdit,
|
||||
mvMapViewer, mvPluginCommon, mvPlugins;
|
||||
|
||||
type
|
||||
TForm1 = class(TForm)
|
||||
|
@ -27,7 +27,6 @@ object MainForm: TMainForm
|
||||
MapCenter.Longitude = 10
|
||||
MapCenter.Latitude = 50
|
||||
PluginManager = PluginManager
|
||||
UseThreads = True
|
||||
Zoom = 8
|
||||
OnZoomChange = MapViewZoomChange
|
||||
end
|
||||
|
@ -7,7 +7,7 @@ interface
|
||||
uses
|
||||
Classes, SysUtils,
|
||||
Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls, Spin,
|
||||
mvMapViewer, mvMapProvider, mvPluginCore, mvMapScalePlugin;
|
||||
mvMapViewer, mvMapProvider, mvPluginCommon, mvMapScalePlugin;
|
||||
|
||||
type
|
||||
|
||||
|
@ -59,6 +59,11 @@
|
||||
<Debugging>
|
||||
<DebugInfoType Value="dsDwarf3"/>
|
||||
</Debugging>
|
||||
<Options>
|
||||
<Win32>
|
||||
<GraphicApplication Value="True"/>
|
||||
</Win32>
|
||||
</Options>
|
||||
</Linking>
|
||||
</CompilerOptions>
|
||||
<Debugging>
|
||||
|
@ -17,8 +17,8 @@ uses
|
||||
|
||||
begin
|
||||
RequireDerivedFormResource := True;
|
||||
Application.Title := 'MapScale_Demo';
|
||||
Application.Scaled := True;
|
||||
Application.Title:='MapScale_Demo';
|
||||
Application.Scaled:=True;
|
||||
{$PUSH}{$WARN 5044 OFF}
|
||||
Application.MainFormOnTaskbar := True;
|
||||
{$POP}
|
||||
|
@ -5,9 +5,9 @@ unit Unit1;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, Forms, Controls, Graphics, Dialogs,
|
||||
mvMapViewer, mvPluginCore, mvPlugins,
|
||||
mvGPSObj, mvspreadmarker_plugin;
|
||||
Classes, SysUtils,
|
||||
Forms, Controls, Graphics, Dialogs,
|
||||
mvMapViewer, mvPluginCommon, mvPlugins, mvGPSObj, mvspreadmarker_plugin;
|
||||
|
||||
type
|
||||
|
||||
|
@ -44,11 +44,6 @@
|
||||
<ResourceBaseClass Value="Form"/>
|
||||
<UnitName Value="Unit1"/>
|
||||
</Unit>
|
||||
<Unit>
|
||||
<Filename Value="..\..\..\source\addons\plugins\mvnullplugin.pas"/>
|
||||
<IsPartOfProject Value="True"/>
|
||||
<UnitName Value="mvNullPlugin"/>
|
||||
</Unit>
|
||||
</Units>
|
||||
</ProjectOptions>
|
||||
<CompilerOptions>
|
||||
|
@ -5,8 +5,9 @@ unit Unit1;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls,
|
||||
mvMapViewer, mvPluginCore, mvPlugins;
|
||||
Classes, SysUtils,
|
||||
Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls,
|
||||
mvMapViewer, mvPluginCommon, mvPlugins;
|
||||
|
||||
type
|
||||
|
||||
|
@ -5,7 +5,7 @@ unit Unit1;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, mvMapViewer, mvPluginCore, mvPlugins, StdCtrls, SysUtils, Forms,
|
||||
Classes, mvMapViewer, mvPluginCommon, mvPlugins, StdCtrls, SysUtils, Forms,
|
||||
Controls, Graphics, Dialogs, mvTypes;
|
||||
|
||||
type
|
||||
|
@ -21,12 +21,27 @@
|
||||
<Mode Name="default"/>
|
||||
</BuildModes>
|
||||
</Target>
|
||||
<Target FileName="examples\fulldemo_with_addons\mapviewer_demo_with_addons.lpi">
|
||||
<Target FileName="unittests\mapviewer_tests.lpi">
|
||||
<BuildModes>
|
||||
<Mode Name="Default"/>
|
||||
</BuildModes>
|
||||
</Target>
|
||||
<Target FileName="examples\elevations\Elevations_Demo.lpi">
|
||||
<BuildModes>
|
||||
<Mode Name="Default"/>
|
||||
</BuildModes>
|
||||
</Target>
|
||||
<Target FileName="examples\flights\flights.lpi">
|
||||
<BuildModes>
|
||||
<Mode Name="default"/>
|
||||
</BuildModes>
|
||||
</Target>
|
||||
<Target FileName="unittests\mapviewer_tests.lpi">
|
||||
<Target FileName="examples\gpstilelayer_demo\GPSTileLayer_Demo.lpi">
|
||||
<BuildModes>
|
||||
<Mode Name="Default"/>
|
||||
</BuildModes>
|
||||
</Target>
|
||||
<Target FileName="examples\restricted_zoom_pan\RestrictedZoomPan_Demo.lpi">
|
||||
<BuildModes>
|
||||
<Mode Name="Default"/>
|
||||
</BuildModes>
|
||||
|
@ -129,8 +129,8 @@ FPC 3.2.0 or newer required."/>
|
||||
<UnitName Value="mvClassRegistration"/>
|
||||
</Item26>
|
||||
<Item27>
|
||||
<Filename Value="source/mvplugincore.pas"/>
|
||||
<UnitName Value="mvPluginCore"/>
|
||||
<Filename Value="source/mvplugincommon.pas"/>
|
||||
<UnitName Value="mvPluginCommon"/>
|
||||
</Item27>
|
||||
<Item28>
|
||||
<Filename Value="source/addons/plugins/mvplugins.pas"/>
|
||||
|
@ -13,7 +13,7 @@ uses
|
||||
mvDLEFpc, mvMapViewerReg, mvGPX, mvDrawingEngine, mvDE_IntfGraphics,
|
||||
mvDLEWin, mvMapViewerPropEdits, mvLayersPropEditForm, mvGeoMath,
|
||||
mvMapViewerPathEditForm, mvMapViewerPathEditDsgForm, mvDLECache,
|
||||
mvPluginEditors, mvClassRegistration, mvPluginCore, mvPlugins,
|
||||
mvPluginEditors, mvClassRegistration, mvPluginCommon, mvPlugins,
|
||||
mvspreadmarker_plugin, uInactivityAlarmTimer, mvMapGridPlugin,
|
||||
mvMapScalePlugin, LazarusPackageIntf;
|
||||
|
||||
|
@ -9,7 +9,7 @@ interface
|
||||
uses
|
||||
Classes, SysUtils, Math,
|
||||
Graphics, Controls, LCLIntf, //LazLoggerBase,
|
||||
mvMapViewer, mvDrawingEngine, mvPluginCore, mvGeoMath, mvTypes;
|
||||
mvMapViewer, mvDrawingEngine, mvPluginCommon, mvGeoMath, mvTypes;
|
||||
|
||||
type
|
||||
TMapGridPlugin = class;
|
||||
|
@ -7,7 +7,7 @@ interface
|
||||
uses
|
||||
Classes, SysUtils, Contnrs,
|
||||
Graphics, Controls, LCLIntf, //LazLoggerBase,
|
||||
mvMapViewer, mvDrawingEngine, mvPluginCore, mvGPSObj, mvTypes;
|
||||
mvMapViewer, mvDrawingEngine, mvPluginCommon, mvGPSObj, mvTypes;
|
||||
|
||||
type
|
||||
{ TCenterMarkerPlugin - draws a cross in the map center }
|
||||
|
@ -9,7 +9,7 @@ interface
|
||||
uses
|
||||
Classes, SysUtils, Math,
|
||||
Graphics, Controls, Types,
|
||||
mvMapViewer, mvGeoMath, mvPluginCore;
|
||||
mvMapViewer, mvGeoMath, mvPluginCommon;
|
||||
|
||||
type
|
||||
{ TMapScalePlugin }
|
||||
|
@ -18,7 +18,7 @@ interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, Controls, Graphics,
|
||||
mvMapViewer, mvTypes, mvGpsObj,mvPluginCore,mvDrawingEngine,mvGeoMath,
|
||||
mvMapViewer, mvTypes, mvGpsObj, mvPluginCommon, mvDrawingEngine, mvGeoMath,
|
||||
uInactivityAlarmTimer;
|
||||
|
||||
type
|
||||
|
@ -105,7 +105,7 @@ implementation
|
||||
uses
|
||||
System.UITypes, Dialogs, IDEWindowIntf, LazIDEIntf, StrUtils, mvMapViewer,
|
||||
mvGpsObj, mvLayersPropEditForm, mvEngine, mvGeoMath,
|
||||
mvMapViewerPathEditDsgForm, mvPluginCore;
|
||||
mvMapViewerPathEditDsgForm, mvPluginCommon;
|
||||
|
||||
const
|
||||
sNONE = '(none)';
|
||||
|
@ -15,7 +15,7 @@ implementation
|
||||
|
||||
uses
|
||||
Controls, ImgList,
|
||||
mvTypes, mvGeoNames, mvMapViewer, mvDLEFpc, mvDLECache, mvPluginCore,
|
||||
mvTypes, mvGeoNames, mvMapViewer, mvDLEFpc, mvDLECache, mvPluginCommon,
|
||||
mvMapViewerPropEdits, mvPlugins, mvPluginEditors;
|
||||
|
||||
procedure Register;
|
||||
|
@ -1,4 +1,4 @@
|
||||
unit mvPluginCore;
|
||||
unit mvPluginCommon;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
|
@ -121,7 +121,7 @@ implementation
|
||||
{$R *.lfm}
|
||||
|
||||
uses
|
||||
mvPluginCore;
|
||||
mvPluginCommon;
|
||||
|
||||
{ TMvComponentListPropertyEditor }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user