本文整理汇总了C++中ZSoftKey::height方法的典型用法代码示例。如果您正苦于以下问题:C++ ZSoftKey::height方法的具体用法?C++ ZSoftKey::height怎么用?C++ ZSoftKey::height使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZSoftKey
的用法示例。
在下文中一共展示了ZSoftKey::height方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CreateWindow
//.........这里部分代码省略.........
CodeMenu = new ZOptionsMenu ( rect, softKey, NULL, 0 );
CodeMenu->setItemSpacing(10);
#if !(defined(EZX_Z6) || defined(EZX_V8))
CodeMenu->insertItem ( "UTF-8", NULL, NULL, true, 0, 0, false, true, true );
CodeMenu->insertItem ( "Win1251", NULL, NULL, true, 1, 1, false, true );
CodeMenu->insertItem ( "KOI8-R", NULL, NULL, true, 2, 2, false, true );
CodeMenu->insertItem ( "ISO8859-1", NULL, NULL, true, 3, 3, false, true );
CodeMenu->insertItem ( "ISO8859-2", NULL, NULL, true, 4, 4, false, true );
CodeMenu->insertItem ( "ISO8859-5", NULL, NULL, true, 5, 5, false, true );
CodeMenu->insertItem ( "KOI8-U", NULL, NULL, true, 6, 6, false, true );
CodeMenu->insertItem ( "Big5", NULL, NULL, true, 7, 7, false, true );
CodeMenu->insertItem ( "GBK", NULL, NULL, true, 8, 8, false, true );
#else
CodeMenu->insertItem ( "UTF-8", NULL, NULL, NULL, true, true, true, 0, 0 );
CodeMenu->insertItem ( "Win1251", NULL, NULL, NULL, true, true, false, 1, 1 );
CodeMenu->insertItem ( "KOI8-R", NULL, NULL, NULL, true, true, false, 2, 2 );
CodeMenu->insertItem ( "ISO8859-1", NULL, NULL, NULL, true, true, false, 3, 3 );
CodeMenu->insertItem ( "ISO8859-2", NULL, NULL, NULL, true, true, false, 4, 4 );
CodeMenu->insertItem ( "ISO8859-5", NULL, NULL, NULL, true, true, false, 5, 5 );
CodeMenu->insertItem ( "KOI8-U", NULL, NULL, NULL, true, true, false, 6, 6 );
CodeMenu->insertItem ( "Big5", NULL, NULL, NULL, true, true, false, 7, 7 );
CodeMenu->insertItem ( "GBK", NULL, NULL, NULL, true, true, false, 8, 8 );
#endif
#define CODEC_COUNT 9
connect( CodeMenu, SIGNAL( activated( int ) ), this, SLOT( slot_codecChenged( int ) ) );
pm->load(ProgDir+ "/img/fake.png");
MainMenu->insertItem ( MENU_FIX+lng->getString("CODE"), CodeMenu, pm, true , 3, 3 );
#ifdef MDI
DlgMenu = new ZOptionsMenu ( rect, softKey, NULL, 0 );
DlgMenu->setItemSpacing(10);
connect( DlgMenu, SIGNAL( activated( int ) ), this, SLOT( slot_dlgChenged( int ) ) );
pm->load(ProgDir+ "/img/document.png");
MainMenu->insertItem ( MENU_FIX+lng->getString("DLG"), DlgMenu, pm, true , 3, 3 );
buildDlgMenu();
#endif
pm->load(ProgDir+ "/img/find.png");
MainMenu->insertItem ( MENU_FIX+lng->getString("SEARCH"), NULL, pm, true, 4, 4 );
pm->load(ProgDir+ "/img/options.png");
MainMenu->insertItem ( MENU_FIX+lng->getString("OPTION"), NULL, pm, true, 5, 5 );
pm->load(ProgDir+ "/img/about.png");
MainMenu->insertItem ( MENU_FIX+lng->getString("ABOUT"), NULL, pm, true, 6, 6 );
pm->load(ProgDir+ "/img/exit.png");
MainMenu->insertItem ( MENU_FIX+lng->getString("EXIT"), NULL, pm, true, 7, 7 );
MainMenu->connectItem ( 4, this, SLOT ( slot_fileFind() ) );
MainMenu->connectItem ( 5, this, SLOT ( slot_settings() ) );
MainMenu->connectItem ( 6, this, SLOT ( slot_about() ) );
MainMenu->connectItem ( 7, this, SLOT ( slot_exit() ) );
softKey->setTextForOptMenuHide(lng->getString("FILE"));
softKey->setText ( ZSoftKey::LEFT, lng->getString("FILE"), ( ZSoftKey::TEXT_PRIORITY ) 0 );
softKey->setText ( ZSoftKey::RIGHT, lng->getString("EXIT"), ( ZSoftKey::TEXT_PRIORITY ) 0 );
softKey->setOptMenu ( ZSoftKey::LEFT, MainMenu );
softKey->setClickedSlot ( ZSoftKey::RIGHT, this, SLOT ( slot_exit() ) );
#if defined(EZX_ZN5) || defined(EZX_U9) || defined(EZX_Z6W)
edit->setFixedHeight( SCREEN_HEIGHT - headerSize().height() - softKey->height());
#endif
setSoftKey ( softKey );
///Connect std signal
#ifndef EZX_VE66
connect( qApp, SIGNAL(signalRaise()), this, SLOT(slot_Raise()) );
connect( qApp, SIGNAL(askReturnToIdle(int)), this, SLOT(slot_ReturnToIdle(int)) );
#endif
///init peremen
textCode = 0;
pos = NULL;
isMarck = false;
///load file if need
if ( !cfg_autoOpen )
sFileName = "";
QFile file;
if ( qApp->argc() > 1 )
{
sFileName = "";
if ( file.exists(QString::fromUtf8(qApp->argv()[1])) )
sFileName = QString::fromUtf8(qApp->argv()[1]);
else
if ( qApp->argc() > 2 )
if ( file.exists(QString::fromUtf8(qApp->argv()[2])) )
sFileName = QString::fromUtf8(qApp->argv()[2]);
sFilePath = getFilePath(sFileName);
sFileName = getFileName(sFileName);
}
if ( sFileName.isEmpty() || sFilePath.isEmpty() )
slot_fileNew();
else
load(sFilePath+sFileName);
}