<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>AlbumShaper: cursors.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.2 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>cursors.h File Reference</h1><div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dynsection"> </div> <p><a href="cursors_8h_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Enumerations</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647">CUSTOM_CURSOR_TYPE</a> { <br/> <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647ac7f7eb79f43d18a0d6f51be79e78f012">CROSS_CURSOR</a> = 0, <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647ad9da03696a38d1604e9c434702bd04c6">MOVE_SELECTION_CURSOR</a>, <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a8b659aefdfad1b15a9e9dcbd7c524f25">MOVE_HOR_CURSOR</a>, <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a75a322d3eb727e1c69e4a945946ad927">MOVE_VERT_CURSOR</a>, <br/> <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647abe2f77ed8f4adc56663d96359e7a0a72">MOVE_TL_CURSOR</a>, <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a155601d9f05c16bed834635d5d794f88">MOVE_TR_CURSOR</a>, <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a0e8b329bab8d2e425993ca936df878ea">SCALE_SELECTION_CURSOR</a>, <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a2db329c6bb1f6299b9b2eabfa395c29f">ROTATE_CURSOR</a>, <br/> <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a825ccc8a463af00f9a04b93f28bd3d34">TARGET_CURSOR</a>, <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a275cda9c2658fac7b62ea960839d365f">DEFAULT_CURSOR</a>, <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a8fde57ef9823810c4b45519c6a0005ab">CUSTOM_CURSOR_COUNT</a> <br/> }</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><p>custom cursor types </p> <a href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647">More...</a><br/></td></tr> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cursors_8h.html#a764dca27451cf6c1c418e7e753fc336c">loadCursors</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">const QCursor & </td><td class="memItemRight" valign="bottom"><a class="el" href="cursors_8h.html#a8d89fd03db7e35090175ec42e8af8f3f">getCursor</a> (<a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647">CUSTOM_CURSOR_TYPE</a> type)</td></tr> </table> <hr/><h2>Enumeration Type Documentation</h2> <a class="anchor" id="a384a874a43b4618a4c20506728f1c647"></a><!-- doxytag: member="cursors.h::CUSTOM_CURSOR_TYPE" ref="a384a874a43b4618a4c20506728f1c647" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647">CUSTOM_CURSOR_TYPE</a></td> </tr> </table> </div> <div class="memdoc"> <p>custom cursor types </p> <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" id="a384a874a43b4618a4c20506728f1c647ac7f7eb79f43d18a0d6f51be79e78f012"></a><!-- doxytag: member="CROSS_CURSOR" ref="a384a874a43b4618a4c20506728f1c647ac7f7eb79f43d18a0d6f51be79e78f012" args="" -->CROSS_CURSOR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a384a874a43b4618a4c20506728f1c647ad9da03696a38d1604e9c434702bd04c6"></a><!-- doxytag: member="MOVE_SELECTION_CURSOR" ref="a384a874a43b4618a4c20506728f1c647ad9da03696a38d1604e9c434702bd04c6" args="" -->MOVE_SELECTION_CURSOR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a384a874a43b4618a4c20506728f1c647a8b659aefdfad1b15a9e9dcbd7c524f25"></a><!-- doxytag: member="MOVE_HOR_CURSOR" ref="a384a874a43b4618a4c20506728f1c647a8b659aefdfad1b15a9e9dcbd7c524f25" args="" -->MOVE_HOR_CURSOR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a384a874a43b4618a4c20506728f1c647a75a322d3eb727e1c69e4a945946ad927"></a><!-- doxytag: member="MOVE_VERT_CURSOR" ref="a384a874a43b4618a4c20506728f1c647a75a322d3eb727e1c69e4a945946ad927" args="" -->MOVE_VERT_CURSOR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a384a874a43b4618a4c20506728f1c647abe2f77ed8f4adc56663d96359e7a0a72"></a><!-- doxytag: member="MOVE_TL_CURSOR" ref="a384a874a43b4618a4c20506728f1c647abe2f77ed8f4adc56663d96359e7a0a72" args="" -->MOVE_TL_CURSOR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a384a874a43b4618a4c20506728f1c647a155601d9f05c16bed834635d5d794f88"></a><!-- doxytag: member="MOVE_TR_CURSOR" ref="a384a874a43b4618a4c20506728f1c647a155601d9f05c16bed834635d5d794f88" args="" -->MOVE_TR_CURSOR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a384a874a43b4618a4c20506728f1c647a0e8b329bab8d2e425993ca936df878ea"></a><!-- doxytag: member="SCALE_SELECTION_CURSOR" ref="a384a874a43b4618a4c20506728f1c647a0e8b329bab8d2e425993ca936df878ea" args="" -->SCALE_SELECTION_CURSOR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a384a874a43b4618a4c20506728f1c647a2db329c6bb1f6299b9b2eabfa395c29f"></a><!-- doxytag: member="ROTATE_CURSOR" ref="a384a874a43b4618a4c20506728f1c647a2db329c6bb1f6299b9b2eabfa395c29f" args="" -->ROTATE_CURSOR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a384a874a43b4618a4c20506728f1c647a825ccc8a463af00f9a04b93f28bd3d34"></a><!-- doxytag: member="TARGET_CURSOR" ref="a384a874a43b4618a4c20506728f1c647a825ccc8a463af00f9a04b93f28bd3d34" args="" -->TARGET_CURSOR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a384a874a43b4618a4c20506728f1c647a275cda9c2658fac7b62ea960839d365f"></a><!-- doxytag: member="DEFAULT_CURSOR" ref="a384a874a43b4618a4c20506728f1c647a275cda9c2658fac7b62ea960839d365f" args="" -->DEFAULT_CURSOR</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="a384a874a43b4618a4c20506728f1c647a8fde57ef9823810c4b45519c6a0005ab"></a><!-- doxytag: member="CUSTOM_CURSOR_COUNT" ref="a384a874a43b4618a4c20506728f1c647a8fde57ef9823810c4b45519c6a0005ab" args="" -->CUSTOM_CURSOR_COUNT</em> </td><td> </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="cursors_8h_source.html#l00015">15</a> of file <a class="el" href="cursors_8h_source.html">cursors.h</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00016"></a>00016 { <a name="l00017"></a>00017 <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647ac7f7eb79f43d18a0d6f51be79e78f012">CROSS_CURSOR</a> = 0, <a name="l00018"></a>00018 <a name="l00019"></a>00019 <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647ad9da03696a38d1604e9c434702bd04c6">MOVE_SELECTION_CURSOR</a>, <a name="l00020"></a>00020 <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a8b659aefdfad1b15a9e9dcbd7c524f25">MOVE_HOR_CURSOR</a>, <a name="l00021"></a>00021 <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a75a322d3eb727e1c69e4a945946ad927">MOVE_VERT_CURSOR</a>, <a name="l00022"></a>00022 <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647abe2f77ed8f4adc56663d96359e7a0a72">MOVE_TL_CURSOR</a>, <a name="l00023"></a>00023 <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a155601d9f05c16bed834635d5d794f88">MOVE_TR_CURSOR</a>, <a name="l00024"></a>00024 <a name="l00025"></a>00025 <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a0e8b329bab8d2e425993ca936df878ea">SCALE_SELECTION_CURSOR</a>, <a name="l00026"></a>00026 <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a2db329c6bb1f6299b9b2eabfa395c29f">ROTATE_CURSOR</a>, <a name="l00027"></a>00027 <a name="l00028"></a>00028 <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a825ccc8a463af00f9a04b93f28bd3d34">TARGET_CURSOR</a>, <a name="l00029"></a>00029 <a name="l00030"></a>00030 <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a275cda9c2658fac7b62ea960839d365f">DEFAULT_CURSOR</a>, <a name="l00031"></a>00031 <span class="comment">//-----------------</span> <a name="l00032"></a>00032 <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a8fde57ef9823810c4b45519c6a0005ab">CUSTOM_CURSOR_COUNT</a> <a name="l00033"></a>00033 } <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647" title="custom cursor types">CUSTOM_CURSOR_TYPE</a>; </pre></div></p> </div> </div> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a8d89fd03db7e35090175ec42e8af8f3f"></a><!-- doxytag: member="cursors.h::getCursor" ref="a8d89fd03db7e35090175ec42e8af8f3f" args="(CUSTOM_CURSOR_TYPE type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const QCursor& getCursor </td> <td>(</td> <td class="paramtype"><a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647">CUSTOM_CURSOR_TYPE</a> </td> <td class="paramname"> <em>type</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="cursors_8cpp_source.html#l00052">52</a> of file <a class="el" href="cursors_8cpp_source.html">cursors.cpp</a>.</p> <p>References <a class="el" href="cursors_8h_source.html#l00032">CUSTOM_CURSOR_COUNT</a>, <a class="el" href="cursors_8cpp_source.html#l00032">customCursors</a>, and <a class="el" href="cursors_8h_source.html#l00030">DEFAULT_CURSOR</a>.</p> <p>Referenced by <a class="el" href="histogramInterface_8cpp_source.html#l00036">HistogramInterface::HistogramInterface()</a>, <a class="el" href="splitViewInterface_8cpp_source.html#l00322">SplitViewInterface::mouseMoveEvent()</a>, <a class="el" href="selectionPlacementInterface_8cpp_source.html#l00230">SelectionPlacementInterface::mouseMoveEvent()</a>, <a class="el" href="histogramInterface_8cpp_source.html#l00368">HistogramInterface::mouseMoveEvent()</a>, <a class="el" href="selectionPlacementInterface_8cpp_source.html#l00216">SelectionPlacementInterface::mousePressEvent()</a>, <a class="el" href="histogramInterface_8cpp_source.html#l00406">HistogramInterface::mouseReleaseEvent()</a>, and <a class="el" href="selectionInterface_8cpp_source.html#l00515">SelectionInterface::updateCursorShape()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00053"></a>00053 { <a name="l00054"></a>00054 <span class="keywordflow">if</span>( type < 0 || type >= <a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a8fde57ef9823810c4b45519c6a0005ab">CUSTOM_CURSOR_COUNT</a> ) <a name="l00055"></a>00055 <span class="keywordflow">return</span> *<a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[<a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a275cda9c2658fac7b62ea960839d365f">DEFAULT_CURSOR</a>]; <a name="l00056"></a>00056 <span class="keywordflow">else</span> <a name="l00057"></a>00057 <span class="keywordflow">return</span> *<a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[type]; <a name="l00058"></a>00058 } </pre></div></p> </div> </div> <a class="anchor" id="a764dca27451cf6c1c418e7e753fc336c"></a><!-- doxytag: member="cursors.h::loadCursors" ref="a764dca27451cf6c1c418e7e753fc336c" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void loadCursors </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="cursors_8cpp_source.html#l00034">34</a> of file <a class="el" href="cursors_8cpp_source.html">cursors.cpp</a>.</p> <p>References <a class="el" href="cursors_8h_source.html#l00017">CROSS_CURSOR</a>, <a class="el" href="cursors_8cpp_source.html#l00032">customCursors</a>, <a class="el" href="cursors_8h_source.html#l00030">DEFAULT_CURSOR</a>, <a class="el" href="cursors_8h_source.html#l00020">MOVE_HOR_CURSOR</a>, <a class="el" href="cursors_8h_source.html#l00019">MOVE_SELECTION_CURSOR</a>, <a class="el" href="cursors_8h_source.html#l00022">MOVE_TL_CURSOR</a>, <a class="el" href="cursors_8h_source.html#l00023">MOVE_TR_CURSOR</a>, <a class="el" href="cursors_8h_source.html#l00021">MOVE_VERT_CURSOR</a>, <a class="el" href="cursors_8h_source.html#l00026">ROTATE_CURSOR</a>, <a class="el" href="cursors_8h_source.html#l00025">SCALE_SELECTION_CURSOR</a>, and <a class="el" href="cursors_8h_source.html#l00028">TARGET_CURSOR</a>.</p> <p>Referenced by <a class="el" href="main_8cpp_source.html#l00050">main()</a>.</p> <p><div class="fragment"><pre class="fragment"><a name="l00035"></a>00035 { <a name="l00036"></a>00036 <a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[<a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647ac7f7eb79f43d18a0d6f51be79e78f012">CROSS_CURSOR</a>] = <span class="keyword">new</span> QCursor( QPixmap( (<span class="keyword">const</span> <span class="keywordtype">char</span>**)crossCursor_xpm)); <a name="l00037"></a>00037 <a name="l00038"></a>00038 <a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[<a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647ad9da03696a38d1604e9c434702bd04c6">MOVE_SELECTION_CURSOR</a>] = <span class="keyword">new</span> QCursor( QPixmap( (<span class="keyword">const</span> <span class="keywordtype">char</span>**)moveSelectionCursor_xpm)); <a name="l00039"></a>00039 <a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[<a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a8b659aefdfad1b15a9e9dcbd7c524f25">MOVE_HOR_CURSOR</a>] = <span class="keyword">new</span> QCursor( QPixmap( (<span class="keyword">const</span> <span class="keywordtype">char</span>**)moveHorCursor_xpm)); <a name="l00040"></a>00040 <a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[<a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a75a322d3eb727e1c69e4a945946ad927">MOVE_VERT_CURSOR</a>] = <span class="keyword">new</span> QCursor( QPixmap( (<span class="keyword">const</span> <span class="keywordtype">char</span>**)moveVertCursor_xpm)); <a name="l00041"></a>00041 <a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[<a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647abe2f77ed8f4adc56663d96359e7a0a72">MOVE_TL_CURSOR</a>] = <span class="keyword">new</span> QCursor( QPixmap( (<span class="keyword">const</span> <span class="keywordtype">char</span>**)moveTLCursor_xpm)); <a name="l00042"></a>00042 <a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[<a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a155601d9f05c16bed834635d5d794f88">MOVE_TR_CURSOR</a>] = <span class="keyword">new</span> QCursor( QPixmap( (<span class="keyword">const</span> <span class="keywordtype">char</span>**)moveTRCursor_xpm)); <a name="l00043"></a>00043 <a name="l00044"></a>00044 <a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[<a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a0e8b329bab8d2e425993ca936df878ea">SCALE_SELECTION_CURSOR</a>] = <span class="keyword">new</span> QCursor( QPixmap( (<span class="keyword">const</span> <span class="keywordtype">char</span>**)scaleSelectionCursor_xpm)); <a name="l00045"></a>00045 <a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[<a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a2db329c6bb1f6299b9b2eabfa395c29f">ROTATE_CURSOR</a>] = <span class="keyword">new</span> QCursor( QPixmap( (<span class="keyword">const</span> <span class="keywordtype">char</span>**)rotateCursor_xpm)); <a name="l00046"></a>00046 <a name="l00047"></a>00047 <a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[<a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a825ccc8a463af00f9a04b93f28bd3d34">TARGET_CURSOR</a>] = <span class="keyword">new</span> QCursor( QPixmap( (<span class="keyword">const</span> <span class="keywordtype">char</span>**)targetCursor_xpm)); <a name="l00048"></a>00048 <a name="l00049"></a>00049 <a class="code" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a>[<a class="code" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647a275cda9c2658fac7b62ea960839d365f">DEFAULT_CURSOR</a>] = <span class="keyword">new</span> QCursor( Qt::ArrowCursor ); <a name="l00050"></a>00050 } </pre></div></p> </div> </div> </div> <hr size="1"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> </body> </html>