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

📄 imageselector.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia2/imageselector.cpp:45 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>ImageSelector Class</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>ImageSelector Class Reference</h1><p>The ImageSelector widget provides a means of selecting animage from a list of thumbnails.<a href="#details">More...</a><p><tt>#include &lt;<a href="imageselector-h.html">imageselector.h</a>&gt;</tt><p><a href="imageselector-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#ImageSelector"><b>ImageSelector</b></a> ( QWidget&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, const&nbsp;QString&nbsp;&amp;&nbsp;srcdir = QString::null, int&nbsp;wflags = 0 )</div></li><li><div class=fn><a href="#~ImageSelector"><b>~ImageSelector</b></a> ( void )</div></li><li><div class=fn>QString <a href="#selectedFilename"><b>selectedFilename</b></a> ( void ) const</div></li><li><div class=fn>DocLnk <a href="#selectedDocument"><b>selectedDocument</b></a> ( void ) const</div></li><li><div class=fn>QPixmap <a href="#selectedImage"><b>selectedImage</b></a> ( const&nbsp;int&nbsp;width, const&nbsp;int&nbsp;height ) const</div></li><li><div class=fn>QValueList&lt;DocLnk&gt; <a href="#fileList"><b>fileList</b></a> () const</div></li><li><div class=fn>void <a href="#setThumbnailSize"><b>setThumbnailSize</b></a> ( const&nbsp;int&nbsp;pixels )</div></li><li><div class=fn>int <a href="#thumbnailSize"><b>thumbnailSize</b></a> ( void ) const</div></li><li><div class=fn>void <a href="#showImageView"><b>showImageView</b></a> ( bool&nbsp;show, bool&nbsp;fullscreen = FALSE )</div></li><li><div class=fn>bool <b>imageViewVisible</b> () const</div></li><li><div class=fn>ContextMenu * <b>menu</b> () const</div></li><li><div class=fn>void <b>setCategory</b> ( int )</div></li></ul><h2>Signals</h2><ul><li><div class=fn>void <b>selected</b> ( const DocLnk &amp; )</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The ImageSelector widget provides a means of selecting animage from a list of thumbnails.<p> This class presents a dialog of thumbnail view of available images.Thumbnails are stored in the calling applications' pixmap cache.To retrieve the image directly from the cache, append "_tv" to thefilename returned via <a href="#selectedFilename">selectedFilename</a>() or the selected() signal.<p> First availability: Qtopia 2.0<p> <p>See also <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="ImageSelector"></a>ImageSelector::ImageSelector ( QWidget&nbsp;*&nbsp;parent = 0, const&nbsp;char&nbsp;*&nbsp;name = 0, const&nbsp;QString&nbsp;&amp;&nbsp;srcdir = QString::null, int&nbsp;wflags = 0 )</h3>Constructs an ImageSelector widget.<p> <em>parent</em>, <em>name</em>, <em>modal</em>, and <em>wflags</em> are the standard Qt QDialog flags.<em>srcdir</em> refers to base directory where images may be located.  By default,this is "Documents", referring to the Qtopia Documents area.  If you requireaccess to a particular directory, specify the path.<p> Example:<pre>    QString directory = QPEApplication::<a href="qpeapplication.html#qpeDir">qpeDir</a>() + "pics/wallpaper";    ImageSelector *is = new ImageSelector(this, "Wallpapers", TRUE, directory);  </pre> <h3 class=fn><a name="~ImageSelector"></a>ImageSelector::~ImageSelector ( void )</h3>Destroys the widget.<h3 class=fn>QValueList&lt;DocLnk&gt; <a name="fileList"></a>ImageSelector::fileList () const</h3>Returns a list of all documents.<h3 class=fn><a href="doclnk.html">DocLnk</a> <a name="selectedDocument"></a>ImageSelector::selectedDocument ( void ) const</h3>Returns the selected <a href="doclnk.html">DocLnk</a>, or anull <a href="doclnk.html">DocLnk</a> if no thumbnail is selected.<h3 class=fn>QString <a name="selectedFilename"></a>ImageSelector::selectedFilename ( void ) const</h3>Returns the full path to the selected file.<h3 class=fn>QPixmap <a name="selectedImage"></a>ImageSelector::selectedImage ( const&nbsp;int&nbsp;width, const&nbsp;int&nbsp;height ) const</h3>Returns a copy of the selected image, scaled to <em>width</em> x <em>height</em> pixels.Aspect ratio is preserved.<h3 class=fn>void <a name="setThumbnailSize"></a>ImageSelector::setThumbnailSize ( const&nbsp;int&nbsp;pixels )</h3>Sets the maximum size of the images in the view to <em>pixels</em> x <em>pixels</em>.<h3 class=fn>void <a name="showImageView"></a>ImageSelector::showImageView ( bool&nbsp;show, bool&nbsp;fullscreen = FALSE )</h3>Shows the image view if <em>show</em> is TRUE.  If <em>fullscreen</em> is TRUEthe view will use the whole screen.<h3 class=fn>int <a name="thumbnailSize"></a>ImageSelector::thumbnailSize ( void ) const</h3>Returns the size of the images in the thumbnail view.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright &copy; 1995-2004<a href="http://www.trolltech.com/">Trolltech</a>, all rights reserved.<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 + -