\hypertarget{a01085}{\section{A\+C\+G\+:\+:Qt\+Widgets\+:\+:Qt\+Wheel Class Reference}
\label{a01085}\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}}
}
Inheritance diagram for A\+C\+G\+:\+:Qt\+Widgets\+:\+:Qt\+Wheel\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a01085}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01085_ad18f6137953ea01297047dadd7abcfdc}{enum \hyperlink{a01085_ad18f6137953ea01297047dadd7abcfdc}{Orientation} \{ {\bfseries Horizontal}, 
{\bfseries Vertical}
 \}}\label{a01085_ad18f6137953ea01297047dadd7abcfdc}

\begin{DoxyCompactList}\small\item\em Orientation of the widget. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a01085_a3e25678c5e10f41c7f73eabb7a0cd9c5}{angle\+Changed\+To} (double \+\_\+angle)
\item 
void \hyperlink{a01085_a9cdfaa46b7f9f1d45c04d271b9f977dc}{angle\+Changed\+By} (double \+\_\+angle)
\item 
void \hyperlink{a01085_a8ff640766a85b3cf3bb63423b2314023}{gear\+Up} ()
\item 
\hypertarget{a01085_a0717523fa0143ac12063f1097ea6b0c0}{void \hyperlink{a01085_a0717523fa0143ac12063f1097ea6b0c0}{gear\+Down} ()}\label{a01085_a0717523fa0143ac12063f1097ea6b0c0}

\begin{DoxyCompactList}\small\item\em Like \hyperlink{a01085_a8ff640766a85b3cf3bb63423b2314023}{gear\+Up()} but the value of \hyperlink{a01085_aa93446cb454a42df471ec4ce58b224f9}{gear()} halves. \end{DoxyCompactList}\item 
\hypertarget{a01085_ad0acc49c07f114193a4290963667843e}{void \hyperlink{a01085_ad0acc49c07f114193a4290963667843e}{hide\+Wheel} ()}\label{a01085_ad0acc49c07f114193a4290963667843e}

\begin{DoxyCompactList}\small\item\em Emitted when the wheel will be hidden by the context menu. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01085_a8323e77676c830c3fc58b1f0db6dc542}{\hyperlink{a01085_a8323e77676c830c3fc58b1f0db6dc542}{Qt\+Wheel} (Q\+Widget $\ast$\+\_\+parent=0, const char $\ast$\+\_\+name=0, \hyperlink{a01085_ad18f6137953ea01297047dadd7abcfdc}{Orientation} \+\_\+orientation=Horizontal)}\label{a01085_a8323e77676c830c3fc58b1f0db6dc542}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a01085_ac2e57370ccc3098cb474915cf3a91171}{virtual \hyperlink{a01085_ac2e57370ccc3098cb474915cf3a91171}{$\sim$\+Qt\+Wheel} ()}\label{a01085_ac2e57370ccc3098cb474915cf3a91171}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a01085_ac12e122f929dbfc916b321676e9e50cd}{int \hyperlink{a01085_ac12e122f929dbfc916b321676e9e50cd}{ticks} () const }\label{a01085_ac12e122f929dbfc916b321676e9e50cd}

\begin{DoxyCompactList}\small\item\em get number of ticks on the wheel \end{DoxyCompactList}\item 
\hypertarget{a01085_abc96b838870aa580ea5d9822628f4b6f}{void \hyperlink{a01085_abc96b838870aa580ea5d9822628f4b6f}{set\+Ticks} (int \+\_\+number)}\label{a01085_abc96b838870aa580ea5d9822628f4b6f}

\begin{DoxyCompactList}\small\item\em set {\ttfamily \+\_\+number} of ticks on the wheel (default\+: 36) \end{DoxyCompactList}\item 
\hypertarget{a01085_abbb6e04aacf01ce5d780d1b884feb282}{double \hyperlink{a01085_abbb6e04aacf01ce5d780d1b884feb282}{angle} () const }\label{a01085_abbb6e04aacf01ce5d780d1b884feb282}

\begin{DoxyCompactList}\small\item\em get current angle of the wheel (radiants, unbounded, cf. \hyperlink{a01085_a2b82e4df03cea279c119b181573166f1}{clip()}) \end{DoxyCompactList}\item 
\hypertarget{a01085_a871cb58500ff1fdc54f549d387f9aa1e}{void \hyperlink{a01085_a871cb58500ff1fdc54f549d387f9aa1e}{set\+Angle} (double \+\_\+angle)}\label{a01085_a871cb58500ff1fdc54f549d387f9aa1e}

\begin{DoxyCompactList}\small\item\em set current angle of the wheel (radiants, unbounded, cf. \hyperlink{a01085_a2b82e4df03cea279c119b181573166f1}{clip()}) \end{DoxyCompactList}\item 
double \hyperlink{a01085_a63407484a85afbb31bd5b44fd84b3e90}{diff\+Angle} () const 
\item 
\hypertarget{a01085_aafe5c111bdc44abb9a64ace384c01442}{bool \hyperlink{a01085_aafe5c111bdc44abb9a64ace384c01442}{marker} () const }\label{a01085_aafe5c111bdc44abb9a64ace384c01442}

\begin{DoxyCompactList}\small\item\em Are there markers on the wheel? \end{DoxyCompactList}\item 
\hypertarget{a01085_a070252f98ef0117e3f4ce2337506beb4}{void \hyperlink{a01085_a070252f98ef0117e3f4ce2337506beb4}{set\+Marker} (bool \+\_\+b)}\label{a01085_a070252f98ef0117e3f4ce2337506beb4}

\begin{DoxyCompactList}\small\item\em enable/disable markers on the wheel \end{DoxyCompactList}\item 
\hypertarget{a01085_ac789a21300d99d5030a02b0009b91cae}{\hyperlink{a01085_ad18f6137953ea01297047dadd7abcfdc}{Orientation} \hyperlink{a01085_ac789a21300d99d5030a02b0009b91cae}{orientation} () const }\label{a01085_ac789a21300d99d5030a02b0009b91cae}

\begin{DoxyCompactList}\small\item\em get orientation \end{DoxyCompactList}\item 
\hypertarget{a01085_a4f0b8306f2d98305993d8ef6b4ea6fde}{void \hyperlink{a01085_a4f0b8306f2d98305993d8ef6b4ea6fde}{set\+Orientation} (\hyperlink{a01085_ad18f6137953ea01297047dadd7abcfdc}{Orientation} \+\_\+orientation)}\label{a01085_a4f0b8306f2d98305993d8ef6b4ea6fde}

\begin{DoxyCompactList}\small\item\em set orientation \end{DoxyCompactList}\item 
\hypertarget{a01085_a6f29827dbcc845dc1e913f11e5f4f1c9}{bool \hyperlink{a01085_a6f29827dbcc845dc1e913f11e5f4f1c9}{dragging\+Wheel} () const }\label{a01085_a6f29827dbcc845dc1e913f11e5f4f1c9}

\begin{DoxyCompactList}\small\item\em Is the user currently dragging the wheel whith the mouse? \end{DoxyCompactList}\item 
void \hyperlink{a01085_aba8d2bd7f76e5df2294faf9beb883c85}{set\+Tracking} (bool \+\_\+b)
\item 
\hypertarget{a01085_a72ff13fb0eef54885dd7c36711454723}{bool \hyperlink{a01085_a72ff13fb0eef54885dd7c36711454723}{tracking} () const }\label{a01085_a72ff13fb0eef54885dd7c36711454723}

\begin{DoxyCompactList}\small\item\em Is tracking on? \end{DoxyCompactList}\item 
void \hyperlink{a01085_aca950f1841977949aaef4ff3d8639433}{set\+Gear} (double \+\_\+g)
\item 
\hypertarget{a01085_aa93446cb454a42df471ec4ce58b224f9}{double \hyperlink{a01085_aa93446cb454a42df471ec4ce58b224f9}{gear} () const }\label{a01085_aa93446cb454a42df471ec4ce58b224f9}

\begin{DoxyCompactList}\small\item\em How fast does \hyperlink{a01085_abbb6e04aacf01ce5d780d1b884feb282}{angle()} change when the wheel is turned? (see above) \end{DoxyCompactList}\item 
\hypertarget{a01085_a72a07a496b9c568bc02cd0c9960d1941}{virtual Q\+Size\+Policy \hyperlink{a01085_a72a07a496b9c568bc02cd0c9960d1941}{size\+Policy} () const }\label{a01085_a72a07a496b9c568bc02cd0c9960d1941}

