Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 4272c97b1af3db3f39a3b697bcba7e48 > files > 946

albumshaper-2.1-7mdv2010.1.x86_64.rpm

<!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.cpp 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&nbsp;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&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>cursors.cpp File Reference</h1><code>#include &lt;qcursor.h&gt;</code><br/>
<code>#include &lt;qpixmap.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="cursors_8h_source.html">cursors.h</a>&quot;</code><br/>
<code>#include &quot;../../resources/cursors/crossCursor.xpm&quot;</code><br/>
<code>#include &quot;../../resources/cursors/moveSelectionCursor.xpm&quot;</code><br/>
<code>#include &quot;../../resources/cursors/moveHorCursor.xpm&quot;</code><br/>
<code>#include &quot;../../resources/cursors/moveVertCursor.xpm&quot;</code><br/>
<code>#include &quot;../../resources/cursors/moveTLCursor.xpm&quot;</code><br/>
<code>#include &quot;../../resources/cursors/moveTRCursor.xpm&quot;</code><br/>
<code>#include &quot;../../resources/cursors/scaleSelectionCursor.xpm&quot;</code><br/>
<code>#include &quot;../../resources/cursors/rotateCursor.xpm&quot;</code><br/>
<code>#include &quot;../../resources/cursors/targetCursor.xpm&quot;</code><br/>
<div class="dynheader">
Include dependency graph for cursors.cpp:</div>
<div class="dynsection">
</div>

<p><a href="cursors_8cpp_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cursors_8cpp.html#a764dca27451cf6c1c418e7e753fc336c">loadCursors</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const QCursor &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cursors_8cpp.html#a8d89fd03db7e35090175ec42e8af8f3f">getCursor</a> (<a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647">CUSTOM_CURSOR_TYPE</a> type)</td></tr>
<tr><td colspan="2"><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QCursor **&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a> = new QCursor*[CUSTOM_CURSOR_COUNT]</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a8d89fd03db7e35090175ec42e8af8f3f"></a><!-- doxytag: member="cursors.cpp::getCursor" ref="a8d89fd03db7e35090175ec42e8af8f3f" args="(CUSTOM_CURSOR_TYPE type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QCursor&amp; getCursor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="cursors_8h.html#a384a874a43b4618a4c20506728f1c647">CUSTOM_CURSOR_TYPE</a>&nbsp;</td>
          <td class="paramname"> <em>type</em></td>
          <td>&nbsp;)&nbsp;</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 &lt; 0 || type &gt;= <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.cpp::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>&nbsp;)&nbsp;</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>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a1590c10a41dc99ba907448c6cb171d25"></a><!-- doxytag: member="cursors.cpp::customCursors" ref="a1590c10a41dc99ba907448c6cb171d25" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QCursor** <a class="el" href="cursors_8cpp.html#a1590c10a41dc99ba907448c6cb171d25">customCursors</a> = new QCursor*[CUSTOM_CURSOR_COUNT]</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="cursors_8cpp_source.html#l00032">32</a> of file <a class="el" href="cursors_8cpp_source.html">cursors.cpp</a>.</p>

<p>Referenced by <a class="el" href="cursors_8cpp_source.html#l00052">getCursor()</a>, and <a class="el" href="cursors_8cpp_source.html#l00034">loadCursors()</a>.</p>

</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>