Advanced Strategic Command
targetcoordinatelocator.h
Go to the documentation of this file.
1 /***************************************************************************
2  TargetCoordinateLocator
3  -------------------
4  copyright : (C) 2006 by Martin Bickel
5  email : <bickel@asc-hq.org>
6  ***************************************************************************/
7 
8 /***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef targetcoordinatelocatorH
18 #define targetcoordinatelocatorH
19 
20 #include <SDL.h>
21 
22 #include "pgwidget.h"
23 #include "pgimage.h"
24 #include "../dialogs/fieldmarker.h"
25 
26 class TargetCoordinateLocator : public PG_Image {
27  static SDL_Surface* getImage();
29  protected:
30  bool eventMouseButtonDown (const SDL_MouseButtonEvent *button);
31 
32  public:
33  TargetCoordinateLocator(PG_Widget* parent, const PG_Point& pos, const SelectFromMap::CoordinateList& coordinates );
34 
35 };
36 
37 #endif
bool eventMouseButtonDown(const SDL_MouseButtonEvent *button)
vector< MapCoordinate > CoordinateList
Definition: fieldmarker.h:45
TargetCoordinateLocator(PG_Widget *parent, const PG_Point &pos, const SelectFromMap::CoordinateList &coordinates)