\begin{DoxyCompactList}\small\item\em reimplemented \end{DoxyCompactList}\item 
\hypertarget{a01085_a94d34e387eede9a08f7d25f76f40ba11}{virtual Q\+Size \hyperlink{a01085_a94d34e387eede9a08f7d25f76f40ba11}{size\+Hint} () const }\label{a01085_a94d34e387eede9a08f7d25f76f40ba11}

\begin{DoxyCompactList}\small\item\em reimplemented \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static double \hyperlink{a01085_a2b82e4df03cea279c119b181573166f1}{clip} (double \+\_\+angle)
\item 
\hypertarget{a01085_ab31cfb99b5898fec57e662b15fdf02fa}{static double \hyperlink{a01085_ab31cfb99b5898fec57e662b15fdf02fa}{deg} (double \+\_\+angle)}\label{a01085_ab31cfb99b5898fec57e662b15fdf02fa}

\begin{DoxyCompactList}\small\item\em maps {\ttfamily \+\_\+angle} from radiants to degrees (works also for \hyperlink{a01085_a2b82e4df03cea279c119b181573166f1}{clip()}ped angles) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01085_af6cc9a214c783c8208dbe499deba713e}{virtual void \hyperlink{a01085_af6cc9a214c783c8208dbe499deba713e}{mouse\+Press\+Event} (Q\+Mouse\+Event $\ast$)}\label{a01085_af6cc9a214c783c8208dbe499deba713e}

\begin{DoxyCompactList}\small\item\em reimplemented \end{DoxyCompactList}\item 
\hypertarget{a01085_a87af997e958fe31439b167791c724da0}{virtual void \hyperlink{a01085_a87af997e958fe31439b167791c724da0}{mouse\+Release\+Event} (Q\+Mouse\+Event $\ast$)}\label{a01085_a87af997e958fe31439b167791c724da0}

\begin{DoxyCompactList}\small\item\em reimplemented \end{DoxyCompactList}\item 
\hypertarget{a01085_ae146cb0c622c401fd0e1960f87c8c41b}{virtual void \hyperlink{a01085_ae146cb0c622c401fd0e1960f87c8c41b}{mouse\+Move\+Event} (Q\+Mouse\+Event $\ast$)}\label{a01085_ae146cb0c622c401fd0e1960f87c8c41b}

\begin{DoxyCompactList}\small\item\em reimplemented \end{DoxyCompactList}\item 
\hypertarget{a01085_a145583da5e2eb5d6054f2675fa338af1}{virtual void \hyperlink{a01085_a145583da5e2eb5d6054f2675fa338af1}{mouse\+Double\+Click\+Event} (Q\+Mouse\+Event $\ast$)}\label{a01085_a145583da5e2eb5d6054f2675fa338af1}

\begin{DoxyCompactList}\small\item\em reimplemented \end{DoxyCompactList}\item 
\hypertarget{a01085_af6a01b0fdb060907596b33246aa3fb13}{virtual void \hyperlink{a01085_af6a01b0fdb060907596b33246aa3fb13}{key\+Press\+Event} (Q\+Key\+Event $\ast$)}\label{a01085_af6a01b0fdb060907596b33246aa3fb13}

\begin{DoxyCompactList}\small\item\em reimplemented \end{DoxyCompactList}\item 
\hypertarget{a01085_afd4293817c3a81f67a15042a9b0c6c52}{virtual void \hyperlink{a01085_afd4293817c3a81f67a15042a9b0c6c52}{key\+Release\+Event} (Q\+Key\+Event $\ast$)}\label{a01085_afd4293817c3a81f67a15042a9b0c6c52}

\begin{DoxyCompactList}\small\item\em reimplemented \end{DoxyCompactList}\item 
\hypertarget{a01085_a63a62579d7d5253dafebac0229c963ed}{virtual void \hyperlink{a01085_a63a62579d7d5253dafebac0229c963ed}{resize\+Event} (Q\+Resize\+Event $\ast$)}\label{a01085_a63a62579d7d5253dafebac0229c963ed}

