📄 preferencesdialog.h
字号:
/* Copyright (C) 2006 Lucas Gomez All Rights Reserved.
*
* This 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 software 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 software; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
*/
#ifndef __PREFERENCESDIALOG_H__
#define __PREFERENCESDIALOG_H__
// INCLUDES
#include <akndialog.h>
#include <aknnavide.h>
#include <akntabgrp.h>
#include <aknappui.h>
#include <BARSREAD.H>
#include "EncodingPrefSettingList.h"
#include "InputPrefSettingList.h"
#include "MiscPrefSettingList.h"
// CLASS FORWARDING
class CVncViewerAppUi;
// CLASS DECLARATION
class CPreferencesDialog : public CAknDialog
{
public: // New methods
CPreferencesDialog(TBool aReadOnly,CVncViewerAppUi* aCallback);
private:
// Destructor
~CPreferencesDialog();
// the control initializer function
void PreLayoutDynInitL();
TInt CountComponentControls() const;
CCoeControl* ComponentControl(TInt aIndex) const;
void ChangeCurrentPage();
// the function that collects final control values as well as
// checking the exit condition
TBool OkToExitL(TInt aButtonId);
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
public:
inline TBool GetAutoSelect() {return iEncodingSettingList->GetAutoSelect();}
inline TEncodings GetEncoding() {return static_cast<TEncodings>(iEncodingSettingList->GetEncoding());}
inline TInt GetColourLevel() {return iEncodingSettingList->GetColourLevel();}
inline TBool GetViewOnly() {return iInputSettingList->GetViewOnly();}
inline TBool GetAcceptClipboard() {return iInputSettingList->GetAcceptClipboard();}
inline TBool GetSendClipboard() {return iInputSettingList->GetSendClipboard();}
inline TBool GetShared() {return iMiscSettingList->GetShared();}
inline TBool GetUseLocalCursor() {return iMiscSettingList->GetLocalCursor();}
inline TBool GetFastCopyRect() {return iMiscSettingList->GetFastCopyRect();}
private: //data items
CVncViewerAppUi* iCallback;
CEncodingPrefSettingList* iEncodingSettingList;
CInputPrefSettingList* iInputSettingList;
CMiscPrefSettingList* iMiscSettingList;
CAknNavigationDecorator* iNaviDecorator;
TInt iCurrentPageInd;
TBool iReadOnly;
};
#endif // __PREFERENCESDIALOG_H__
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -