1083 lines
150 KiB
HTML
1083 lines
150 KiB
HTML
<!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"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.9.1"/>
|
|
<title>discoverpixy: common/app/screen_photomode_save.c File Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">discoverpixy
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.9.1 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>Globals</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_bdd9a5d540de89e9fe90efdfc6973a4f.html">common</a></li><li class="navelem"><a class="el" href="dir_99a8943037ff3844556e6a5d529fec0c.html">app</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Data Structures</a> |
|
|
<a href="#define-members">Macros</a> |
|
|
<a href="#typedef-members">Typedefs</a> |
|
|
<a href="#enum-members">Enumerations</a> |
|
|
<a href="#func-members">Functions</a> |
|
|
<a href="#var-members">Variables</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">screen_photomode_save.c File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><code>#include "<a class="el" href="screen__photomode__save_8h_source.html">screen_photomode_save.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="filesystem_8h_source.html">filesystem.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="button_8h_source.html">button.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="tft_8h_source.html">tft.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="touch_8h_source.html">touch.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="pixy_8h_source.html">pixy.h</a>"</code><br />
|
|
<code>#include "<a class="el" href="pixy__frame_8h_source.html">pixy_frame.h</a>"</code><br />
|
|
<code>#include <stdlib.h></code><br />
|
|
<code>#include <string.h></code><br />
|
|
</div><div class="textblock"><div class="dynheader">
|
|
Include dependency graph for screen_photomode_save.c:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="screen__photomode__save_8c__incl.png" border="0" usemap="#common_2app_2screen__photomode__save_8c" alt=""/></div>
|
|
<map name="common_2app_2screen__photomode__save_8c" id="common_2app_2screen__photomode__save_8c">
|
|
<area shape="rect" id="node2" href="screen__photomode__save_8h.html" title="screen_photomode_save.h" alt="" coords="5,95,181,121"/><area shape="rect" id="node6" href="filesystem_8h.html" title="filesystem.h" alt="" coords="402,169,494,196"/><area shape="rect" id="node8" href="button_8h.html" title="button.h" alt="" coords="256,95,325,121"/><area shape="rect" id="node9" href="touch_8h.html" title="touch.h" alt="" coords="261,169,326,196"/><area shape="rect" id="node10" href="tft_8h.html" title="tft.h" alt="" coords="193,169,237,196"/><area shape="rect" id="node11" href="pixy_8h.html" title="pixy.h" alt="" coords="571,95,627,121"/><area shape="rect" id="node13" href="pixy__frame_8h.html" title="pixy_frame.h" alt="" coords="451,95,547,121"/><area shape="rect" id="node3" href="screen_8h.html" title="screen.h" alt="" coords="79,169,151,196"/><area shape="rect" id="node12" href="pixydefs_8h.html" title="pixydefs.h" alt="" coords="621,169,702,196"/></map>
|
|
</div>
|
|
</div>
|
|
<p><a href="screen__photomode__save_8c_source.html">Go to the source code of this file.</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
|
Data Structures</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY_S</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
|
|
Macros</h2></td></tr>
|
|
<tr class="memitem:a2877431286fdd28a2ecd4ca764565c15"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>   5</td></tr>
|
|
<tr class="separator:a2877431286fdd28a2ecd4ca764565c15"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
|
|
Typedefs</h2></td></tr>
|
|
<tr class="memitem:ad24f527173a4d19eccd1b85180436b29"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY_S</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#ad24f527173a4d19eccd1b85180436b29">FILE_LIST_ENTRY</a></td></tr>
|
|
<tr class="separator:ad24f527173a4d19eccd1b85180436b29"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
|
|
Enumerations</h2></td></tr>
|
|
<tr class="memitem:a06fc87d81c62e9abb8790b6e5713c55b"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom">{ <br />
|
|
  <a class="el" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba2e804b7c8163d212e6231f5228f73ce9">init</a>,
|
|
<a class="el" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed">error</a>,
|
|
<a class="el" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba222b1a42a2963ceeb4328fb55c40f37e">showlist</a>,
|
|
<a class="el" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543">picking</a>,
|
|
<br />
|
|
  <a class="el" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05">saving</a>,