\begin{DoxyCompactList}\small\item\em reimplemented \end{DoxyCompactList}\item 
virtual void \hyperlink{a01085_a2740c1672fdfa5889689d3e2b77ee643}{paint\+Event} (Q\+Paint\+Event $\ast$)
\begin{DoxyCompactList}\small\item\em reimplemented \end{DoxyCompactList}\item 
\hypertarget{a01085_a96a8ab164d52d40028c783ead2d8f86d}{virtual void \hyperlink{a01085_a96a8ab164d52d40028c783ead2d8f86d}{draw\+Contents} (Q\+Painter $\ast$)}\label{a01085_a96a8ab164d52d40028c783ead2d8f86d}

\begin{DoxyCompactList}\small\item\em reimplemented \end{DoxyCompactList}\item 
\hypertarget{a01085_a9105a7b9717986987cc78223a27d3900}{virtual void \hyperlink{a01085_a9105a7b9717986987cc78223a27d3900}{redraw\+Pixmap} ()}\label{a01085_a9105a7b9717986987cc78223a27d3900}

\begin{DoxyCompactList}\small\item\em draw wheel to pixmap (double buffering) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01085_a075707e9da750b68dd66e08bd3b53992}{void {\bfseries slot\+Custom\+Context\+Menu\+Requested} (const Q\+Point \&pos)}\label{a01085_a075707e9da750b68dd66e08bd3b53992}

\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01085_ac9a012aaba9c32f661c283fac3c2b953}{\hyperlink{a01085_ac9a012aaba9c32f661c283fac3c2b953}{Qt\+Wheel} (const \hyperlink{a01085}{Qt\+Wheel} \&)}\label{a01085_ac9a012aaba9c32f661c283fac3c2b953}

\begin{DoxyCompactList}\small\item\em Copy constructor. Never used! \end{DoxyCompactList}\item 
\hypertarget{a01085_adfdd65f10d9ad07c89734bdcdfc853a2}{\hyperlink{a01085}{Qt\+Wheel} \& \hyperlink{a01085_adfdd65f10d9ad07c89734bdcdfc853a2}{operator=} (const \hyperlink{a01085}{Qt\+Wheel} \&)}\label{a01085_adfdd65f10d9ad07c89734bdcdfc853a2}

\begin{DoxyCompactList}\small\item\em Assignment operator. Never used! \end{DoxyCompactList}\item 
\hypertarget{a01085_ae73b1b33b2c8daf0837c1cac038f912c}{double {\bfseries turn} (const Q\+Point \&\+\_\+pos)}\label{a01085_ae73b1b33b2c8daf0837c1cac038f912c}

\item 
\hypertarget{a01085_a933a2b50a5972ddb55f332aa9b032e7c}{void \hyperlink{a01085_a933a2b50a5972ddb55f332aa9b032e7c}{update\+Menu} ()}\label{a01085_a933a2b50a5972ddb55f332aa9b032e7c}

\begin{DoxyCompactList}\small\item\em updates the ticks of the menu \end{DoxyCompactList}\item 
\hypertarget{a01085_a02d389b0f97183511067cf09dfbb1dcd}{void \hyperlink{a01085_a02d389b0f97183511067cf09dfbb1dcd}{shrink\+Rect} (Q\+Rect \&, int, int)}\label{a01085_a02d389b0f97183511067cf09dfbb1dcd}

\begin{DoxyCompactList}\small\item\em expands a rectangle in x/y direction \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01085_a180ea5ba9ea8aa2f25fde80680f20d39}{double \hyperlink{a01085_a180ea5ba9ea8aa2f25fde80680f20d39}{angle\+\_\+}}\label{a01085_a180ea5ba9ea8aa2f25fde80680f20d39}

\begin{DoxyCompactList}\small\item\em current angle of the wheel \end{DoxyCompactList}\item 
\hypertarget{a01085_adb15deb4dc161f740c1514ae1020c888}{double \hyperlink{a01085_adb15deb4dc161f740c1514ae1020c888}{last\+Angle\+\_\+}}\label{a01085_adb15deb4dc161f740c1514ae1020c888}

\begin{DoxyCompactList}\small\item\em last angle, depends on tracking\+\_\+ \end{DoxyCompactList}\item 
\hypertarget{a01085_a59abb842934a5b032eb947c5f33ebaa7}{int \hyperlink{a01085_a59abb842934a5b032eb947c5f33ebaa7}{size\+\_\+}}\label{a01085_a59abb842934a5b032eb947c5f33ebaa7}

