Mercurial > hg > svgui
comparison layer/RegionLayer.h @ 542:5930f2b0b1d2
* some work on improving region editing -- incomplete
author | Chris Cannam |
---|---|
date | Mon, 03 Aug 2009 16:42:25 +0000 |
parents | ac349afdb23f |
children | d666f5f8b154 |
comparison
equal
deleted
inserted
replaced
541:e233627a923e | 542:5930f2b0b1d2 |
---|---|
135 VerticalScale m_verticalScale; | 135 VerticalScale m_verticalScale; |
136 int m_colourMap; | 136 int m_colourMap; |
137 PlotStyle m_plotStyle; | 137 PlotStyle m_plotStyle; |
138 | 138 |
139 typedef std::map<float, int> SpacingMap; | 139 typedef std::map<float, int> SpacingMap; |
140 // region value -> ordering | |
140 SpacingMap m_spacingMap; | 141 SpacingMap m_spacingMap; |
142 | |
143 int spacingIndexToY(View *v, int i) const; | |
144 float yToSpacingIndex(View *v, int y) const; | |
141 | 145 |
142 void finish(RegionModel::EditCommand *command) { | 146 void finish(RegionModel::EditCommand *command) { |
143 Command *c = command->finish(); | 147 Command *c = command->finish(); |
144 if (c) CommandHistory::getInstance()->addCommand(c, false); | 148 if (c) CommandHistory::getInstance()->addCommand(c, false); |
145 } | 149 } |