45 return m_visibleRulers;
50 m_visibleRulers = visible;
55 m_zoomFactors[factor] = text;
60 m_zoomFactors.clear();
65 double zoomFactor = 0;
66 std::map<double, std::string>::iterator it;
68 it = m_zoomFactors.find(currentFactor);
70 if(it != m_zoomFactors.end())
73 if(it != m_zoomFactors.end())
75 zoomFactor = it->first;
85 double zoomFactor = 0;
86 std::map<double, std::string>::iterator it;
88 it = m_zoomFactors.find(currentFactor);
90 if(it != m_zoomFactors.end())
93 if(it != m_zoomFactors.end())
95 zoomFactor = it->first;
This is the abstract view for View.
virtual double previousFactor(double currentFactor)
Method that returns the previous zoom factor in the list.
virtual double nextFactor(double currentFactor)
Method that returns the next zoom factor in the list.
std::map< double, std::string > m_zoomFactors
zoom factor list
AbstractView()
Constructor.
virtual void clearZoomFactors()
Method that clears the zoom factor list.
virtual bool isVisibleRulers()
Method that return rulers visibility state.
virtual void addZoomFactor(double factor, std::string text)
Method that adds new zoom factor. Ex.: 0.5 - 50%.
virtual void setVisibleRulers(bool visible)
Method that change rulers visibility state.