\begin{DoxyCompactList}\small\item\em size of wheel in pixels \end{DoxyCompactList}\item 
\hypertarget{a01085_adb892670c5cba64e1df9ee070229bd82}{double \hyperlink{a01085_adb892670c5cba64e1df9ee070229bd82}{gear\+\_\+}}\label{a01085_adb892670c5cba64e1df9ee070229bd82}

\begin{DoxyCompactList}\small\item\em speed of revolution \end{DoxyCompactList}\item 
\hypertarget{a01085_a31ab815f176aeb019cae6ae2b33c1d79}{int \hyperlink{a01085_a31ab815f176aeb019cae6ae2b33c1d79}{gear\+Shift\+\_\+}}\label{a01085_a31ab815f176aeb019cae6ae2b33c1d79}

\begin{DoxyCompactList}\small\item\em click-\/shifted gear by 2$^\wedge$gear\+Shift\+\_\+ \end{DoxyCompactList}\item 
\hypertarget{a01085_af056cc66ea9a52f4040fc5eb7378cf60}{\hyperlink{a01085_ad18f6137953ea01297047dadd7abcfdc}{Orientation} \hyperlink{a01085_af056cc66ea9a52f4040fc5eb7378cf60}{orientation\+\_\+}}\label{a01085_af056cc66ea9a52f4040fc5eb7378cf60}

\begin{DoxyCompactList}\small\item\em orientation of the widget \end{DoxyCompactList}\item 
\hypertarget{a01085_a0bf91a22e677a9a3c9a4e182b051fd28}{int \hyperlink{a01085_a0bf91a22e677a9a3c9a4e182b051fd28}{ticks\+\_\+}}\label{a01085_a0bf91a22e677a9a3c9a4e182b051fd28}

\begin{DoxyCompactList}\small\item\em number of ticks on the wheel \end{DoxyCompactList}\item 
\hypertarget{a01085_a168d86dfa2de151b177ee6a574f7881d}{bool \hyperlink{a01085_a168d86dfa2de151b177ee6a574f7881d}{marker\+\_\+}}\label{a01085_a168d86dfa2de151b177ee6a574f7881d}

\begin{DoxyCompactList}\small\item\em should ticks be marked by colors? \end{DoxyCompactList}\item 
\hypertarget{a01085_afc93d1df5ccafd61307fe9394ab5f989}{Q\+Point \hyperlink{a01085_afc93d1df5ccafd61307fe9394ab5f989}{pos\+\_\+}}\label{a01085_afc93d1df5ccafd61307fe9394ab5f989}

\begin{DoxyCompactList}\small\item\em recent mouse position \end{DoxyCompactList}\item 
\hypertarget{a01085_a2e29afa2fa7e8b67d4cbeba66f1eae77}{bool \hyperlink{a01085_a2e29afa2fa7e8b67d4cbeba66f1eae77}{dragging\+\_\+}}\label{a01085_a2e29afa2fa7e8b67d4cbeba66f1eae77}

\begin{DoxyCompactList}\small\item\em currently dragging the slider? \end{DoxyCompactList}\item 
\hypertarget{a01085_af12f0e643edd89725ee07af2667e2a6d}{bool \hyperlink{a01085_af12f0e643edd89725ee07af2667e2a6d}{tracking\+\_\+}}\label{a01085_af12f0e643edd89725ee07af2667e2a6d}

\begin{DoxyCompactList}\small\item\em tracking on? \end{DoxyCompactList}\item 
\hypertarget{a01085_a83d2ea8059020245f42786569aa3cd70}{Q\+Palette \hyperlink{a01085_a83d2ea8059020245f42786569aa3cd70}{palette\+\_\+}}\label{a01085_a83d2ea8059020245f42786569aa3cd70}

\begin{DoxyCompactList}\small\item\em color group \end{DoxyCompactList}\item 
\hypertarget{a01085_a9f84ae056ff050dca26ef44ba2c2642f}{Q\+Pixmap \hyperlink{a01085_a9f84ae056ff050dca26ef44ba2c2642f}{pixmap\+\_\+}}\label{a01085_a9f84ae056ff050dca26ef44ba2c2642f}

