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

📄 bencoolensettingslistbox.h

📁 截屏软件
💻 H
字号:
/*
 * BencoolenSettingsListBox.h
 *
 * Copyright 2005 - 2007, Antony Pranata
 * http://www.antonypranata.com
 *
 * Project: Screenshot for Symbian OS
 * Header file to define constants used in the user interface.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef BENCOOLENSETTINGSLISTBOX_H
#define BENCOOLENSETTINGSLISTBOX_H

// INCLUDES
#include <symbianvariant.h>
#include <AknSettingItemList.h>

#include "Bencoolen.hrh"

// FORWARD DECLARATIONS
class CScreenShotData;

// CLASS DECLARATION

/**
 * CBencoolenSettingsListBox container control class to create
 * setting item list.
 */
class CBencoolenSettingsListBox: public CAknSettingItemList 
    {
public: // From CAknSettingItemList
    /**
     * Creates SettingItem.
     * @param identifier
     * @return pointer to CAknSettingItem object
     */
    CAknSettingItem* CreateSettingItemL(TInt identifier);

    /**
     * Sets List's item data.
     * @param aData data to set
     */
    void SetData(CScreenShotData* aScreenShotData);

    /**
     * Update iData with the value entered by the users.
     * This function has to be called when the users have
     * modified the file name or directory name.
     * This is needed because we cannot use the reference to
     * the file name and directory name of CScreenShotData
     * directly.
     */
    void UpdateData();
    
#if (__S60__ >= 203)

    /**
     * Called by framework when the layout or screen size is changed.
     */
    void HandleResourceChange(TInt aType);
    
#endif

private: // From CCoeControl
    /**
     * Called by framework when the size is changed.
     */
    void SizeChanged();

private: // Data
    CScreenShotData*        iScreenShotData; // not owned by this class
    TBuf<KTextMaxLength>    iDirectory;
    TBuf<KTextMaxLength>    iFileName;
    };

#endif // BENCOOLENSETTINGSLISTBOX_H

// End of File

⌨️ 快捷键说明

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