|
|
<a class="el" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199">done</a>
|
|
<br />
|
|
}</td></tr>
|
|
<tr class="separator:a06fc87d81c62e9abb8790b6e5713c55b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:a26b5a87b61eb1cd0888fdfc12a91a6d7"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a26b5a87b61eb1cd0888fdfc12a91a6d7">b_back_cb</a> (void *button)</td></tr>
|
|
<tr class="separator:a26b5a87b61eb1cd0888fdfc12a91a6d7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3d1decbb81b0f181eb0561c0f5f8fe3c"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a3d1decbb81b0f181eb0561c0f5f8fe3c">touchCB</a> (void *touchArea, <a class="el" href="group__touch.html#gab6037f32eebdf297a7d601a1e6c87768">TOUCH_ACTION</a> triggeredAction)</td></tr>
|
|
<tr class="separator:a3d1decbb81b0f181eb0561c0f5f8fe3c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a3017cd14eca2b9e67a69e7ea559b5eaa"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa">enter</a> (void *<a class="el" href="screen__calibrate_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a>)</td></tr>
|
|
<tr class="separator:a3017cd14eca2b9e67a69e7ea559b5eaa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5e8f84ee8ff4bf827775c38ae6752509"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a5e8f84ee8ff4bf827775c38ae6752509">update</a> (void *<a class="el" href="screen__calibrate_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a>)</td></tr>
|
|
<tr class="separator:a5e8f84ee8ff4bf827775c38ae6752509"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acd1409088e83cf2a8ba2cf96dd9b52f8"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8">leave</a> (void *<a class="el" href="screen__calibrate_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a>)</td></tr>
|
|
<tr class="separator:acd1409088e83cf2a8ba2cf96dd9b52f8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga151b30d2b85d5e9fdab4abecdb165207"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__screen.html#gaf7783b8728d6d218aa9e3b29eaf9689c">SCREEN_STRUCT</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__photomodesave.html#ga151b30d2b85d5e9fdab4abecdb165207">get_screen_photomodesave</a> ()</td></tr>
|
|
<tr class="separator:ga151b30d2b85d5e9fdab4abecdb165207"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
|
|
Variables</h2></td></tr>
|
|
<tr class="memitem:ae5d8f6a72bbdbe109bc151bfef8ac9a6"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a></td></tr>
|
|
<tr class="separator:ae5d8f6a72bbdbe109bc151bfef8ac9a6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a969b249abfb1776e2cc9567db889b83f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html">TOUCH_AREA_STRUCT</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a></td></tr>
|
|
<tr class="separator:a969b249abfb1776e2cc9567db889b83f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a18f32ab8e9f73f5ff658f876ba7cb95f"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a18f32ab8e9f73f5ff658f876ba7cb95f">num_files_ok</a></td></tr>
|
|
<tr class="separator:a18f32ab8e9f73f5ff658f876ba7cb95f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5b355141d49e5da4140613bd88d73549"><td class="memItemLeft" align="right" valign="top">static enum { ... }  </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a></td></tr>
|
|
<tr class="separator:a5b355141d49e5da4140613bd88d73549"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a77e479b1ae98529fa834688a147ca5af"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a77e479b1ae98529fa834688a147ca5af">fontheight</a></td></tr>
|
|
<tr class="separator:a77e479b1ae98529fa834688a147ca5af"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2e097772251828c6d76b32677269b7ab"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a2e097772251828c6d76b32677269b7ab">liststart</a></td></tr>
|
|
<tr class="separator:a2e097772251828c6d76b32677269b7ab"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a948204bf251793107f9095a4235f9c1e"><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a948204bf251793107f9095a4235f9c1e">picked_file</a></td></tr>
|
|
<tr class="separator:a948204bf251793107f9095a4235f9c1e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad03f8d4c2501ad76eb27c418b7c68d0a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="screen__photomode__save_8c.html#ad24f527173a4d19eccd1b85180436b29">FILE_LIST_ENTRY</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#ad03f8d4c2501ad76eb27c418b7c68d0a">files_ok</a></td></tr>
|
|
<tr class="separator:ad03f8d4c2501ad76eb27c418b7c68d0a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a30a7b9e347f9114242f4f4fffe2c9626"><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a30a7b9e347f9114242f4f4fffe2c9626">nomatch_text</a> []</td></tr>
|
|
<tr class="separator:a30a7b9e347f9114242f4f4fffe2c9626"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acd7de4ca4cce429ec77297ab370bb849"><td class="memItemLeft" align="right" valign="top">static unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#acd7de4ca4cce429ec77297ab370bb849">bmpheader_data</a> [0x7A]</td></tr>
|
|
<tr class="separator:acd7de4ca4cce429ec77297ab370bb849"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a939fdd806f427cc8505ed817e28cce9d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__screen.html#gaf7783b8728d6d218aa9e3b29eaf9689c">SCREEN_STRUCT</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="screen__photomode__save_8c.html#a939fdd806f427cc8505ed817e28cce9d">screen</a></td></tr>
|
|
<tr class="separator:a939fdd806f427cc8505ed817e28cce9d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<h2 class="groupheader">Macro Definition Documentation</h2>
|
|
<a class="anchor" id="a2877431286fdd28a2ecd4ca764565c15"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define X_OFS   5</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Typedef Documentation</h2>
|
|
<a class="anchor" id="ad24f527173a4d19eccd1b85180436b29"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">typedef struct <a class="el" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY_S</a> <a class="el" href="screen__photomode__save_8c.html#ad24f527173a4d19eccd1b85180436b29">FILE_LIST_ENTRY</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Enumeration Type Documentation</h2>
|
|
<a class="anchor" id="a06fc87d81c62e9abb8790b6e5713c55b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">anonymous enum</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<table class="fieldtable">
|
|
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a06fc87d81c62e9abb8790b6e5713c55ba2e804b7c8163d212e6231f5228f73ce9"></a>init </td><td class="fielddoc">
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a class="anchor" id="a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed"></a>error </td><td class="fielddoc">
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a class="anchor" id="a06fc87d81c62e9abb8790b6e5713c55ba222b1a42a2963ceeb4328fb55c40f37e"></a>showlist </td><td class="fielddoc">
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a class="anchor" id="a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543"></a>picking </td><td class="fielddoc">
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a class="anchor" id="a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05"></a>saving </td><td class="fielddoc">
|
|
</td></tr>
|
|
<tr><td class="fieldname"><a class="anchor" id="a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199"></a>done </td><td class="fielddoc">
|
|
</td></tr>
|
|
</table>
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00036">36</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {<a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba2e804b7c8163d212e6231f5228f73ce9">init</a>, <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed">error</a>, <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba222b1a42a2963ceeb4328fb55c40f37e">showlist</a>, <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543">picking</a>, <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05">saving</a>, <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199">done</a>} <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a>; <span class="comment">//Current state of the screen state machine</span></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba222b1a42a2963ceeb4328fb55c40f37e"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba222b1a42a2963ceeb4328fb55c40f37e">showlist</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543">picking</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed">error</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05">saving</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a5b355141d49e5da4140613bd88d73549"><div class="ttname"><a href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a></div><div class="ttdeci">static enum @0 state</div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba2e804b7c8163d212e6231f5228f73ce9"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba2e804b7c8163d212e6231f5228f73ce9">init</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199">done</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
</div><!-- fragment -->
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="a26b5a87b61eb1cd0888fdfc12a91a6d7"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void b_back_cb </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>button</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00030">30</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> {</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="group__screen.html#ga8e14bc7ee0214e2926965f9bdb54a866">gui_screen_back</a>();</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> }</div>
|
|
<div class="ttc" id="group__screen_html_ga8e14bc7ee0214e2926965f9bdb54a866"><div class="ttname"><a href="group__screen.html#ga8e14bc7ee0214e2926965f9bdb54a866">gui_screen_back</a></div><div class="ttdeci">bool gui_screen_back()</div><div class="ttdef"><b>Definition:</b> <a href="screen_8c_source.html#l00085">screen.c:85</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="screen__photomode__save_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_cgraph.png" border="0" usemap="#screen__photomode__save_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_cgraph" alt=""/></div>
|
|
<map name="screen__photomode__save_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_cgraph" id="screen__photomode__save_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_cgraph">
|
|
<area shape="rect" id="node2" href="group__screen.html#ga8e14bc7ee0214e2926965f9bdb54a866" title="gui_screen_back" alt="" coords="139,5,259,32"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
<p><div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="screen__photomode__save_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_icgraph.png" border="0" usemap="#screen__photomode__save_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_icgraph" alt=""/></div>
|
|
<map name="screen__photomode__save_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_icgraph" id="screen__photomode__save_8c_a26b5a87b61eb1cd0888fdfc12a91a6d7_icgraph">
|
|
<area shape="rect" id="node2" href="screen__photomode__save_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa" title="enter" alt="" coords="139,5,189,32"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3017cd14eca2b9e67a69e7ea559b5eaa"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void enter </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>screen</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00108">108</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> {</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="group__tft.html#ga6a2e3b3878ae5eea184d4c3ffe091b78">tft_clear</a>(<a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>);</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="preprocessor">#define X_OFS 5</span></div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="comment">//Back button</span></div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = <a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>; <span class="comment">//Start X of Button</span></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = 210; <span class="comment">//Start Y of Button</span></div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>; <span class="comment">//Auto Calculate X2 with String Width</span></div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <a class="code" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">base</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a>; <span class="comment">//Auto Calculate Y2 with String Height</span></div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">txtcolor</a> = <a class="code" href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a>; <span class="comment">//Set foreground color</span></div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">bgcolor</a> = <a class="code" href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a>(0xAE1010); <span class="comment">//Set background color (Don't take 255 or 0 on at least one channel, to make shadows possible)</span></div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">font</a> = 0; <span class="comment">//Select Font</span></div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">text</a> = <span class="stringliteral">"Back"</span>; <span class="comment">//Set Text (For formatted strings take sprintf)</span></div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>.<a class="code" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">callback</a> = <a class="code" href="screen__photomode__save_8c.html#a26b5a87b61eb1cd0888fdfc12a91a6d7">b_back_cb</a>; <span class="comment">//Call b_back_cb as Callback</span></div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a>(&<a class="code" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>); <span class="comment">//Register Button (and run the callback from now on)</span></div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> = <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba2e804b7c8163d212e6231f5228f73ce9">init</a>; <span class="comment">//Start with the init state</span></div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="screen__photomode__save_8c.html#a77e479b1ae98529fa834688a147ca5af">fontheight</a> = <a class="code" href="group__tft.html#gaea9f6a88da91949befe52cd4ed000c5d">tft_font_height</a>(0) + 2; <span class="comment">//Save the height of the used font, for fast access</span></div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="screen__photomode__save_8c.html#ad03f8d4c2501ad76eb27c418b7c68d0a">files_ok</a> = NULL; <span class="comment">//initialize the linked list with 0 elements</span></div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="screen__photomode__save_8c.html#a18f32ab8e9f73f5ff658f876ba7cb95f">num_files_ok</a> = 0; <span class="comment">//we have zero! elements</span></div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> }</div>
|
|
<div class="ttc" id="group__tft_html_gaea9f6a88da91949befe52cd4ed000c5d"><div class="ttname"><a href="group__tft.html#gaea9f6a88da91949befe52cd4ed000c5d">tft_font_height</a></div><div class="ttdeci">uint8_t tft_font_height(uint8_t fontnum)</div><div class="ttdef"><b>Definition:</b> <a href="tft_8c_source.html#l00087">tft.c:87</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_a16343090e80c4472521560f30113d96c"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a16343090e80c4472521560f30113d96c">BUTTON_STRUCT::text</a></div><div class="ttdeci">const char * text</div><div class="ttdoc">The label of the button. </div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00061">button.h:61</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_aaf5a5af411fa69950e0b4415c8089c8b"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aaf5a5af411fa69950e0b4415c8089c8b">BUTTON_STRUCT::txtcolor</a></div><div class="ttdeci">uint16_t txtcolor</div><div class="ttdoc">The 16-bit text color. </div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00059">button.h:59</a></div></div>
|
|
<div class="ttc" id="group__button_html_ga0cc6f7717df9fbdc0f33efb88720a639"><div class="ttname"><a href="group__button.html#ga0cc6f7717df9fbdc0f33efb88720a639">AUTO</a></div><div class="ttdeci">#define AUTO</div><div class="ttdoc">Use this value instead of x2, y2 in the BUTTON_STRUCT to autocalculate the button width/height...</div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00065">button.h:65</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_a47ada631c22a9d40348069145654f255"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">TOUCH_AREA_STRUCT::y1</a></div><div class="ttdeci">uint16_t y1</div><div class="ttdoc">Top Left Y-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00075">touch.h:75</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a2877431286fdd28a2ecd4ca764565c15"><div class="ttname"><a href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a></div><div class="ttdeci">#define X_OFS</div></div>
|
|
<div class="ttc" id="group__button_html_ga64d5d2aaff2c917e5d43e7ed849607de"><div class="ttname"><a href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de">gui_button_add</a></div><div class="ttdeci">bool gui_button_add(BUTTON_STRUCT *button)</div><div class="ttdef"><b>Definition:</b> <a href="button_8c_source.html#l00133">button.c:133</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_aedb5fdfe3c1d1a915b668ba7f3950753"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">TOUCH_AREA_STRUCT::x1</a></div><div class="ttdeci">uint16_t x1</div><div class="ttdoc">Top Left X-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00074">touch.h:74</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a26b5a87b61eb1cd0888fdfc12a91a6d7"><div class="ttname"><a href="screen__photomode__save_8c.html#a26b5a87b61eb1cd0888fdfc12a91a6d7">b_back_cb</a></div><div class="ttdeci">static void b_back_cb(void *button)</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00030">screen_photomode_save.c:30</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_aebb27fad2492ea7aa81895d0ede61fcf"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#aebb27fad2492ea7aa81895d0ede61fcf">BUTTON_STRUCT::bgcolor</a></div><div class="ttdeci">uint16_t bgcolor</div><div class="ttdoc">The 16-bit background color of the button. </div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00057">button.h:57</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a77e479b1ae98529fa834688a147ca5af"><div class="ttname"><a href="screen__photomode__save_8c.html#a77e479b1ae98529fa834688a147ca5af">fontheight</a></div><div class="ttdeci">static int fontheight</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00037">screen_photomode_save.c:37</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_adf10d197299522577e67d366877bdd3f"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adf10d197299522577e67d366877bdd3f">BUTTON_STRUCT::base</a></div><div class="ttdeci">TOUCH_AREA_STRUCT base</div><div class="ttdoc">Basic geometry of the button. You only need to set the x1, y1, x2, y2 members of this struct...</div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00056">button.h:56</a></div></div>
|
|
<div class="ttc" id="group__tft_html_gacbaf0b6287f2d906af1e76051be37a87"><div class="ttname"><a href="group__tft.html#gacbaf0b6287f2d906af1e76051be37a87">HEX</a></div><div class="ttdeci">#define HEX(h)</div><div class="ttdef"><b>Definition:</b> <a href="tft_8h_source.html#l00060">tft.h:60</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_aa377184ba406b3f0c4ac18c935378204"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">TOUCH_AREA_STRUCT::y2</a></div><div class="ttdeci">uint16_t y2</div><div class="ttdoc">Bottom Right Y-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00077">touch.h:77</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a5b355141d49e5da4140613bd88d73549"><div class="ttname"><a href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a></div><div class="ttdeci">static enum @0 state</div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba2e804b7c8163d212e6231f5228f73ce9"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba2e804b7c8163d212e6231f5228f73ce9">init</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga6a2e3b3878ae5eea184d4c3ffe091b78"><div class="ttname"><a href="group__tft.html#ga6a2e3b3878ae5eea184d4c3ffe091b78">tft_clear</a></div><div class="ttdeci">void tft_clear(uint16_t color)</div><div class="ttdef"><b>Definition:</b> <a href="tft_8c_source.html#l00045">tft.c:45</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_ae5d8f6a72bbdbe109bc151bfef8ac9a6"><div class="ttname"><a href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a></div><div class="ttdeci">static BUTTON_STRUCT b_back</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00026">screen_photomode_save.c:26</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_ac5bc000f8954f38b7a641a485a26bae7"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">TOUCH_AREA_STRUCT::x2</a></div><div class="ttdeci">uint16_t x2</div><div class="ttdoc">Bottom Right X-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00076">touch.h:76</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga87b537f5fa5c109d3c05c13d6b18f382"><div class="ttname"><a href="group__tft.html#ga87b537f5fa5c109d3c05c13d6b18f382">WHITE</a></div><div class="ttdeci">#define WHITE</div><div class="ttdef"><b>Definition:</b> <a href="tft_8h_source.html#l00053">tft.h:53</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a18f32ab8e9f73f5ff658f876ba7cb95f"><div class="ttname"><a href="screen__photomode__save_8c.html#a18f32ab8e9f73f5ff658f876ba7cb95f">num_files_ok</a></div><div class="ttdeci">static int num_files_ok</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00035">screen_photomode_save.c:35</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_ad03f8d4c2501ad76eb27c418b7c68d0a"><div class="ttname"><a href="screen__photomode__save_8c.html#ad03f8d4c2501ad76eb27c418b7c68d0a">files_ok</a></div><div class="ttdeci">static FILE_LIST_ENTRY * files_ok</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00047">screen_photomode_save.c:47</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_a269d23c8a60f8acdf9279642999ee6a9"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#a269d23c8a60f8acdf9279642999ee6a9">BUTTON_STRUCT::callback</a></div><div class="ttdeci">BUTTON_CALLBACK callback</div><div class="ttdoc">Callback which is executed when the button is pressed. </div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00058">button.h:58</a></div></div>
|
|
<div class="ttc" id="struct_b_u_t_t_o_n___s_t_r_u_c_t_html_adeae49dfe3584e6df726fb4167cd1cf7"><div class="ttname"><a href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html#adeae49dfe3584e6df726fb4167cd1cf7">BUTTON_STRUCT::font</a></div><div class="ttdeci">uint8_t font</div><div class="ttdoc">The number of the font to use. </div><div class="ttdef"><b>Definition:</b> <a href="button_8h_source.html#l00060">button.h:60</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="screen__photomode__save_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph.png" border="0" usemap="#screen__photomode__save_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph" alt=""/></div>
|
|
<map name="screen__photomode__save_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph" id="screen__photomode__save_8c_a3017cd14eca2b9e67a69e7ea559b5eaa_cgraph">
|
|
<area shape="rect" id="node2" href="group__tft.html#ga6a2e3b3878ae5eea184d4c3ffe091b78" title="tft_clear" alt="" coords="125,31,193,57"/><area shape="rect" id="node4" href="screen__photomode__save_8c.html#a26b5a87b61eb1cd0888fdfc12a91a6d7" title="b_back_cb" alt="" coords="117,107,202,133"/><area shape="rect" id="node6" href="group__button.html#ga64d5d2aaff2c917e5d43e7ed849607de" title="gui_button_add" alt="" coords="104,208,215,235"/><area shape="rect" id="node10" href="group__tft.html#gaea9f6a88da91949befe52cd4ed000c5d" title="tft_font_height" alt="" coords="461,360,564,387"/><area shape="rect" id="node3" href="group__ll__tft.html#ga74b49691a101619b939c085ff607a582" title="ll_tft_clear" alt="" coords="290,5,371,32"/><area shape="rect" id="node5" href="group__screen.html#ga8e14bc7ee0214e2926965f9bdb54a866" title="gui_screen_back" alt="" coords="271,56,391,83"/><area shape="rect" id="node7" href="group__touch.html#gad32e5d122ec3f5f88bc6b2d9f4a629f8" title="touch_have_empty" alt="" coords="265,259,396,285"/><area shape="rect" id="node8" href="group__tft.html#ga7e99287b1e6b844f6867c63400959ffc" title="tft_font_width" alt="" coords="463,309,562,336"/><area shape="rect" id="node12" href="button_8c.html#a7dca41e6afa418abaf2d471acac9b649" title="buttons_cb" alt="" coords="287,107,374,133"/><area shape="rect" id="node16" href="group__button.html#ga6da1e251bad09d29fbb3b3f405689ab1" title="gui_button_redraw" alt="" coords="267,157,394,184"/><area shape="rect" id="node22" href="group__touch.html#ga3adc36f55b7475b3f652c38c0e23d741" title="touch_register_area" alt="" coords="263,208,399,235"/><area shape="rect" id="node9" href="group__ll__tft.html#ga3639ec94b2239cc02b3c47a14f6637a3" title="ll_tft_font_width" alt="" coords="634,309,745,336"/><area shape="rect" id="node11" href="group__ll__tft.html#ga8dbc8b40717be527e6f1c5a2cfc72aeb" title="ll_tft_font_height" alt="" coords="631,360,747,387"/><area shape="rect" id="node13" href="button_8c.html#a05bb88dac6f60063eae2bb67dda1f4e8" title="calculate_shadows" alt="" coords="447,56,579,83"/><area shape="rect" id="node14" href="group__tft.html#ga5022f91ea04919e698a79c0c309ba6f8" title="tft_draw_line" alt="" coords="465,107,560,133"/><area shape="rect" id="node15" href="group__ll__tft.html#ga2560737bf118275e6ce728f6dce1e83f" title="ll_tft_draw_line" alt="" coords="636,107,743,133"/><area shape="rect" id="node17" href="group__tft.html#ga781855ab93845ce326dfca7c099259c6" title="tft_fill_rectangle" alt="" coords="457,157,569,184"/><area shape="rect" id="node19" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6" title="tft_print_line" alt="" coords="467,233,559,260"/><area shape="rect" id="node18" href="group__ll__tft.html#ga0111ae5623214d3d466b2b24598f303f" title="ll_tft_fill_rectangle" alt="" coords="627,157,752,184"/><area shape="rect" id="node20" href="group__ll__tft.html#gaf4b0b73ab01e1dc300ae65dc0ac029b6" title="ll_tft_num_fonts" alt="" coords="633,208,746,235"/><area shape="rect" id="node21" href="group__ll__tft.html#ga408570a2b70769255924792ce189f2c1" title="ll_tft_draw_char" alt="" coords="633,259,745,285"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="acd1409088e83cf2a8ba2cf96dd9b52f8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void leave </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>screen</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00310">310</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00311"></a><span class="lineno"> 311</span> {</div>
|
|
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <a class="code" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a>(&<a class="code" href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a>); <span class="comment">//Remove/Free the back button</span></div>
|
|
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> </div>
|
|
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> == <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543">picking</a>) { <span class="comment">//The user left the screen in the "picking"-phase</span></div>
|
|
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <a class="code" href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8">touch_unregister_area</a>(&<a class="code" href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>); <span class="comment">//remove the touch area (for the list)</span></div>
|
|
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  }</div>
|
|
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span> </div>
|
|
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keywordflow">if</span> (<a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> == <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543">picking</a> || <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> == <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05">saving</a> || <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> == <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199">done</a>) { <span class="comment">//the user left the screen after we created the linked list</span></div>
|
|
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="comment">//Iterate through the linked list and free all resources</span></div>
|
|
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY</a>* current_entry = <a class="code" href="screen__photomode__save_8c.html#ad03f8d4c2501ad76eb27c418b7c68d0a">files_ok</a>; <span class="comment">//start with the list head</span></div>
|
|
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> </div>
|
|
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="keywordflow">while</span> (current_entry != NULL) { <span class="comment">//while we're not at the end</span></div>
|
|
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY</a>* temp = current_entry-><a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#acfb6005bc1c45e31b1cb133feea8edb8">next</a>; <span class="comment">//save the next pointer because we free the current element on the next line</span></div>
|
|
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  free((<span class="keywordtype">void</span>*)(current_entry-><a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#aeac90097f29f7529968697163cea5c18">filename</a>)); <span class="comment">//free filename</span></div>
|
|
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  free(current_entry); <span class="comment">//free element itself</span></div>
|
|
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  current_entry = temp; <span class="comment">//advance</span></div>
|
|
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  }</div>
|
|
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  }</div>
|
|
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> }</div>
|
|
<div class="ttc" id="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s_html_aeac90097f29f7529968697163cea5c18"><div class="ttname"><a href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#aeac90097f29f7529968697163cea5c18">FILE_LIST_ENTRY_S::filename</a></div><div class="ttdeci">char * filename</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00043">screen_photomode_save.c:43</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543">picking</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s_html"><div class="ttname"><a href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY_S</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00042">screen_photomode_save.c:42</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05">saving</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a969b249abfb1776e2cc9567db889b83f"><div class="ttname"><a href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a></div><div class="ttdeci">static TOUCH_AREA_STRUCT a_area</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00027">screen_photomode_save.c:27</a></div></div>
|
|
<div class="ttc" id="group__touch_html_gaa7d6cd569335d0ddfc9eeab479f3a0a8"><div class="ttname"><a href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8">touch_unregister_area</a></div><div class="ttdeci">void touch_unregister_area(TOUCH_AREA_STRUCT *area)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00195">touch.c:195</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a5b355141d49e5da4140613bd88d73549"><div class="ttname"><a href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a></div><div class="ttdeci">static enum @0 state</div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_ae5d8f6a72bbdbe109bc151bfef8ac9a6"><div class="ttname"><a href="screen__photomode__save_8c.html#ae5d8f6a72bbdbe109bc151bfef8ac9a6">b_back</a></div><div class="ttdeci">static BUTTON_STRUCT b_back</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00026">screen_photomode_save.c:26</a></div></div>
|
|
<div class="ttc" id="group__button_html_ga39e6ec07616381a15f276cd821dad4fd"><div class="ttname"><a href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd">gui_button_remove</a></div><div class="ttdeci">void gui_button_remove(BUTTON_STRUCT *button)</div><div class="ttdef"><b>Definition:</b> <a href="button_8c_source.html#l00184">button.c:184</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s_html_acfb6005bc1c45e31b1cb133feea8edb8"><div class="ttname"><a href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#acfb6005bc1c45e31b1cb133feea8edb8">FILE_LIST_ENTRY_S::next</a></div><div class="ttdeci">struct FILE_LIST_ENTRY_S * next</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00044">screen_photomode_save.c:44</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199">done</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_ad03f8d4c2501ad76eb27c418b7c68d0a"><div class="ttname"><a href="screen__photomode__save_8c.html#ad03f8d4c2501ad76eb27c418b7c68d0a">files_ok</a></div><div class="ttdeci">static FILE_LIST_ENTRY * files_ok</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00047">screen_photomode_save.c:47</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="screen__photomode__save_8c_acd1409088e83cf2a8ba2cf96dd9b52f8_cgraph.png" border="0" usemap="#screen__photomode__save_8c_acd1409088e83cf2a8ba2cf96dd9b52f8_cgraph" alt=""/></div>
|
|
<map name="screen__photomode__save_8c_acd1409088e83cf2a8ba2cf96dd9b52f8_cgraph" id="screen__photomode__save_8c_acd1409088e83cf2a8ba2cf96dd9b52f8_cgraph">
|
|
<area shape="rect" id="node2" href="group__button.html#ga39e6ec07616381a15f276cd821dad4fd" title="gui_button_remove" alt="" coords="104,5,235,32"/><area shape="rect" id="node3" href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8" title="touch_unregister_area" alt="" coords="283,31,433,57"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3d1decbb81b0f181eb0561c0f5f8fe3c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void touchCB </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>touchArea</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="group__touch.html#gab6037f32eebdf297a7d601a1e6c87768">TOUCH_ACTION</a> </td>
|
|
<td class="paramname"><em>triggeredAction</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00050">50</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> {</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordtype">int</span> y = <a class="code" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227">touch_get_last_point</a>().<a class="code" href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">y</a> - <a class="code" href="screen__photomode__save_8c.html#a2e097772251828c6d76b32677269b7ab">liststart</a>; <span class="comment">//Calculate the y-Coordinate of the touch point relative to the start of the file-list</span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">int</span> elem = y / <a class="code" href="screen__photomode__save_8c.html#a77e479b1ae98529fa834688a147ca5af">fontheight</a>; <span class="comment">//Calculate the file index</span></div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">if</span> (elem < 0 | elem >= <a class="code" href="screen__photomode__save_8c.html#a18f32ab8e9f73f5ff658f876ba7cb95f">num_files_ok</a>) {</div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">return</span>; <span class="comment">//Check if the file index is valid (0,1,..,num_files_ok-1)</span></div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  }</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="comment">//Search for the corresponding entry in the linked list</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY</a>* current_entry = <a class="code" href="screen__photomode__save_8c.html#ad03f8d4c2501ad76eb27c418b7c68d0a">files_ok</a>; <span class="comment">//Start walking through the list, starting by the head of the list</span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < elem; i++) { <span class="comment">//Until we have reached the file (index)</span></div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  current_entry = current_entry-><a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#acfb6005bc1c45e31b1cb133feea8edb8">next</a>; <span class="comment">//traverse to the next file</span></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  }</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="screen__photomode__save_8c.html#a948204bf251793107f9095a4235f9c1e">picked_file</a> = current_entry-><a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#aeac90097f29f7529968697163cea5c18">filename</a>; <span class="comment">//save the picked filename. It will be used by the statemachine in the main loop</span></div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8">touch_unregister_area</a>(&<a class="code" href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>); <span class="comment">//unregister the touch area, we no longer need it. No more interrupts will be fired.</span></div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> = <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05">saving</a>; <span class="comment">//Change the state of the statemachine</span></div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> }</div>
|
|
<div class="ttc" id="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s_html_aeac90097f29f7529968697163cea5c18"><div class="ttname"><a href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#aeac90097f29f7529968697163cea5c18">FILE_LIST_ENTRY_S::filename</a></div><div class="ttdeci">char * filename</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00043">screen_photomode_save.c:43</a></div></div>
|
|
<div class="ttc" id="struct_p_o_i_n_t___s_t_r_u_c_t_html_ab0580f504a7428539be299fa71565f30"><div class="ttname"><a href="struct_p_o_i_n_t___s_t_r_u_c_t.html#ab0580f504a7428539be299fa71565f30">POINT_STRUCT::y</a></div><div class="ttdeci">uint16_t y</div><div class="ttdoc">The Y-Coordinate of the point. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00088">touch.h:88</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s_html"><div class="ttname"><a href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY_S</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00042">screen_photomode_save.c:42</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a77e479b1ae98529fa834688a147ca5af"><div class="ttname"><a href="screen__photomode__save_8c.html#a77e479b1ae98529fa834688a147ca5af">fontheight</a></div><div class="ttdeci">static int fontheight</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00037">screen_photomode_save.c:37</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05">saving</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a969b249abfb1776e2cc9567db889b83f"><div class="ttname"><a href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a></div><div class="ttdeci">static TOUCH_AREA_STRUCT a_area</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00027">screen_photomode_save.c:27</a></div></div>
|
|
<div class="ttc" id="group__touch_html_gaa7d6cd569335d0ddfc9eeab479f3a0a8"><div class="ttname"><a href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8">touch_unregister_area</a></div><div class="ttdeci">void touch_unregister_area(TOUCH_AREA_STRUCT *area)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00195">touch.c:195</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a5b355141d49e5da4140613bd88d73549"><div class="ttname"><a href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a></div><div class="ttdeci">static enum @0 state</div></div>
|
|
<div class="ttc" id="group__touch_html_ga42b918ead4f536a63f79601ab2978227"><div class="ttname"><a href="group__touch.html#ga42b918ead4f536a63f79601ab2978227">touch_get_last_point</a></div><div class="ttdeci">POINT_STRUCT touch_get_last_point()</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00211">touch.c:211</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s_html_acfb6005bc1c45e31b1cb133feea8edb8"><div class="ttname"><a href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#acfb6005bc1c45e31b1cb133feea8edb8">FILE_LIST_ENTRY_S::next</a></div><div class="ttdeci">struct FILE_LIST_ENTRY_S * next</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00044">screen_photomode_save.c:44</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a2e097772251828c6d76b32677269b7ab"><div class="ttname"><a href="screen__photomode__save_8c.html#a2e097772251828c6d76b32677269b7ab">liststart</a></div><div class="ttdeci">static int liststart</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00038">screen_photomode_save.c:38</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a18f32ab8e9f73f5ff658f876ba7cb95f"><div class="ttname"><a href="screen__photomode__save_8c.html#a18f32ab8e9f73f5ff658f876ba7cb95f">num_files_ok</a></div><div class="ttdeci">static int num_files_ok</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00035">screen_photomode_save.c:35</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_ad03f8d4c2501ad76eb27c418b7c68d0a"><div class="ttname"><a href="screen__photomode__save_8c.html#ad03f8d4c2501ad76eb27c418b7c68d0a">files_ok</a></div><div class="ttdeci">static FILE_LIST_ENTRY * files_ok</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00047">screen_photomode_save.c:47</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a948204bf251793107f9095a4235f9c1e"><div class="ttname"><a href="screen__photomode__save_8c.html#a948204bf251793107f9095a4235f9c1e">picked_file</a></div><div class="ttdeci">static const char * picked_file</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00039">screen_photomode_save.c:39</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="screen__photomode__save_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_cgraph.png" border="0" usemap="#screen__photomode__save_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_cgraph" alt=""/></div>
|
|
<map name="screen__photomode__save_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_cgraph" id="screen__photomode__save_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_cgraph">
|
|
<area shape="rect" id="node2" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227" title="touch_get_last_point" alt="" coords="129,5,272,32"/><area shape="rect" id="node3" href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8" title="touch_unregister_area" alt="" coords="125,56,276,83"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
<p><div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="screen__photomode__save_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_icgraph.png" border="0" usemap="#screen__photomode__save_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_icgraph" alt=""/></div>
|
|
<map name="screen__photomode__save_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_icgraph" id="screen__photomode__save_8c_a3d1decbb81b0f181eb0561c0f5f8fe3c_icgraph">
|
|
<area shape="rect" id="node2" href="screen__photomode__save_8c.html#a5e8f84ee8ff4bf827775c38ae6752509" title="update" alt="" coords="125,5,187,32"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5e8f84ee8ff4bf827775c38ae6752509"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void update </td>
|
|
<td>(</td>
|
|
<td class="paramtype">void * </td>
|
|
<td class="paramname"><em>screen</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00135">135</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
<div class="fragment"><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> {</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">switch</span> (<a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a>) {</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">case</span> <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba2e804b7c8163d212e6231f5228f73ce9">init</a>: { <span class="comment">//Init State: The user just entered the screen</span></div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <a class="code" href="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t.html">DIRECTORY_STRUCT</a>* dir = <a class="code" href="group__filesystem.html#ga8b1099cbd3464fbe64f2010f16d87101">filesystem_dir_open</a>(<span class="stringliteral">"."</span>); <span class="comment">//open root directory</span></div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="keywordflow">if</span> (dir == NULL) { <span class="comment">//error while opening root directory</span></div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a>(<a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>, 5, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">"Error accessing Filesystem"</span>);</div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> = <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed">error</a>;</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  }</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> </div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordtype">bool</span> nomatch = <span class="keyword">true</span>; <span class="comment">//whether or not we have zero files which are suitable for saving</span></div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < dir-><a class="code" href="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t.html#a256a3eb1c4d0a61a23ff722736ed18df">num_files</a>; i++) { <span class="comment">//walk through all files in the directory</span></div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html">FILE_STRUCT</a>* file = &(dir-><a class="code" href="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t.html#a87f6b6d5b8df736e7d52923a19131f86">files</a>[i]); <span class="comment">//Pointer to the current file/subdirectory</span></div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="comment">//Ignore directories, archives, hidden files, system files and files we cannot write to</span></div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">if</span> (file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#a3eb7d979a8d987e842e3c06d08b345c0">fattrib</a> & (<a class="code" href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba4a52b8103f1c46e28720230e62cc18f0">F_SYS</a> | <a class="code" href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3baa87f9e9b73e66d81563fe63aba76cc7d">F_HID</a> | <a class="code" href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba68f4a0b4d65d116a6fe51978a608b79a">F_ARC</a> | <a class="code" href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba9d0e592d6c03a8ea881767c87935c790">F_DIR</a> | <a class="code" href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba56340dd998fe228468cb60406dc3f5df">F_RDO</a>)) {</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordflow">continue</span>;</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  }</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="comment">//ignore files which are not large enough</span></div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">if</span> (file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#aa5092484dbc5fc29a229feee0eae1246">fsize</a> < 189410) {</div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordflow">continue</span>; <span class="comment">//size taken from an example bitmap (318x198x24)</span></div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  }</div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  nomatch = <span class="keyword">false</span>; <span class="comment">//at least one file matches</span></div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  }</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">if</span> (nomatch) { <span class="comment">//not one file is suitable for writing</span></div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordtype">int</span> y = 5; <span class="comment">//y-Coordinate where to start writing the error text</span></div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordtype">int</span> i = 0;</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordflow">while</span> (<a class="code" href="screen__photomode__save_8c.html#a30a7b9e347f9114242f4f4fffe2c9626">nomatch_text</a>[i] != NULL) { <span class="comment">//for every line in the big error array</span></div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="comment">//Write the line's text and go to the next line</span></div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <a class="code" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a>(<a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>, y + i * <a class="code" href="screen__photomode__save_8c.html#a77e479b1ae98529fa834688a147ca5af">fontheight</a>, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <a class="code" href="screen__photomode__save_8c.html#a30a7b9e347f9114242f4f4fffe2c9626">nomatch_text</a>[i]);</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  i++;</div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  }</div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> = <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed">error</a>;</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  } <span class="keywordflow">else</span> { <span class="comment">//we have a least one suitable file</span></div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> = <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba222b1a42a2963ceeb4328fb55c40f37e">showlist</a>;</div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  }</div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <a class="code" href="group__filesystem.html#gab8001e040f37dc57b18e4155532b59ce">filesystem_dir_close</a>(dir); <span class="comment">//free directory struct</span></div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  }</div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">case</span> <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba222b1a42a2963ceeb4328fb55c40f37e">showlist</a>: { <span class="comment">//Show List State: Where we load and present the suitable file's to the user in a list</span></div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t.html">DIRECTORY_STRUCT</a>* dir2 = <a class="code" href="group__filesystem.html#ga8b1099cbd3464fbe64f2010f16d87101">filesystem_dir_open</a>(<span class="stringliteral">"."</span>); <span class="comment">//Open the directory again</span></div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <span class="keywordflow">if</span> (dir2 == NULL) {</div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordflow">return</span>; <span class="comment">//Error on opening? This should never happen, since it's handled in the previous state</span></div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  }</div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordtype">int</span> y = 5; <span class="comment">//y-Coordinate where to start drawing/writing text/list-elements</span></div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a>(<a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>, y, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">"Pick a file to save the image to"</span>);</div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  y += <a class="code" href="screen__photomode__save_8c.html#a77e479b1ae98529fa834688a147ca5af">fontheight</a> + 5;</div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a>(<a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>, y, <a class="code" href="group__tft.html#ga79d10e672abb49ad63eeaa8aaef57c38">BLUE</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">"Name Modified Size"</span>);</div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  y += <a class="code" href="screen__photomode__save_8c.html#a77e479b1ae98529fa834688a147ca5af">fontheight</a>;</div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> </div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <a class="code" href="screen__photomode__save_8c.html#a2e097772251828c6d76b32677269b7ab">liststart</a> = y; <span class="comment">//store the y coordinate of the start of the list away (used in toucharea callback)</span></div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="screen__photomode__save_8c.html#a18f32ab8e9f73f5ff658f876ba7cb95f">num_files_ok</a> = 0; <span class="comment">//we start with 0 matching files</span></div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY</a>* current_entry = NULL; <span class="comment">//We start with an empty list</span></div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < dir2-><a class="code" href="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t.html#a256a3eb1c4d0a61a23ff722736ed18df">num_files</a> && <a class="code" href="screen__photomode__save_8c.html#a18f32ab8e9f73f5ff658f876ba7cb95f">num_files_ok</a> < 10; i++) { <span class="comment">//go through all the files of the directory, abort if we have 10 matches</span></div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html">FILE_STRUCT</a>* file = &(dir2-><a class="code" href="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t.html#a87f6b6d5b8df736e7d52923a19131f86">files</a>[i]);</div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="comment">//Ignore directories, archives, hidden files, system files and files we cannot write to</span></div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordflow">if</span> (file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#a3eb7d979a8d987e842e3c06d08b345c0">fattrib</a> & (<a class="code" href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba4a52b8103f1c46e28720230e62cc18f0">F_SYS</a> | <a class="code" href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3baa87f9e9b73e66d81563fe63aba76cc7d">F_HID</a> | <a class="code" href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba68f4a0b4d65d116a6fe51978a608b79a">F_ARC</a> | <a class="code" href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba9d0e592d6c03a8ea881767c87935c790">F_DIR</a> | <a class="code" href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba56340dd998fe228468cb60406dc3f5df">F_RDO</a>)) {</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordflow">continue</span>;</div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  }</div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <span class="comment">//ignore files which are not large enough</span></div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">if</span> (file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#aa5092484dbc5fc29a229feee0eae1246">fsize</a> < 189410) {</div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">continue</span>; <span class="comment">//size taken from an example bitmap (318x198x24)</span></div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  }</div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> </div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="comment">//Print out filename, modified date,time and file size</span></div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <a class="code" href="group__tft.html#ga765c521ee1b01ab0c34449936500291b">tft_print_formatted</a>(<a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>, y, <a class="code" href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a>,</div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">"%-16s %02u.%02u.%02u %02u:%02u:%02u %u"</span>,</div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#ae96bbe3347b319ee7bdbd1f2e2ba9f5b">fname</a>,</div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#a87b927c3a2b9093be39307d2f1d47b61">fdate</a>.<a class="code" href="struct_f_i_l_e___d_a_t_e___s_t_r_u_c_t.html#a2ce67e633b6747257e9cfc74288fcc31">day</a>,</div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#a87b927c3a2b9093be39307d2f1d47b61">fdate</a>.<a class="code" href="struct_f_i_l_e___d_a_t_e___s_t_r_u_c_t.html#a1f902d56334cc3e0a86d4b08f34bfff6">month</a>,</div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  (file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#a87b927c3a2b9093be39307d2f1d47b61">fdate</a>.<a class="code" href="struct_f_i_l_e___d_a_t_e___s_t_r_u_c_t.html#a2a7fd6ec9f3bf84d7c564990dcf0bfb8">year</a> + 1980) % 100,</div>
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#a708226ca737e39bed0dc978eb31e3730">ftime</a>.<a class="code" href="struct_f_i_l_e___t_i_m_e___s_t_r_u_c_t.html#a7f39b6fc12f0b04a38625ff3040dd30c">hour</a>,</div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#a708226ca737e39bed0dc978eb31e3730">ftime</a>.<a class="code" href="struct_f_i_l_e___t_i_m_e___s_t_r_u_c_t.html#a3e054086f983d0603a8919338354951b">min</a>,</div>
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#a708226ca737e39bed0dc978eb31e3730">ftime</a>.<a class="code" href="struct_f_i_l_e___t_i_m_e___s_t_r_u_c_t.html#a1bcccadb3a5a1a832dfe835818015058">sec</a> * 2,</div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#aa5092484dbc5fc29a229feee0eae1246">fsize</a>);</div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">if</span> (current_entry == NULL) { <span class="comment">//The list is empty</span></div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  current_entry = malloc(<span class="keyword">sizeof</span>(<a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY</a>)); <span class="comment">//create new entry</span></div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <a class="code" href="screen__photomode__save_8c.html#ad03f8d4c2501ad76eb27c418b7c68d0a">files_ok</a> = current_entry; <span class="comment">//assign it to the list head</span></div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  } <span class="keywordflow">else</span> { <span class="comment">//there's a least one entry in the list</span></div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  current_entry-><a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#acfb6005bc1c45e31b1cb133feea8edb8">next</a> = malloc(<span class="keyword">sizeof</span>(<a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY</a>)); <span class="comment">//append entry to previous entry</span></div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  current_entry = current_entry-><a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#acfb6005bc1c45e31b1cb133feea8edb8">next</a>; <span class="comment">//newly created entry is the current now.</span></div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  current_entry-><a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#acfb6005bc1c45e31b1cb133feea8edb8">next</a> = NULL; <span class="comment">//we're at the end of the list (for now)</span></div>
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  current_entry-><a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#aeac90097f29f7529968697163cea5c18">filename</a> = malloc(strlen(file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#ae96bbe3347b319ee7bdbd1f2e2ba9f5b">fname</a>) + 1); <span class="comment">//allocate space for the filename + zero-termination</span></div>
|
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  strcpy(current_entry-><a class="code" href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#aeac90097f29f7529968697163cea5c18">filename</a>, file-><a class="code" href="struct_f_i_l_e___s_t_r_u_c_t.html#ae96bbe3347b319ee7bdbd1f2e2ba9f5b">fname</a>); <span class="comment">//copy filename (so that we can close the directory after scanning)</span></div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> </div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="comment">//since we have found a suitable file we need to increment the position in the list</span></div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <a class="code" href="screen__photomode__save_8c.html#a18f32ab8e9f73f5ff658f876ba7cb95f">num_files_ok</a>++;</div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  y += <a class="code" href="screen__photomode__save_8c.html#a77e479b1ae98529fa834688a147ca5af">fontheight</a>;</div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  }</div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div>
|
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="comment">//Touch area for file-selection (in the list)</span></div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <a class="code" href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4026095999c2fd7a91f9bb91390647a4">hookedActions</a> = <a class="code" href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810">PEN_UP</a>; <span class="comment">//we're only interested in PEN_UP events</span></div>
|
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <a class="code" href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">x1</a> = <a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>; <span class="comment">//Left border</span></div>
|
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <a class="code" href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">y1</a> = <a class="code" href="screen__photomode__save_8c.html#a2e097772251828c6d76b32677269b7ab">liststart</a>; <span class="comment">//Start where the list started</span></div>
|
|
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <a class="code" href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">x2</a> = 320 - <a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>; <span class="comment">//Right border</span></div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <a class="code" href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">y2</a> = <a class="code" href="screen__photomode__save_8c.html#a2e097772251828c6d76b32677269b7ab">liststart</a> + <a class="code" href="screen__photomode__save_8c.html#a77e479b1ae98529fa834688a147ca5af">fontheight</a> * <a class="code" href="screen__photomode__save_8c.html#a18f32ab8e9f73f5ff658f876ba7cb95f">num_files_ok</a>; <span class="comment">//stop at the end of the list</span></div>
|
|
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <a class="code" href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>.<a class="code" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4b44f431c154678005298b0f0618cd37">callback</a> = <a class="code" href="screen__photomode__save_8c.html#a3d1decbb81b0f181eb0561c0f5f8fe3c">touchCB</a>; <span class="comment">//execute our callback when PEN_UP occurs</span></div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <a class="code" href="group__touch.html#ga3adc36f55b7475b3f652c38c0e23d741">touch_register_area</a>(&<a class="code" href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a>); <span class="comment">//register the touch area and receive events from now on</span></div>
|
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <a class="code" href="group__filesystem.html#gab8001e040f37dc57b18e4155532b59ce">filesystem_dir_close</a>(dir2); <span class="comment">//we no longer need the directory struct, since we have our own linked list now</span></div>
|
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> </div>
|
|
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> = <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543">picking</a>;</div>
|
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  }</div>
|
|
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div>
|
|
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordflow">case</span> <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543">picking</a>: <span class="comment">//Picking State: Where we wait on the users file choice</span></div>
|
|
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <a class="code" href="group__pixy.html#ga72a2cd126f6a5f67842e5ff66424ccb0">pixy_service</a>(); <span class="comment">//Handle pending pixy events</span></div>
|
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="comment">//do nothing and wait on user to pick a file</span></div>
|
|
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div>
|
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="keywordflow">case</span> <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05">saving</a>: { <span class="comment">//Saving State: Where we save the image to the selected file</span></div>
|
|
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <a class="code" href="struct_f_i_l_e___h_a_n_d_l_e.html">FILE_HANDLE</a>* file = <a class="code" href="group__filesystem.html#gabd043128e80a4f0573b1360d921b046c">filesystem_file_open</a>(<a class="code" href="screen__photomode__save_8c.html#a948204bf251793107f9095a4235f9c1e">picked_file</a>); <span class="comment">//try to open the selected file</span></div>
|
|
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> </div>
|
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">if</span> (file == NULL) { <span class="comment">//opening the file failed</span></div>
|
|
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <a class="code" href="group__tft.html#ga765c521ee1b01ab0c34449936500291b">tft_print_formatted</a>(<a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>, 190, <a class="code" href="group__tft.html#ga79d10e672abb49ad63eeaa8aaef57c38">BLUE</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">"Could not open %s"</span>, <a class="code" href="screen__photomode__save_8c.html#a948204bf251793107f9095a4235f9c1e">picked_file</a>);</div>
|
|
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> = <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed">error</a>;</div>
|
|
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  }</div>
|
|
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div>
|
|
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="group__filesystem.html#gac447af479c334caa207d6c279571d8a2">filesystem_file_seek</a>(file, 0); <span class="comment">//seek to the start of the file (optional?)</span></div>
|
|
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div>
|
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keywordflow">if</span> (<a class="code" href="group__filesystem.html#gae7124857f3ab32f6032ef129f2a80000">filesystem_file_write</a>(file, <a class="code" href="screen__photomode__save_8c.html#acd7de4ca4cce429ec77297ab370bb849">bmpheader_data</a>, 0x7A) != <a class="code" href="group__filesystem.html#ggab08f51089a5ddbb470a1a36a9478dda4ab16a72615f8613168ea14797c243fdfd">F_OK</a>) { <span class="comment">//Writing the header failed</span></div>
|
|
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <a class="code" href="group__tft.html#ga765c521ee1b01ab0c34449936500291b">tft_print_formatted</a>(<a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>, 190, <a class="code" href="group__tft.html#ga79d10e672abb49ad63eeaa8aaef57c38">BLUE</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">"Error while writing to %s"</span>, <a class="code" href="screen__photomode__save_8c.html#a948204bf251793107f9095a4235f9c1e">picked_file</a>);</div>
|
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <a class="code" href="group__filesystem.html#ga0e6cc31bf4c889249e13254306994c2f">filesystem_file_close</a>(file);</div>
|
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> = <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed">error</a>;</div>
|
|
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  }</div>
|
|
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div>
|
|
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keywordflow">if</span> (<a class="code" href="group__pixy__helper.html#gaeb47b641ad8f8cb10c26debb27c7dead">pixy_save_full_frame</a>(file) != 0) { <span class="comment">//Writing the imagedata failed</span></div>
|
|
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <a class="code" href="group__tft.html#ga765c521ee1b01ab0c34449936500291b">tft_print_formatted</a>(<a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>, 190, <a class="code" href="group__tft.html#ga79d10e672abb49ad63eeaa8aaef57c38">BLUE</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">"Error while writing to %s"</span>, <a class="code" href="screen__photomode__save_8c.html#a948204bf251793107f9095a4235f9c1e">picked_file</a>);</div>
|
|
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <a class="code" href="group__filesystem.html#ga0e6cc31bf4c889249e13254306994c2f">filesystem_file_close</a>(file);</div>
|
|
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> = <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed">error</a>;</div>
|
|
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  }</div>
|
|
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> </div>
|
|
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="comment">//if we reach this point, we have written all data out successfully</span></div>
|
|
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> </div>
|
|
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <a class="code" href="group__filesystem.html#ga0e6cc31bf4c889249e13254306994c2f">filesystem_file_close</a>(file); <span class="comment">//close/finalize the file</span></div>
|
|
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <a class="code" href="group__tft.html#ga765c521ee1b01ab0c34449936500291b">tft_print_formatted</a>(<a class="code" href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a>, 190, <a class="code" href="group__tft.html#ga79d10e672abb49ad63eeaa8aaef57c38">BLUE</a>, <a class="code" href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a>, 0, <span class="stringliteral">"Image saved to %s"</span>, <a class="code" href="screen__photomode__save_8c.html#a948204bf251793107f9095a4235f9c1e">picked_file</a>);</div>
|
|
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <a class="code" href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a> = <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199">done</a>;</div>
|
|
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  }</div>
|
|
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span> </div>
|
|
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keywordflow">case</span> <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed">error</a>: <span class="comment">//Error State: Where we show an error message and leave the user no other choice than to click the backbutton</span></div>
|
|
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keywordflow">case</span> <a class="code" href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199">done</a>: <span class="comment">//Done State: When saving the file was successful</span></div>
|
|
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <a class="code" href="group__pixy.html#ga72a2cd126f6a5f67842e5ff66424ccb0">pixy_service</a>(); <span class="comment">//Handle pending pixy events</span></div>
|
|
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="comment">//wait on user to click the back button</span></div>
|
|
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordflow">break</span>;</div>
|
|
<div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div>
|
|
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  }</div>
|
|
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> }</div>
|
|
<div class="ttc" id="group__touch_html_ga3adc36f55b7475b3f652c38c0e23d741"><div class="ttname"><a href="group__touch.html#ga3adc36f55b7475b3f652c38c0e23d741">touch_register_area</a></div><div class="ttdeci">bool touch_register_area(TOUCH_AREA_STRUCT *area)</div><div class="ttdef"><b>Definition:</b> <a href="touch_8c_source.html#l00181">touch.c:181</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_acd7de4ca4cce429ec77297ab370bb849"><div class="ttname"><a href="screen__photomode__save_8c.html#acd7de4ca4cce429ec77297ab370bb849">bmpheader_data</a></div><div class="ttdeci">static unsigned char bmpheader_data[0x7A]</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00093">screen_photomode_save.c:93</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba222b1a42a2963ceeb4328fb55c40f37e"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba222b1a42a2963ceeb4328fb55c40f37e">showlist</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="group__filesystem_html_gac447af479c334caa207d6c279571d8a2"><div class="ttname"><a href="group__filesystem.html#gac447af479c334caa207d6c279571d8a2">filesystem_file_seek</a></div><div class="ttdeci">FILE_STATUS filesystem_file_seek(FILE_HANDLE *handle, uint32_t offset)</div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8c_source.html#l00043">filesystem.c:43</a></div></div>
|
|
<div class="ttc" id="group__touch_html_ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810"><div class="ttname"><a href="group__touch.html#ggab6037f32eebdf297a7d601a1e6c87768a082df10a24f2cb7c2a8098c0df591810">PEN_UP</a></div><div class="ttdoc">Receive an event when the pen goes up inside the region. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00055">touch.h:55</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s_html_aeac90097f29f7529968697163cea5c18"><div class="ttname"><a href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#aeac90097f29f7529968697163cea5c18">FILE_LIST_ENTRY_S::filename</a></div><div class="ttdeci">char * filename</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00043">screen_photomode_save.c:43</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___t_i_m_e___s_t_r_u_c_t_html_a1bcccadb3a5a1a832dfe835818015058"><div class="ttname"><a href="struct_f_i_l_e___t_i_m_e___s_t_r_u_c_t.html#a1bcccadb3a5a1a832dfe835818015058">FILE_TIME_STRUCT::sec</a></div><div class="ttdeci">unsigned sec</div><div class="ttdoc">second/2 (0..29) </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00055">filesystem.h:55</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_a47ada631c22a9d40348069145654f255"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a47ada631c22a9d40348069145654f255">TOUCH_AREA_STRUCT::y1</a></div><div class="ttdeci">uint16_t y1</div><div class="ttdoc">Top Left Y-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00075">touch.h:75</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga765c521ee1b01ab0c34449936500291b"><div class="ttname"><a href="group__tft.html#ga765c521ee1b01ab0c34449936500291b">tft_print_formatted</a></div><div class="ttdeci">void tft_print_formatted(uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, uint8_t font, const char *format,...)</div><div class="ttdef"><b>Definition:</b> <a href="tft_8c_source.html#l00111">tft.c:111</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a2877431286fdd28a2ecd4ca764565c15"><div class="ttname"><a href="screen__photomode__save_8c.html#a2877431286fdd28a2ecd4ca764565c15">X_OFS</a></div><div class="ttdeci">#define X_OFS</div></div>
|
|
<div class="ttc" id="group__tft_html_gabf54943131990b366ce6875a0e1925f6"><div class="ttname"><a href="group__tft.html#gabf54943131990b366ce6875a0e1925f6">tft_print_line</a></div><div class="ttdeci">void tft_print_line(uint16_t x, uint16_t y, uint16_t color, uint16_t bgcolor, uint8_t font, const char *text)</div><div class="ttdef"><b>Definition:</b> <a href="tft_8c_source.html#l00098">tft.c:98</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___s_t_r_u_c_t_html_a87b927c3a2b9093be39307d2f1d47b61"><div class="ttname"><a href="struct_f_i_l_e___s_t_r_u_c_t.html#a87b927c3a2b9093be39307d2f1d47b61">FILE_STRUCT::fdate</a></div><div class="ttdeci">FILE_DATE_STRUCT fdate</div><div class="ttdoc">Last modified date. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00063">filesystem.h:63</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55babf49c9324fed2b744a4bb1a07e123543">picking</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___d_a_t_e___s_t_r_u_c_t_html_a2ce67e633b6747257e9cfc74288fcc31"><div class="ttname"><a href="struct_f_i_l_e___d_a_t_e___s_t_r_u_c_t.html#a2ce67e633b6747257e9cfc74288fcc31">FILE_DATE_STRUCT::day</a></div><div class="ttdeci">unsigned day</div><div class="ttdoc">day (1..31) </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00046">filesystem.h:46</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___s_t_r_u_c_t_html_a3eb7d979a8d987e842e3c06d08b345c0"><div class="ttname"><a href="struct_f_i_l_e___s_t_r_u_c_t.html#a3eb7d979a8d987e842e3c06d08b345c0">FILE_STRUCT::fattrib</a></div><div class="ttdeci">uint8_t fattrib</div><div class="ttdoc">File/Directory Attributes. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00065">filesystem.h:65</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___h_a_n_d_l_e_html"><div class="ttname"><a href="struct_f_i_l_e___h_a_n_d_l_e.html">FILE_HANDLE</a></div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00081">filesystem.h:81</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_aedb5fdfe3c1d1a915b668ba7f3950753"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aedb5fdfe3c1d1a915b668ba7f3950753">TOUCH_AREA_STRUCT::x1</a></div><div class="ttdeci">uint16_t x1</div><div class="ttdoc">Top Left X-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00074">touch.h:74</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga6c54e72c6142d317114a29adbcbb24b6"><div class="ttname"><a href="group__tft.html#ga6c54e72c6142d317114a29adbcbb24b6">TRANSPARENT</a></div><div class="ttdeci">#define TRANSPARENT</div><div class="ttdef"><b>Definition:</b> <a href="tft_8h_source.html#l00066">tft.h:66</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55bad606e435413ea0944dd00d49e901e4ed">error</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="group__pixy__helper_html_gaeb47b641ad8f8cb10c26debb27c7dead"><div class="ttname"><a href="group__pixy__helper.html#gaeb47b641ad8f8cb10c26debb27c7dead">pixy_save_full_frame</a></div><div class="ttdeci">int pixy_save_full_frame(FILE_HANDLE *handle)</div><div class="ttdef"><b>Definition:</b> <a href="pixy__frame_8c_source.html#l00065">pixy_frame.c:65</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s_html"><div class="ttname"><a href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html">FILE_LIST_ENTRY_S</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00042">screen_photomode_save.c:42</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a77e479b1ae98529fa834688a147ca5af"><div class="ttname"><a href="screen__photomode__save_8c.html#a77e479b1ae98529fa834688a147ca5af">fontheight</a></div><div class="ttdeci">static int fontheight</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00037">screen_photomode_save.c:37</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba39ecd2c0ac98899231edab64bf304e05">saving</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a969b249abfb1776e2cc9567db889b83f"><div class="ttname"><a href="screen__photomode__save_8c.html#a969b249abfb1776e2cc9567db889b83f">a_area</a></div><div class="ttdeci">static TOUCH_AREA_STRUCT a_area</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00027">screen_photomode_save.c:27</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_aa377184ba406b3f0c4ac18c935378204"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#aa377184ba406b3f0c4ac18c935378204">TOUCH_AREA_STRUCT::y2</a></div><div class="ttdeci">uint16_t y2</div><div class="ttdoc">Bottom Right Y-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00077">touch.h:77</a></div></div>
|
|
<div class="ttc" id="group__pixy_html_ga72a2cd126f6a5f67842e5ff66424ccb0"><div class="ttname"><a href="group__pixy.html#ga72a2cd126f6a5f67842e5ff66424ccb0">pixy_service</a></div><div class="ttdeci">int pixy_service()</div></div>
|
|
<div class="ttc" id="group__filesystem_html_gabd043128e80a4f0573b1360d921b046c"><div class="ttname"><a href="group__filesystem.html#gabd043128e80a4f0573b1360d921b046c">filesystem_file_open</a></div><div class="ttdeci">FILE_HANDLE * filesystem_file_open(const char *filename)</div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8c_source.html#l00033">filesystem.c:33</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a5b355141d49e5da4140613bd88d73549"><div class="ttname"><a href="screen__photomode__save_8c.html#a5b355141d49e5da4140613bd88d73549">state</a></div><div class="ttdeci">static enum @0 state</div></div>
|
|
<div class="ttc" id="group__filesystem_html_ga0e6cc31bf4c889249e13254306994c2f"><div class="ttname"><a href="group__filesystem.html#ga0e6cc31bf4c889249e13254306994c2f">filesystem_file_close</a></div><div class="ttdeci">void filesystem_file_close(FILE_HANDLE *handle)</div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8c_source.html#l00038">filesystem.c:38</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba2e804b7c8163d212e6231f5228f73ce9"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba2e804b7c8163d212e6231f5228f73ce9">init</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_a4b44f431c154678005298b0f0618cd37"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4b44f431c154678005298b0f0618cd37">TOUCH_AREA_STRUCT::callback</a></div><div class="ttdeci">TOUCH_CALLBACK callback</div><div class="ttdoc">Callback which is executed when an event occurred in this Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00078">touch.h:78</a></div></div>
|
|
<div class="ttc" id="group__filesystem_html_gga07e357318d9528f9d2df7e5c86c81a3ba68f4a0b4d65d116a6fe51978a608b79a"><div class="ttname"><a href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba68f4a0b4d65d116a6fe51978a608b79a">F_ARC</a></div><div class="ttdoc">File has the archive flag set (probably unused) </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00037">filesystem.h:37</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___s_t_r_u_c_t_html_ae96bbe3347b319ee7bdbd1f2e2ba9f5b"><div class="ttname"><a href="struct_f_i_l_e___s_t_r_u_c_t.html#ae96bbe3347b319ee7bdbd1f2e2ba9f5b">FILE_STRUCT::fname</a></div><div class="ttdeci">char * fname</div><div class="ttdoc">File/Directory name. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00066">filesystem.h:66</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_ac5bc000f8954f38b7a641a485a26bae7"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#ac5bc000f8954f38b7a641a485a26bae7">TOUCH_AREA_STRUCT::x2</a></div><div class="ttdeci">uint16_t x2</div><div class="ttdoc">Bottom Right X-Coordinate of Area. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00076">touch.h:76</a></div></div>
|
|
<div class="ttc" id="group__filesystem_html_gga07e357318d9528f9d2df7e5c86c81a3ba4a52b8103f1c46e28720230e62cc18f0"><div class="ttname"><a href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba4a52b8103f1c46e28720230e62cc18f0">F_SYS</a></div><div class="ttdoc">File is a system file. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00035">filesystem.h:35</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___d_a_t_e___s_t_r_u_c_t_html_a2a7fd6ec9f3bf84d7c564990dcf0bfb8"><div class="ttname"><a href="struct_f_i_l_e___d_a_t_e___s_t_r_u_c_t.html#a2a7fd6ec9f3bf84d7c564990dcf0bfb8">FILE_DATE_STRUCT::year</a></div><div class="ttdeci">unsigned year</div><div class="ttdoc">year from 1980 (0..127) </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00044">filesystem.h:44</a></div></div>
|
|
<div class="ttc" id="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t_html_a256a3eb1c4d0a61a23ff722736ed18df"><div class="ttname"><a href="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t.html#a256a3eb1c4d0a61a23ff722736ed18df">DIRECTORY_STRUCT::num_files</a></div><div class="ttdeci">uint16_t num_files</div><div class="ttdoc">Number of files/directories in this directory. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00074">filesystem.h:74</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___d_a_t_e___s_t_r_u_c_t_html_a1f902d56334cc3e0a86d4b08f34bfff6"><div class="ttname"><a href="struct_f_i_l_e___d_a_t_e___s_t_r_u_c_t.html#a1f902d56334cc3e0a86d4b08f34bfff6">FILE_DATE_STRUCT::month</a></div><div class="ttdeci">unsigned month</div><div class="ttdoc">month (1..12) </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00045">filesystem.h:45</a></div></div>
|
|
<div class="ttc" id="group__filesystem_html_gae7124857f3ab32f6032ef129f2a80000"><div class="ttname"><a href="group__filesystem.html#gae7124857f3ab32f6032ef129f2a80000">filesystem_file_write</a></div><div class="ttdeci">FILE_STATUS filesystem_file_write(FILE_HANDLE *handle, uint8_t *buf, uint32_t size)</div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8c_source.html#l00053">filesystem.c:53</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___t_i_m_e___s_t_r_u_c_t_html_a3e054086f983d0603a8919338354951b"><div class="ttname"><a href="struct_f_i_l_e___t_i_m_e___s_t_r_u_c_t.html#a3e054086f983d0603a8919338354951b">FILE_TIME_STRUCT::min</a></div><div class="ttdeci">unsigned min</div><div class="ttdoc">minute (0..59 </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00054">filesystem.h:54</a></div></div>
|
|
<div class="ttc" id="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t_html"><div class="ttname"><a href="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t.html">DIRECTORY_STRUCT</a></div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00072">filesystem.h:72</a></div></div>
|
|
<div class="ttc" id="group__filesystem_html_gga07e357318d9528f9d2df7e5c86c81a3baa87f9e9b73e66d81563fe63aba76cc7d"><div class="ttname"><a href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3baa87f9e9b73e66d81563fe63aba76cc7d">F_HID</a></div><div class="ttdoc">File is hidden. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00034">filesystem.h:34</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s_html_acfb6005bc1c45e31b1cb133feea8edb8"><div class="ttname"><a href="struct_f_i_l_e___l_i_s_t___e_n_t_r_y___s.html#acfb6005bc1c45e31b1cb133feea8edb8">FILE_LIST_ENTRY_S::next</a></div><div class="ttdeci">struct FILE_LIST_ENTRY_S * next</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00044">screen_photomode_save.c:44</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___t_i_m_e___s_t_r_u_c_t_html_a7f39b6fc12f0b04a38625ff3040dd30c"><div class="ttname"><a href="struct_f_i_l_e___t_i_m_e___s_t_r_u_c_t.html#a7f39b6fc12f0b04a38625ff3040dd30c">FILE_TIME_STRUCT::hour</a></div><div class="ttdeci">unsigned hour</div><div class="ttdoc">hour (0..23) </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00053">filesystem.h:53</a></div></div>
|
|
<div class="ttc" id="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t_html_a4026095999c2fd7a91f9bb91390647a4"><div class="ttname"><a href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html#a4026095999c2fd7a91f9bb91390647a4">TOUCH_AREA_STRUCT::hookedActions</a></div><div class="ttdeci">TOUCH_ACTION hookedActions</div><div class="ttdoc">Actions to listen to. </div><div class="ttdef"><b>Definition:</b> <a href="touch_8h_source.html#l00073">touch.h:73</a></div></div>
|
|
<div class="ttc" id="group__filesystem_html_ggab08f51089a5ddbb470a1a36a9478dda4ab16a72615f8613168ea14797c243fdfd"><div class="ttname"><a href="group__filesystem.html#ggab08f51089a5ddbb470a1a36a9478dda4ab16a72615f8613168ea14797c243fdfd">F_OK</a></div><div class="ttdoc">Everything ok. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00091">filesystem.h:91</a></div></div>
|
|
<div class="ttc" id="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t_html_a87f6b6d5b8df736e7d52923a19131f86"><div class="ttname"><a href="struct_d_i_r_e_c_t_o_r_y___s_t_r_u_c_t.html#a87f6b6d5b8df736e7d52923a19131f86">DIRECTORY_STRUCT::files</a></div><div class="ttdeci">FILE_STRUCT * files</div><div class="ttdoc">An array with num_files FILE_STRUCT entries. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00075">filesystem.h:75</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___s_t_r_u_c_t_html"><div class="ttname"><a href="struct_f_i_l_e___s_t_r_u_c_t.html">FILE_STRUCT</a></div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00061">filesystem.h:61</a></div></div>
|
|
<div class="ttc" id="group__filesystem_html_ga8b1099cbd3464fbe64f2010f16d87101"><div class="ttname"><a href="group__filesystem.html#ga8b1099cbd3464fbe64f2010f16d87101">filesystem_dir_open</a></div><div class="ttdeci">DIRECTORY_STRUCT * filesystem_dir_open(const char *path)</div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8c_source.html#l00023">filesystem.c:23</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga79d10e672abb49ad63eeaa8aaef57c38"><div class="ttname"><a href="group__tft.html#ga79d10e672abb49ad63eeaa8aaef57c38">BLUE</a></div><div class="ttdeci">#define BLUE</div><div class="ttdef"><b>Definition:</b> <a href="tft_8h_source.html#l00052">tft.h:52</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a2e097772251828c6d76b32677269b7ab"><div class="ttname"><a href="screen__photomode__save_8c.html#a2e097772251828c6d76b32677269b7ab">liststart</a></div><div class="ttdeci">static int liststart</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00038">screen_photomode_save.c:38</a></div></div>
|
|
<div class="ttc" id="group__filesystem_html_gga07e357318d9528f9d2df7e5c86c81a3ba9d0e592d6c03a8ea881767c87935c790"><div class="ttname"><a href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba9d0e592d6c03a8ea881767c87935c790">F_DIR</a></div><div class="ttdoc">It's a directory and not a file. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00036">filesystem.h:36</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a18f32ab8e9f73f5ff658f876ba7cb95f"><div class="ttname"><a href="screen__photomode__save_8c.html#a18f32ab8e9f73f5ff658f876ba7cb95f">num_files_ok</a></div><div class="ttdeci">static int num_files_ok</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00035">screen_photomode_save.c:35</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199"><div class="ttname"><a href="screen__photomode__save_8c.html#a06fc87d81c62e9abb8790b6e5713c55ba9041c40ebd1ff09fe453b594ad748199">done</a></div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00036">screen_photomode_save.c:36</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_ad03f8d4c2501ad76eb27c418b7c68d0a"><div class="ttname"><a href="screen__photomode__save_8c.html#ad03f8d4c2501ad76eb27c418b7c68d0a">files_ok</a></div><div class="ttdeci">static FILE_LIST_ENTRY * files_ok</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00047">screen_photomode_save.c:47</a></div></div>
|
|
<div class="ttc" id="group__filesystem_html_gga07e357318d9528f9d2df7e5c86c81a3ba56340dd998fe228468cb60406dc3f5df"><div class="ttname"><a href="group__filesystem.html#gga07e357318d9528f9d2df7e5c86c81a3ba56340dd998fe228468cb60406dc3f5df">F_RDO</a></div><div class="ttdoc">File is readonly. You cannot write to it. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00033">filesystem.h:33</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a3d1decbb81b0f181eb0561c0f5f8fe3c"><div class="ttname"><a href="screen__photomode__save_8c.html#a3d1decbb81b0f181eb0561c0f5f8fe3c">touchCB</a></div><div class="ttdeci">static void touchCB(void *touchArea, TOUCH_ACTION triggeredAction)</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00050">screen_photomode_save.c:50</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a948204bf251793107f9095a4235f9c1e"><div class="ttname"><a href="screen__photomode__save_8c.html#a948204bf251793107f9095a4235f9c1e">picked_file</a></div><div class="ttdeci">static const char * picked_file</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00039">screen_photomode_save.c:39</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a30a7b9e347f9114242f4f4fffe2c9626"><div class="ttname"><a href="screen__photomode__save_8c.html#a30a7b9e347f9114242f4f4fffe2c9626">nomatch_text</a></div><div class="ttdeci">static const char * nomatch_text[]</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00073">screen_photomode_save.c:73</a></div></div>
|
|
<div class="ttc" id="group__filesystem_html_gab8001e040f37dc57b18e4155532b59ce"><div class="ttname"><a href="group__filesystem.html#gab8001e040f37dc57b18e4155532b59ce">filesystem_dir_close</a></div><div class="ttdeci">void filesystem_dir_close(DIRECTORY_STRUCT *dir)</div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8c_source.html#l00028">filesystem.c:28</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___s_t_r_u_c_t_html_a708226ca737e39bed0dc978eb31e3730"><div class="ttname"><a href="struct_f_i_l_e___s_t_r_u_c_t.html#a708226ca737e39bed0dc978eb31e3730">FILE_STRUCT::ftime</a></div><div class="ttdeci">FILE_TIME_STRUCT ftime</div><div class="ttdoc">Last modified time. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00064">filesystem.h:64</a></div></div>
|
|
<div class="ttc" id="group__tft_html_ga7b3b25cba33b07c303f3060fe41887f6"><div class="ttname"><a href="group__tft.html#ga7b3b25cba33b07c303f3060fe41887f6">BLACK</a></div><div class="ttdeci">#define BLACK</div><div class="ttdef"><b>Definition:</b> <a href="tft_8h_source.html#l00054">tft.h:54</a></div></div>
|
|
<div class="ttc" id="struct_f_i_l_e___s_t_r_u_c_t_html_aa5092484dbc5fc29a229feee0eae1246"><div class="ttname"><a href="struct_f_i_l_e___s_t_r_u_c_t.html#aa5092484dbc5fc29a229feee0eae1246">FILE_STRUCT::fsize</a></div><div class="ttdeci">uint32_t fsize</div><div class="ttdoc">File size in bytes. 0 for directories. </div><div class="ttdef"><b>Definition:</b> <a href="filesystem_8h_source.html#l00062">filesystem.h:62</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p><div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="screen__photomode__save_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph.png" border="0" usemap="#screen__photomode__save_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph" alt=""/></div>
|
|
<map name="screen__photomode__save_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph" id="screen__photomode__save_8c_a5e8f84ee8ff4bf827775c38ae6752509_cgraph">
|
|
<area shape="rect" id="node2" href="group__filesystem.html#ga8b1099cbd3464fbe64f2010f16d87101" title="filesystem_dir_open" alt="" coords="117,5,255,32"/><area shape="rect" id="node4" href="group__tft.html#gabf54943131990b366ce6875a0e1925f6" title="tft_print_line" alt="" coords="345,81,437,108"/><area shape="rect" id="node8" href="group__filesystem.html#gab8001e040f37dc57b18e4155532b59ce" title="filesystem_dir_close" alt="" coords="116,157,256,184"/><area shape="rect" id="node10" href="group__tft.html#ga765c521ee1b01ab0c34449936500291b" title="tft_print_formatted" alt="" coords="123,107,249,133"/><area shape="rect" id="node11" href="screen__photomode__save_8c.html#a3d1decbb81b0f181eb0561c0f5f8fe3c" title="touchCB" alt="" coords="150,208,222,235"/><area shape="rect" id="node14" href="group__touch.html#ga3adc36f55b7475b3f652c38c0e23d741" title="touch_register_area" alt="" coords="118,259,254,285"/><area shape="rect" id="node15" href="group__pixy.html#ga72a2cd126f6a5f67842e5ff66424ccb0" title="pixy_service" alt="" coords="139,309,233,336"/><area shape="rect" id="node16" href="group__filesystem.html#gabd043128e80a4f0573b1360d921b046c" title="filesystem_file_open" alt="" coords="117,360,255,387"/><area shape="rect" id="node18" href="group__filesystem.html#gac447af479c334caa207d6c279571d8a2" title="filesystem_file_seek" alt="" coords="685,411,824,437"/><area shape="rect" id="node20" href="group__filesystem.html#gae7124857f3ab32f6032ef129f2a80000" title="filesystem_file_write" alt="" coords="685,537,824,564"/><area shape="rect" id="node22" href="group__filesystem.html#ga0e6cc31bf4c889249e13254306994c2f" title="filesystem_file_close" alt="" coords="115,617,257,644"/><area shape="rect" id="node24" href="group__pixy__helper.html#gaeb47b641ad8f8cb10c26debb27c7dead" title="pixy_save_full_frame" alt="" coords="115,461,257,488"/><area shape="rect" id="node3" href="group__ll__filesystem.html#ga572cb127d4e8affa9701d8562397389e" title="ll_filesystem_dir_open" alt="" coords="315,5,466,32"/><area shape="rect" id="node5" href="group__ll__tft.html#gaf4b0b73ab01e1dc300ae65dc0ac029b6" title="ll_tft_num_fonts" alt="" coords="524,31,637,57"/><area shape="rect" id="node6" href="group__ll__tft.html#ga408570a2b70769255924792ce189f2c1" title="ll_tft_draw_char" alt="" coords="525,81,637,108"/><area shape="rect" id="node7" href="group__ll__tft.html#ga3639ec94b2239cc02b3c47a14f6637a3" title="ll_tft_font_width" alt="" coords="525,132,636,159"/><area shape="rect" id="node9" href="group__ll__filesystem.html#ga43292876112535a7cf9bb26201ed8096" title="ll_filesystem_dir_close" alt="" coords="314,157,467,184"/><area shape="rect" id="node12" href="group__touch.html#ga42b918ead4f536a63f79601ab2978227" title="touch_get_last_point" alt="" coords="319,208,462,235"/><area shape="rect" id="node13" href="group__touch.html#gaa7d6cd569335d0ddfc9eeab479f3a0a8" title="touch_unregister_area" alt="" coords="315,259,466,285"/><area shape="rect" id="node17" href="group__ll__filesystem.html#ga61e4a1cdb3435031c3a9df014ab21d08" title="ll_filesystem_file_open" alt="" coords="315,360,467,387"/><area shape="rect" id="node19" href="group__ll__filesystem.html#ga27b21c519c928bc7767fbdcbb9209148" title="ll_filesystem_file_seek" alt="" coords="872,411,1024,437"/><area shape="rect" id="node21" href="group__ll__filesystem.html#gab7ce3131ebbf7c556c9ebeea312fce02" title="ll_filesystem_file\l_write" alt="" coords="889,530,1007,571"/><area shape="rect" id="node23" href="group__ll__filesystem.html#ga847113d1c2bffa87807991e2c047bd17" title="ll_filesystem_file\l_close" alt="" coords="332,614,449,655"/><area shape="rect" id="node25" href="group__pixy__helper.html#gaf0820ad9bb1ae6791fecb3916372c479" title="pixy_save_cropped_frame" alt="" coords="305,461,476,488"/><area shape="rect" id="node26" href="group__pixy.html#ga3d55779001cc649ed85be1a92f09892d" title="Send a command to Pixy. " alt="" coords="525,512,636,539"/><area shape="rect" id="node27" href="pixy__frame_8c.html#a9b12014ced2f09e5e7d6646b966552ef" title="saveBA81" alt="" coords="541,461,621,488"/><area shape="rect" id="node28" href="pixy__frame_8c.html#ac0bb3b512eb46a18bda67293e4453d76" title="interpolateBayer" alt="" coords="697,461,813,488"/></map>
|
|
</div>
|
|
</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Variable Documentation</h2>
|
|
<a class="anchor" id="a969b249abfb1776e2cc9567db889b83f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_t_o_u_c_h___a_r_e_a___s_t_r_u_c_t.html">TOUCH_AREA_STRUCT</a> a_area</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00027">27</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae5d8f6a72bbdbe109bc151bfef8ac9a6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="struct_b_u_t_t_o_n___s_t_r_u_c_t.html">BUTTON_STRUCT</a> b_back</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00026">26</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="acd7de4ca4cce429ec77297ab370bb849"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">unsigned char bmpheader_data[0x7A]</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
|
|
<div class="line"> 0x42, 0x4d, 0xe2, 0xe3, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7a, 0x00,</div>
|
|
<div class="line"> 0x00, 0x00, 0x6c, 0x00, 0x00, 0x00, 0x3e, 0x01, 0x00, 0x00, 0xc6, 0x00,</div>
|
|
<div class="line"> 0x00, 0x00, 0x01, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0xe3,</div>
|
|
<div class="line"> 0x02, 0x00, 0x13, 0x0b, 0x00, 0x00, 0x13, 0x0b, 0x00, 0x00, 0x00, 0x00,</div>
|
|
<div class="line"> 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x47, 0x52, 0x73, 0x00, 0x00,</div>
|
|
<div class="line"> 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,</div>
|
|
<div class="line"> 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,</div>
|
|
<div class="line"> 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,</div>
|
|
<div class="line"> 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,</div>
|
|
<div class="line"> 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,</div>
|
|
<div class="line"> 0x00, 0x00</div>
|
|
<div class="line">}</div>
|
|
</div><!-- fragment -->
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00093">93</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad03f8d4c2501ad76eb27c418b7c68d0a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="screen__photomode__save_8c.html#ad24f527173a4d19eccd1b85180436b29">FILE_LIST_ENTRY</a>* files_ok</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00047">47</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a77e479b1ae98529fa834688a147ca5af"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int fontheight</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00037">37</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2e097772251828c6d76b32677269b7ab"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int liststart</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00038">38</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a30a7b9e347f9114242f4f4fffe2c9626"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const char* nomatch_text[]</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
|
|
<div class="line"> <span class="stringliteral">"Due to limitations of the filesystem"</span>,</div>
|
|
<div class="line"> <span class="stringliteral">"implementation you can only write to"</span>,</div>
|
|
<div class="line"> <span class="stringliteral">"existing files."</span>,</div>
|
|
<div class="line"> <span class="stringliteral">""</span>,</div>
|
|
<div class="line"> <span class="stringliteral">"The files need to have a .bmp"</span>,</div>
|
|
<div class="line"> <span class="stringliteral">"extension and must be at least"</span>,</div>
|
|
<div class="line"> <span class="stringliteral">"189410 bytes (185kb) large."</span>,</div>
|
|
<div class="line"> <span class="stringliteral">"Unfortunately there were no such"</span>,</div>
|
|
<div class="line"> <span class="stringliteral">"files found in the root directory."</span>,</div>
|
|
<div class="line"> <span class="stringliteral">""</span>,</div>
|
|
<div class="line"> <span class="stringliteral">"Please create some files and come"</span>,</div>
|
|
<div class="line"> <span class="stringliteral">"back again."</span>,</div>
|
|
<div class="line"> NULL</div>
|
|
<div class="line">}</div>
|
|
</div><!-- fragment -->
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00073">73</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a18f32ab8e9f73f5ff658f876ba7cb95f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">int num_files_ok</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00035">35</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a948204bf251793107f9095a4235f9c1e"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const char* picked_file</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00039">39</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a939fdd806f427cc8505ed817e28cce9d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="group__screen.html#gaf7783b8728d6d218aa9e3b29eaf9689c">SCREEN_STRUCT</a> screen</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
|
|
<div class="line"> <a class="code" href="screen__photomode__save_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa">enter</a>,</div>
|
|
<div class="line"> <a class="code" href="screen__photomode__save_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8">leave</a>,</div>
|
|
<div class="line"> <a class="code" href="screen__photomode__save_8c.html#a5e8f84ee8ff4bf827775c38ae6752509">update</a></div>
|
|
<div class="line">}</div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a5e8f84ee8ff4bf827775c38ae6752509"><div class="ttname"><a href="screen__photomode__save_8c.html#a5e8f84ee8ff4bf827775c38ae6752509">update</a></div><div class="ttdeci">static void update(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00135">screen_photomode_save.c:135</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_a3017cd14eca2b9e67a69e7ea559b5eaa"><div class="ttname"><a href="screen__photomode__save_8c.html#a3017cd14eca2b9e67a69e7ea559b5eaa">enter</a></div><div class="ttdeci">static void enter(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00108">screen_photomode_save.c:108</a></div></div>
|
|
<div class="ttc" id="screen__photomode__save_8c_html_acd1409088e83cf2a8ba2cf96dd9b52f8"><div class="ttname"><a href="screen__photomode__save_8c.html#acd1409088e83cf2a8ba2cf96dd9b52f8">leave</a></div><div class="ttdeci">static void leave(void *screen)</div><div class="ttdef"><b>Definition:</b> <a href="screen__photomode__save_8c_source.html#l00310">screen_photomode_save.c:310</a></div></div>
|
|
</div><!-- fragment -->
|
|
<p>Definition at line <a class="el" href="screen__photomode__save_8c_source.html#l00332">332</a> of file <a class="el" href="screen__photomode__save_8c_source.html">screen_photomode_save.c</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5b355141d49e5da4140613bd88d73549"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">enum { ... } state</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Mon Jun 8 2015 11:01:18 for discoverpixy by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.9.1
|
|
</small></address>
|
|
</body>
|
|
</html>
|