summaryrefslogtreecommitdiff
path: root/library/CustomGrid.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
commitfd0853d2623dd278b08288331ed42e3be59252fb (patch)
treea7645daeaef8bdbed064faf4eb88e72cee58726c /library/CustomGrid.h
parent2.1 (diff)
downloadFreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.gz
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.bz2
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.zip
2.2
Diffstat (limited to 'library/CustomGrid.h')
-rw-r--r--library/CustomGrid.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/library/CustomGrid.h b/library/CustomGrid.h
index 98e86e11..a71b985a 100644
--- a/library/CustomGrid.h
+++ b/library/CustomGrid.h
@@ -3,7 +3,6 @@
#include <vector>
#include <wx/grid.h>
-#include "../structures.h"
#include "processXml.h"
#include <map>
#include <memory>
@@ -14,6 +13,7 @@ class CustomGridTableRight;
class CustomGridTableMiddle;
class GridCellRendererMiddle;
class wxTimer;
+class CustomTooltip;
class CustomGridRim;
class CustomGridLeft;
class CustomGridMiddle;
@@ -22,6 +22,10 @@ class CustomGridRight;
namespace FreeFileSync
{
class GridView;
+
+ const wxBitmap& getSyncOpImage(const CompareFilesResult cmpResult,
+ const bool selectedForSynchronization,
+ const SyncDirection syncDir);
}
//##################################################################################
@@ -103,7 +107,7 @@ class GridCellRenderer;
//-----------------------------------------------------------
#ifdef FFS_WIN
-class IconUpdater : public wxEvtHandler //update file icons periodically: use SINGLE instance to coordinate left and right grid at once
+class IconUpdater : private wxEvtHandler //update file icons periodically: use SINGLE instance to coordinate left and right grid at once
{
public:
IconUpdater(CustomGridLeft* leftGrid, CustomGridRight* rightGrid);
@@ -123,8 +127,8 @@ private:
class CustomGridRim : public CustomGrid
{
friend class IconUpdater;
- template <bool showFileIcons>
- friend class GridCellRenderer;
+ template <bool showFileIcons>
+ friend class GridCellRenderer;
public:
CustomGridRim(wxWindow *parent,
@@ -257,6 +261,8 @@ private:
void OnLeftMouseDown(wxMouseEvent& event);
void OnLeftMouseUp(wxMouseEvent& event);
+ void showToolTip(int rowNumber, wxPoint pos);
+
//small helper methods
enum BlockPosition //each cell can be divided into four blocks concerning mouse selections
{
@@ -276,6 +282,8 @@ private:
BlockPosition highlightedPos;
CustomGridTableMiddle* gridDataTable;
+
+ std::auto_ptr<CustomTooltip> toolTip;
};
//custom events for middle grid:
bgstack15