\begin{DoxyCompactList}\small\item\em pixmap of the wheel \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 107 of file Qt\+Wheel.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a01085_a9cdfaa46b7f9f1d45c04d271b9f977dc}{\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}!angle\+Changed\+By@{angle\+Changed\+By}}
\index{angle\+Changed\+By@{angle\+Changed\+By}!A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}}
\subsubsection[{angle\+Changed\+By}]{\setlength{\rightskip}{0pt plus 5cm}void A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel\+::angle\+Changed\+By (
\begin{DoxyParamCaption}
\item[{double}]{\+\_\+angle}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [signal]}}}\label{a01085_a9cdfaa46b7f9f1d45c04d271b9f977dc}
The angle chaned by the relative {\ttfamily \+\_\+angle} (cf. \hyperlink{a01085_a2b82e4df03cea279c119b181573166f1}{clip()}).

{\itshape Note\+:} Do {\itshape not} use this signal together with \hyperlink{a01085_a9cdfaa46b7f9f1d45c04d271b9f977dc}{angle\+Changed\+By()}! The reason for this is that you cannot be sure in which order the you get the signals!

If you need both values the angle and the relative difference then use this signal and \hyperlink{a01085_abbb6e04aacf01ce5d780d1b884feb282}{angle()} or \hyperlink{a01085_a3e25678c5e10f41c7f73eabb7a0cd9c5}{angle\+Changed\+To()} and \hyperlink{a01085_a63407484a85afbb31bd5b44fd84b3e90}{diff\+Angle()} respectively! \hypertarget{a01085_a3e25678c5e10f41c7f73eabb7a0cd9c5}{\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}!angle\+Changed\+To@{angle\+Changed\+To}}
\index{angle\+Changed\+To@{angle\+Changed\+To}!A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}}
\subsubsection[{angle\+Changed\+To}]{\setlength{\rightskip}{0pt plus 5cm}void A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel\+::angle\+Changed\+To (
\begin{DoxyParamCaption}
\item[{double}]{\+\_\+angle}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [signal]}}}\label{a01085_a3e25678c5e10f41c7f73eabb7a0cd9c5}
The angle changed to the absolute {\ttfamily \+\_\+angle} (cf. \hyperlink{a01085_a2b82e4df03cea279c119b181573166f1}{clip()}). {\itshape Note\+:} Do not use together with \hyperlink{a01085_a9cdfaa46b7f9f1d45c04d271b9f977dc}{angle\+Changed\+By()} (see there)! \hypertarget{a01085_a2b82e4df03cea279c119b181573166f1}{\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}!clip@{clip}}
\index{clip@{clip}!A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}}
\subsubsection[{clip}]{\setlength{\rightskip}{0pt plus 5cm}double A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel\+::clip (
\begin{DoxyParamCaption}
\item[{double}]{\+\_\+angle}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{a01085_a2b82e4df03cea279c119b181573166f1}
Clips {\ttfamily \+\_\+angle} to range \mbox{[}0,2pi\mbox{[}. All \hyperlink{a01085_abbb6e04aacf01ce5d780d1b884feb282}{angle()}s provided by this widget are {\itshape unbounded} in a sense that a full turn of the wheel is 2pi {\itshape not} 0. As a consequence two full turns are 4pi, etc.

This methods clips the angle again \mbox{[}0,2pi\mbox{[} \begin{DoxySeeAlso}{See also}
\hyperlink{a01085_ab31cfb99b5898fec57e662b15fdf02fa}{deg()} 
\end{DoxySeeAlso}


Definition at line 443 of file Qt\+Wheel.\+cc.

\hypertarget{a01085_a63407484a85afbb31bd5b44fd84b3e90}{\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}!diff\+Angle@{diff\+Angle}}
\index{diff\+Angle@{diff\+Angle}!A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}}
\subsubsection[{diff\+Angle}]{\setlength{\rightskip}{0pt plus 5cm}double A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel\+::diff\+Angle (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{a01085_a63407484a85afbb31bd5b44fd84b3e90}
Get difference angle. You may call this method from a {\itshape slot} connected to \hyperlink{a01085_a3e25678c5e10f41c7f73eabb7a0cd9c5}{angle\+Changed\+To()} and obtain the difference angle (equal to the argument to \hyperlink{a01085_a9cdfaa46b7f9f1d45c04d271b9f977dc}{angle\+Changed\+By()}). 

Definition at line 150 of file Qt\+Wheel.\+hh.

\hypertarget{a01085_a8ff640766a85b3cf3bb63423b2314023}{\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}!gear\+Up@{gear\+Up}}
\index{gear\+Up@{gear\+Up}!A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}}
\subsubsection[{gear\+Up}]{\setlength{\rightskip}{0pt plus 5cm}void A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel\+::gear\+Up (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [signal]}}}\label{a01085_a8ff640766a85b3cf3bb63423b2314023}
The \hyperlink{a01085_aa93446cb454a42df471ec4ce58b224f9}{gear()} has been \char`\"{}shifted\char`\"{} by double clicking the widget. Up-\/shifting will {\itshape double} the value of \hyperlink{a01085_aa93446cb454a42df471ec4ce58b224f9}{gear()}. The signal is emitted {\itshape after} \hyperlink{a01085_aa93446cb454a42df471ec4ce58b224f9}{gear()} has been changed. \hypertarget{a01085_a2740c1672fdfa5889689d3e2b77ee643}{\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}!paint\+Event@{paint\+Event}}
\index{paint\+Event@{paint\+Event}!A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}}
\subsubsection[{paint\+Event}]{\setlength{\rightskip}{0pt plus 5cm}void A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel\+::paint\+Event (
\begin{DoxyParamCaption}
\item[{Q\+Paint\+Event $\ast$}]{\+\_\+e}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}}\label{a01085_a2740c1672fdfa5889689d3e2b77ee643}


reimplemented 

\begin{DoxyRefDesc}{Todo}
\item[\hyperlink{a03409__todo000007}{Todo}]\+: bit\+Blt(this,r.\+left(),r.\+top(),pixmap\+\_\+); \end{DoxyRefDesc}


Definition at line 283 of file Qt\+Wheel.\+cc.

\hypertarget{a01085_aca950f1841977949aaef4ff3d8639433}{\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}!set\+Gear@{set\+Gear}}
\index{set\+Gear@{set\+Gear}!A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}}
\subsubsection[{set\+Gear}]{\setlength{\rightskip}{0pt plus 5cm}void A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel\+::set\+Gear (
\begin{DoxyParamCaption}
\item[{double}]{\+\_\+g}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a01085_aca950f1841977949aaef4ff3d8639433}
How fast does \hyperlink{a01085_abbb6e04aacf01ce5d780d1b884feb282}{angle()} changed when the wheel is turned? The default setting is 1.\+0. Then \hyperlink{a01085_abbb6e04aacf01ce5d780d1b884feb282}{angle()} will be changed by pi (180 degrees) when dragging the wheel from one end of the widget to the other. In general this angular difference will be multiplied by \hyperlink{a01085_aa93446cb454a42df471ec4ce58b224f9}{gear()}, i.\+e. for values $>$1,0 the angle changes faster. 

Definition at line 186 of file Qt\+Wheel.\+hh.

\hypertarget{a01085_aba8d2bd7f76e5df2294faf9beb883c85}{\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}!set\+Tracking@{set\+Tracking}}
\index{set\+Tracking@{set\+Tracking}!A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel@{A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel}}
\subsubsection[{set\+Tracking}]{\setlength{\rightskip}{0pt plus 5cm}void A\+C\+G\+::\+Qt\+Widgets\+::\+Qt\+Wheel\+::set\+Tracking (
\begin{DoxyParamCaption}
\item[{bool}]{\+\_\+b}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a01085_aba8d2bd7f76e5df2294faf9beb883c85}
Enables wheel tracking (default\+: {\itshape true})

If tracking is enabled, then the \hyperlink{a01085}{Qt\+Wheel} emits signals whenever the it is dragged. Otherwise signals are emitted only when a dragging process is finished. 

Definition at line 175 of file Qt\+Wheel.\+hh.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
A\+C\+G/\+Qt\+Widgets/Qt\+Wheel.\+hh\item 
A\+C\+G/\+Qt\+Widgets/Qt\+Wheel.\+cc\end{DoxyCompactItemize}
