Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Resource Class Reference

The Resource class provides access to named resources. More...

#include </home/clem/local/src/opie/library/resource.h>

List of all members.

Public Member Functions

 Resource ()

Static Public Member Functions

static QImage loadImage (const QString &name)
static QPixmap loadPixmap (const QString &name)
static QBitmap loadBitmap (const QString &name)
static QString findPixmap (const QString &name)
static QIconSet loadIconSet (const QString &name)
static QString findSound (const QString &name)
static QStringList allSounds ()


Detailed Description

The Resource class provides access to named resources.

The resources may be provided from files or other sources.

The allSounds() function returns a list of all the sounds available. A particular sound can be searched for using findSound().

Images can be loaded with loadImage(), loadPixmap(), loadBitmap() and loadIconSet().

Definition at line 28 of file resource.h.


Constructor & Destructor Documentation

Resource::Resource  )  [inline]
 

For internal use only.

Definition at line 31 of file resource.h.


Member Function Documentation

static QStringList Resource::allSounds  )  [static]
 

static QString Resource::findPixmap const QString name  )  [static]
 

Referenced by Opie::Core::OResource::findPixmap(), and load_image().

static QString Resource::findSound const QString name  )  [static]
 

Referenced by CardMonitor::getStatusPcmcia(), and CardMonitor::getStatusSd().

static QBitmap Resource::loadBitmap const QString name  )  [static]
 

QIconSet Resource::loadIconSet const QString name  )  [static]
 

Returns a QIconSet for the pixmap named name. A disabled icon is generated that conforms to the Qtopia look & feel. You should avoid including any filename type extension (eg. .png, .xpm).

Referenced by ImageViewer::ImageViewer(), FileBrowser::init(), MainWindow::makeMenu(), OpieTooth::ObexDialog::ObexDialog(), OFileViewFileListView::OFileViewFileListView(), QPdfDlg::QPdfDlg(), and TimeZoneSelector::TimeZoneSelector().

static QImage Resource::loadImage const QString name  )  [static]
 

Referenced by AppLnkImagePrivate::big(), Calibrate::Calibrate(), Opie::Core::OResource::loadImage(), MimeTypeData::loadPixmaps(), OTabWidget::loadSmooth(), NewDocItem::NewDocItem(), AppLnk::pixmap(), Resource::loadPixmap(), AppLnk::setIcon(), and AppLnkImagePrivate::small().

QPixmap Resource::loadPixmap const QString name  )  [static]
 

Referenced by AccountEditor::AccountEditor(), AccountListItem::AccountListItem(), OFileViewFileListView::addDir(), OFileViewFileListView::addFile(), OpieObex::SendWidget::addReceiver(), AttachViewItem::AttachViewItem(), BenD::BenD(), OpieTooth::BlueBase::BlueBase(), Network::choices(), ComposerBase::ComposerBase(), DateBookMonthHeader::DateBookMonthHeader(), OpieTooth::BTIconLoader::deviceIcon(), NetworkSetup::devicePixmap(), TabManager::editItem(), EmailListItem::EmailListItem(), FileItem::FileItem(), FileSelector::FileSelector(), FolderWidgetItem::FolderWidgetItem(), TheNSResources::getPixmap(), ImageViewer::ImageViewer(), PackageListItem::init(), WriteMail::init(), ReadMail::init(), EmailClient::init(), FileBrowser::init(), SIMpad::initButtons(), Zaurus::initButtons(), iPAQ::initButtons(), Yopy::initButtons(), Opie::ODevice::initButtons(), Datebook::MainWindow::initUI(), Opietooth2::OTIcons::loadPixmap(), main(), MainView::MainView(), Datebook::MainWindow::MainWindow(), MainWindowBase::MainWindowBase(), MainWindow::makeMenu(), OWait::OWait(), MailApplet::paintEvent(), QPdfDlg::QPdfDlg(), Resource::loadBitmap(), Resource::loadIconSet(), Opie::Internal::RoHFeedback::RoHFeedback(), OpieTooth::BTIconLoader::serviceIcon(), FileView::showFileMenu(), TabMainWindow::TabMainWindow(), TaskEditorStatus::TaskEditorStatus(), OpieObex::SendWidget::toggle_receiver(), and ViewAtt::ViewAtt().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:50:53 2005 for OPIE by  doxygen 1.4.2