⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 files.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/doc/files.doc:1 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Qtopia Filesystem standards</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font>   <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top">  <table border="0" cellpadding="0" cellspacing="0" width="137">  <tr>  <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td>  <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td>  </tr>  </table></td></tr></table><h1 align=center>Qtopia Filesystem standards</h1><p> <p> Contents<!-- toc --><ul><li><a href="#1"> Introduction</a><li><a href="#2"> Standards</a></ul><!-- endtoc --><p> <h2> Introduction</h2><a name="1"></a><p> Qtopia software is installed in the <tt>/opt/Qtopia</tt> directory of thetarget system. Within this directory, applications must follow thefile placement standards described in this document.<p> <h2> Standards</h2><a name="2"></a><p> <center><table cellpadding="4" cellspacing="2" border="0"><tr bgcolor="#f0f0f0"><td valign="top"><b>appname</b><td valign="top">this is the application's executable filename. It should be globallyunique. Since this name is almost never seen or entered by theend-user, long and complex names such as "abc-textedit-3" can be used.<tr bgcolor="#d0d0d0"><td valign="top"><b>language</b><td valign="top">this is the ISO639 language code (e.g. "de" for German).</table></center><p> <a name="desktop"></a><big>/opt/Qtopia/apps/<b>category</b>/<b>appname</b>.desktop</big><p> The <b>category</b> must be one of the following:<ul><li> <b>Settings:</b> if the software configures functionality thathas an ongoing effect on the user's environment. Such softwarenever creates Documents.<li> <b>Games:</b> if the software is solely for amusement purposes.<li> <b>Applications:</b> for all other software.</ul><p> These categories have been chosen and defined in this way because it is very easy for the average userto differentiate between them.<p> To install software in other categories would create confusion and should be avoided. For example,you should <em>not</em> attempt to categorize your software as a "Utility",since it is difficult to differentiate this category fromthe Settings and Applications categories (it falls somewhere in between).<p> <big>/opt/Qtopia/bin/<b>appname</b></big><p> This is the executable program. Note that it is<em>not</em> appropriate to use the same executable with arguments tomodify it's behaviour, since only one instance of each applicationwill be run (additional attempts to run the application will merely raisethe previous instance).<p> <big>/opt/Qtopia/pics/<b>appname</b>/...</big><p> Any image files the application needs to use should either be standardbuilt-in images, or be files in this application-specific directory.See the <a href="resource.html">Resource</a> class for an explanation of how to access thesefiles.<p> <big>/opt/Qtopia/apps/<b>Category/appname.desktop</b></big><p> The .desktop file specifies an entry in the launcher and the startmenu. The Category should be either Applications, Games, or Settings and shouldreflect the launcher Category in which you want the application to appear. The file format is similar to the file format used by the Unixdesktops KDE and Gnome. The format is as follows (lines beginning witha '#' are ignored as comments):<p> <pre>[Desktop Entry]# the line above is mandatory at the beginning of the file# Exec specifies the name of the executable that should be in /opt/Qtopia/binExec=executablename# This should always be Application for links to applications.Type=Application# Specifies the icon to be found in /opt/Qtopia/pics. Endings are autodetected.# The icons should be at least 32x32 and should smooth-scale well# from 14x14 to at least 48x48Icon=Iconfile# The mimetype entry specifies a comma separated list of mimetypes this application can handle.<a href="mimetype.html">MimeType</a>=/audio/mp3# the next lines specify the name of the application as it should appear in the launcher# and start menuName=My fancy application# and if you want to support different languages:Name[de]=Meine AnwendungThe whole file has to be encoded in utf8.</pre><p> <big>/opt/Qtopia/sounds/<b>appname</b>/...</big><p> Any sound files the application needs to use should either be standardbuilt-in sounds, or be files in this application-specific directory.See the <a href="resource.html">Resource</a> class for an explanation of how to access thesefiles.<p> <big>/opt/Qtopia/i18n/<b>language</b>/<b>appname</b>.qm</big><p> These files are translations of the software (see <a href="i18n-qtopia.html">Internationalization</a>).<p> <big>/opt/Qtopia/help/html/<b>appname</b><b>-suffixes</b>.html<p> These files provide the English online documentation of the software (the<b>-suffixes</b> is optional). Note that on-line documentation canrefer to images under the <tt>/opt/Qtopia/pics</tt> directory, so you canrefer to icons and other images explicitly without duplicating thefiles.<p> <big>/opt/Qtopia/help/<b>language</b>/html/<b>appname</b><b>-suffixes</b>.html</big><p> These files are the online documentation of the software (the<b>-suffixes</b> is optional), in the language specified.The suffixes are the choice of the application developer,but Qtopia will automatically connect the Help button in thewindow decorations to <b>appname</b>-<b>widgetname</b>.htmlif such a file exists, thus allowing different applicationwindows to have different associated help pages.<p> <big>/opt/Qtopia/lib/<b>appname</b>/...</big><p> Applications may put files in this directory as required.<p> <big>/opt/Qtopia/plugins/applets</big><p> Taskbar applets are placed in this directory.<p> <big>/opt/Qtopia/plugins/codecs</big><p> Mediaplayer codecs are placed in this directory.<p> <big>/opt/Qtopia/plugins/fontfactories</big><p> Font factory extensions are placed in this directory.<p> <big>/opt/Qtopia/plugins/inputmethods</big><p> Input Method plugins are placed in this directory.<p> <big>/opt/Qtopia/plugins/network</big><p> Network setup modules are placed in this directory.<p> <!-- eof --><p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright &copy; 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -