• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ ZSoftKey类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中ZSoftKey的典型用法代码示例。如果您正苦于以下问题:C++ ZSoftKey类的具体用法?C++ ZSoftKey怎么用?C++ ZSoftKey使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了ZSoftKey类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: FullScreenDialog

QOptionsDialog::QOptionsDialog(const std::string &id, const std::string &caption) :
    FullScreenDialog(caption.c_str()),
    ZLOptionsDialog(id),
    tabno(0)
{
	cap = caption;
	myTabWidget = new MyTabWidget(this);
	setContentWidget(myTabWidget);


	ZSoftKey *softKey = (ZSoftKey *)getCSTWidget(true);

	QRect rect;
	menu = new ZOptionsMenu(rect, softKey, NULL, 0, (ZSkinService::WidgetClsID)4);
	softKey->setOptMenu(ZSoftKey::LEFT, menu);
	softKey->setText(ZSoftKey::LEFT, "Menu", (ZSoftKey::TEXT_PRIORITY)0);

	QRect rect2;
	ZOptionsMenu * menu2 = new ZOptionsMenu(rect2, softKey, NULL, 0, (ZSkinService::WidgetClsID)4);
	menu2->insertItem(QString("Accept"), NULL, NULL, true, 0, 0);
	menu2->insertItem(QString("Cancel"), NULL, NULL, true, 1, 1 );
	softKey->setOptMenu(ZSoftKey::RIGHT, menu2);
	softKey->setText(ZSoftKey::RIGHT, "Done", (ZSoftKey::TEXT_PRIORITY)0);

	connect(menu, SIGNAL(activated(int)), this, SLOT(selectTab(int)));

	menu2->connectItem(0, this, SLOT(accept()));
	menu2->connectItem(1, this, SLOT(reject()));
}
开发者ID:xufooo,项目名称:fbreader-e2-test,代码行数:29,代码来源:QOptionsDialog.cpp


示例2: toLog

ZAddAppDlg::ZAddAppDlg()
    :MyBaseDlg()
{
	toLog("ZAddAppDlg: Start");	
  	setMainWidgetTitle(lng->getString("DLG_ADD"));
  	
	lbAppList = new ZListBox ( QString ( "%I%M" ), this, 0);
	lbAppList->setFixedWidth ( SCREEN_WHIDTH ); 
	lbAppList->sort(true);

	setContentWidget ( lbAppList );

	ZSoftKey *softKey = new ZSoftKey ( NULL, this, this );
	softKey->setText ( ZSoftKey::LEFT, lng->getString("ADD"), ( ZSoftKey::TEXT_PRIORITY ) 0 );
	softKey->setText ( ZSoftKey::RIGHT, lng->getString("CANCEL"), ( ZSoftKey::TEXT_PRIORITY ) 0 );
	softKey->setClickedSlot ( ZSoftKey::RIGHT, this, SLOT ( reject() ) );
	softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( accept() ) );
	setCSTWidget ( softKey );
	
	toLog("ZAddAppDlg: Build app list");
	
	procReg( CARD_REGISTRY );
	#ifdef OLD_PLATFORM
	procReg( USER_REGISTRY);
	#endif
	procReg( SYS_REGISTRY );
	procReg( INSTALLED_DB );

	toLog("ZAddAppDlg: End");
}
开发者ID:crutchwalkfactory,项目名称:ztaskman,代码行数:30,代码来源:ZAddApp.cpp


示例3: setMainWidgetTitle

//************************************************************************************************
//************************************** class ZFileOpenDialog ***********************************
//************************************************************************************************
ZFileOpenDialog::ZFileOpenDialog()
  :MyBaseDlg()
{
  setMainWidgetTitle ( "Cron" );

  browser = new ZListBox ( QString ( "%C18%I%M" ), this, 0);
  browser->setFixedWidth ( 240 );
  connect(browser, SIGNAL(returnPressed(ZListBoxItem *)), SLOT(brClicked()));

  sPath = "/";
  CargarBrowser( sPath );

  setContentWidget ( browser );
  
  ZSoftKey *softKey = new ZSoftKey ( NULL, this, this );

  QString ProgDir = QString ( qApp->argv() [0] ) ;
  int i = ProgDir.findRev ( "/" );
  ProgDir.remove ( i+1, ProgDir.length() - i );

  QString val; 
  ZConfig readlang("/ezxlocal/download/appwrite/setup/ezx_system.cfg", true);
  Idioma2 = "ezxlocal/download/mystuff/.system/LinXtend/usr/languages/" + readlang.readEntry(QString("SYS_SYSTEM_SET"), QString("LanguageType"), "en-us");
  if ( ! QFileInfo(Idioma2).isFile() ) Idioma2 = "/ezxlocal/download/mystuff/.system/LinXtend/usr/languages/en-us";

  ZConfig IDini(Idioma2, false);
  QString IDval = IDini.readEntry(QString("COMMON"), QString("MENU_SELECT"), "");
  softKey->setText ( ZSoftKey::LEFT, IDval, ( ZSoftKey::TEXT_PRIORITY ) 0 );
  IDval = IDini.readEntry(QString("COMMON"), QString("MENU_CANCEL"), "");
  softKey->setText ( ZSoftKey::RIGHT, IDval, ( ZSoftKey::TEXT_PRIORITY ) 0 );
  softKey->setClickedSlot ( ZSoftKey::RIGHT, this, SLOT ( reject() ) );
  softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( accept() ) );
  setCSTWidget ( softKey );
}
开发者ID:crutchwalkfactory,项目名称:motocakerteam,代码行数:37,代码来源:ZFileDlg.cpp


示例4: QFileInfo

void ZFonts::previewFont(QString sFontPath)
{
	QString sFontName = QFileInfo(sFontPath).baseName();

    QFontFactory* ffFactory = qt_fontmanager->factories.at(0);
    QDiskFont* dfFont = new QDiskFont(ffFactory, sFontName, false, 20, 0, "s", sFontPath);
    qt_fontmanager->diskfonts.append(dfFont);
    QFontDatabase::qwsAddDiskFont(dfFont);
    
	QFont fOrg = QFont::defaultFont();
	QFont fNew = fOrg;
	fNew.setFamily( sFontName );
	QFont::setDefaultFont( fNew );  

	ZSingleCaptureDlg* scdPreview = new ZSingleCaptureDlg(sFontName,"", ZSingleCaptureDlg::TypeTextField, this);
	scdPreview->enableAia(false);
	QPixmap pm( ProgDir+"/fonts.png" );
	scdPreview->setTitleIcon(pm);  
	                                               
	ZSoftKey* skKey = scdPreview->getSoftKey();
	skKey->disableClickedSlot(ZSoftKey::LEFT);
	skKey->setText(ZSoftKey::RIGHT, tr("TXT_RID_SOFTKEY_BACK","Back"), (ZSoftKey::TEXT_PRIORITY)0);
	skKey->setText(ZSoftKey::LEFT, "", (ZSoftKey::TEXT_PRIORITY)0);

	ZMultiLineEdit* mleText = scdPreview->getMultiLineEdit();
	mleText->setText(getViewText());
	mleText->setUnderline( false );
	mleText->setFocus();

	scdPreview->exec();
	delete scdPreview;
	
	QFont::setDefaultFont( fOrg );  	
}
开发者ID:OpenMagx,项目名称:open-magx-src,代码行数:34,代码来源:ZFonts.cpp


示例5: ZProgressDlg

void MainWidget::next(){
	//printf("connected()\n");
	
	pProgressDialog = new ZProgressDlg("", "Пожалуйста, подождите...", 140, 100, this);
	ZSoftKey* zsoft = pProgressDialog->getSoftKey();

	zsoft->disableClickedSlot(ZSoftKey::LEFT);
	zsoft->disableClickedSlot(ZSoftKey::RIGHT);

	zsoft->setText(ZSoftKey::LEFT, "", ZSoftKey::ZERO);
	zsoft->setText(ZSoftKey::RIGHT, "", ZSoftKey::ZERO);
	
	getProgress = 0;
	pProgressDialog->setProgress(getProgress);
	pProgressDialog->raise();
	pProgressDialog->show();

	if (!timer->isActive()) timer->start(500, FALSE);
	
	QString text1 = LineEdit1->text();
	
	text1 = decodeChar(text1); // TODO: to do something about it

	QString text = QString::fromUtf8(toPercentEncoding(text1));
	printf("Text=%s\n",text.latin1());
#if ALT_TRANSLATE
	QString url2 = QString(	"GET "
							"/ajax/services/language/translate?v=2.0&;hl=ru&q="
							+ QString(text)
							+ "&langpair="
							+ QString(lang_src)
							+ "|"
							+ QString(lang_dst) +
							" HTTP/1.1\r\n"
							"User-Agent: " "Mozilla/5.0" "\r\n"
							"Host: " "ajax.googleapis.com" "\r\n"
							"Connection: Close\r\n\r\n"							
							);
#else
	QString url2 = QString(	"GET "
							"/translate_a/t?client=t&sl="
							+ QString(lang_src)
							+ 	"&tl="
							+ QString(lang_dst) +
							+ "&text="
							+ QString(text) +
							" HTTP/1.1\r\n"
							"User-Agent: " "Mozilla/5.0" "\r\n"
							"Host: " "www.google.com " "\r\n"
							"Connection: Close\r\n\r\n"
							);
#endif						
	socket.writeBlock(url2, url2.length());


}
开发者ID:BGCX262,项目名称:ztranslate-svn-to-git,代码行数:56,代码来源:main.cpp


示例6: QString

//************************************************************************************************
//*************************************** class ZSearch ******************************************
//************************************************************************************************
ZSearch::ZSearch(const QString &curPath, const QString &originName)
  :MyBaseDlg()
{
  QString ProgDir =  QString ( qApp->argv() [0] );
  int i = ProgDir.findRev ( "/" );
  ProgDir.remove ( i+1, ProgDir.length() - i );

  ZConfig readlang("/ezxlocal/download/appwrite/setup/ezx_system.cfg", true);
  Idioma = ProgDir + "/languages/" + readlang.readEntry(QString("SYS_SYSTEM_SET"), QString("LanguageType"), "en-us");
  if ( ! QFileInfo(Idioma).isFile() ) Idioma = ProgDir + "/languages/en-us";
  ZConfig lang (Idioma,false); 

  this->setMainWidgetTitle("zTextViewer");
  
  QWidget *myWidget = new ZWidget ( this, NULL, 0);
  QVBoxLayout *myVBoxLayout = new QVBoxLayout ( myWidget, 0 );
  myWidget->setFixedWidth(240);
  ZAppInfoArea* pAIA = new ZAppInfoArea(myWidget, NULL, 0);
  pAIA->setActArea(ZAppInfoArea::no_progress_meter);
  pAIA->appendText(ZAppInfoArea::activity, lang.readEntry(QString("TEXTVIEWER"), "IDS_SAVE", ""), "name");
  setAppInfoArea(pAIA);
  myVBoxLayout->addWidget ( pAIA, 1, 1 );

    ZFormContainer* fc = new ZFormContainer(this);
    setContentWidget(fc);

    lineEdit = new ZLineEdit(this, NULL);
    lineEdit->setTitle(lang.readEntry(QString("TEXTVIEWER"), "IDS_ENTER_FILE_NAME", ""));
    lineEdit->setTitlePosition(ZLineEdit::TitleTop);
    lineEdit->setMaxLength(50);
	lineEdit->setText(originName);
    fc->addChild(lineEdit);

 	buttonDir = new myButton(this, "ZPressButton");
	buttonDir->setTitle(lang.readEntry(QString("TEXTVIEWER"), "IDS_LOCATION", ""));
	QString direc = curPath;
	if ( direc == "" ) direc = "/mmc/mmca1";
	if ( direc[direc.length()-1] == QChar('/') ) 
	  {	direc.remove( direc.length()-1, 1 ); }
    buttonDir->setText(direc); 
	FStext=direc;
	buttonDir->setPixmap(QPixmap(ProgDir+"/img/folder.png"));
    fc->addChild(buttonDir);
	

  ZSoftKey *softKey = new ZSoftKey ( "CST_2A", this, this );
  softKey->setText ( ZSoftKey::RIGHT, lang.readEntry(QString("TEXTVIEWER"), "IDS_CANCEL", ""), ( ZSoftKey::TEXT_PRIORITY ) 0 );
  softKey->setText ( ZSoftKey::LEFT, lang.readEntry(QString("TEXTVIEWER"), "IDS_SAVE", ""), ( ZSoftKey::TEXT_PRIORITY ) 0 );
  softKey->setClickedSlot ( ZSoftKey::RIGHT, this, SLOT ( slot_cancel() ) );
  softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( slot_search() ) );


  this->setCSTWidget( softKey );

}
开发者ID:crutchwalkfactory,项目名称:motocakerteam,代码行数:58,代码来源:ZFileDlg.cpp


示例7: setMainWidgetTitle

ZAddProfile::ZAddProfile()
    :MyBaseDlg()
{
	id = "";
	pas = "";
	edit = false;
	num = 0;
    prot = 0;

	setMainWidgetTitle(LNG_ADDPROFILE);
	
	ZFormContainer *form = new ZFormContainer(this, 0, ZSkinService::clsZFormContainer);
	setContentWidget(form);
	
	zcbProtocol = new ZComboBox(form);
	zcbProtocol->setTitle( LNG_PROTOCOL );
	QPixmap pm;
	pm.load(ProgDir+ "/status/icq/online.png");
	zcbProtocol->insertItem(pm, "ICQ", 0);
	#ifdef _XMPP
	pm.load(ProgDir+ "/status/jabber/online.png");
	zcbProtocol->insertItem(pm, "JABBER", 1);
	#endif
		
	form->addChild(zcbProtocol);
	
	zleID = new ZLineEdit("", form);
	zleID->setTitle( LNG_LOGIN );
	form->addChild ( zleID );
	
	zlePas = new ZLineEdit("", form);
	zlePas->setTitle( LNG_PASSWORD );
	setInputMethod(zlePas, ZKB_INPUT_MULTITAP, ZKbInputField::FIELD_TYPE_PASSWORD);
	zlePas->setEchoMode(ZLineEdit::Password);
	form->addChild ( zlePas );

	connect ( zcbProtocol, SIGNAL ( activated(int) ), this, SLOT ( changeProtocol(int) ) );
	changeProtocol(0);

	QValueList<QUuid> flist2;
	flist2.append( ZKB_INPUT_MULTITAP );
	flist2.append( ZKB_INPUT_SYMBOL );
	setInputMethods((QWidget*)zlePas, (const QUuid&)ZKB_INPUT_MULTITAP, flist2);
	
	ZSoftKey *softKey  = new ZSoftKey("CST_2", this, this);
	softKey->setText ( ZSoftKey::LEFT, LNG_ADD, ( ZSoftKey::TEXT_PRIORITY ) 0 );
	softKey->setText ( ZSoftKey::RIGHT, LNG_CANCEL, ( ZSoftKey::TEXT_PRIORITY ) 0 );
	softKey->setClickedSlot ( ZSoftKey::RIGHT, this, SLOT ( reject() ) );
	softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( addProfile() ) );
	setSoftKey(softKey);
}
开发者ID:BGCX261,项目名称:zmessanger-hg-to-git,代码行数:51,代码来源:ZAddProfile.cpp


示例8: saveDlg

saveDlg :: saveDlg(QString title, QString name) : ZPopup()
{
//	lng = new Lng();
	#ifndef ZN5
	oldMode = getMorphMode();
	setMorphMode(3);
	#endif
	CardExist = false;
	checkedIndex = -1;	
	QDir dir;
	//if ( dir.exists( QString(SD_MPKGBOX) ) )
	//	CardExist = true;	
		
	if( !dir.exists( QString(SKIN_FILE) ) )
		dir.mkdir( QString(SKIN_FILE) );
	//if( !dir.exists( QString(PH_MGX_FILE) ) )	
	//	dir.mkdir( QString(PH_MGX_FILE) );
		
	//ZConfig cfg(MGX_OBJ_PATH);
   // QString path = cfg.readEntry( gname, "Directory", "");	
	//QString oldName = cfg.readEntry( gname, "Name", "");	
		
	//this->enableAia(true);
	this->setTitle(title);
	this->setInstructText(name);
	this->setTitleIcon("action_required_pop.bmp");

	editGroupBox = new ZGroupBox(lng->tr("FT_SAVENAME"), this);

	lineEdit = new ZLineEdit(name, editGroupBox, 0, (ZSkinService::WidgetClsID)39);
	lineEdit->selectAll();
	lineEdit->resize(300, 40);

	this->insertChild(editGroupBox);

	pathGroupBox = new ZGroupBox(lng->tr("FT_SAVEPATH"), this);

	pathBox = new ZComboBox(pathGroupBox);
	pathBox->insertItem(lng->tr("FT_PHONE"), 0);
	if (CardExist) pathBox->insertItem(lng->tr("FT_MMCA1"), 1);
	pathBox->resize(300, 40);

	this->insertChild(pathGroupBox);

	ZSoftKey *softKey = this->getSoftKey();
	softKey->setText(ZSoftKey::LEFT,  tr("TXT_RID_SOFTKEY_OK", "Ok"));
	softKey->setText(ZSoftKey::RIGHT, tr("TXT_RID_SOFTKEY_CANCEL", "Cancel"));
	softKey->setClickedSlot(ZSoftKey::LEFT, this, SLOT(ok()));
	softKey->setClickedSlot(ZSoftKey::RIGHT, this, SLOT(cancel()));
}
开发者ID:OpenMagx,项目名称:moto_magx_app_open_source,代码行数:50,代码来源:saveDlg.cpp


示例9: setMainWidgetTitle

void ZFonts::CreateWindow ( QWidget* parent )
{
	//Set title window
	setMainWidgetTitle ( "zFonts" );
	
	lbFonts = new ZListBox(this);
	
	QFont font ( qApp->font() ); 
	font.setPointSize ( 18 );
	lbFonts->setItemFont( ZListBox::LISTITEM_REGION_A, ZListBox::StStandard, font );	
	lbFonts->setItemFont( ZListBox::LISTITEM_REGION_A, ZListBox::StHighlighted, font );	
	
	connect ( lbFonts, SIGNAL( selected(int) ), this, SLOT( slot_fontSelect(int) ) );
	
	setContentWidget( lbFonts );

	fillFonts();

	//Create SoftKey and Menu
	ZSoftKey *softKey = new ZSoftKey ( NULL , this , this );
	
	QRect rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
	ZOptionsMenu* menu = new ZOptionsMenu ( rect, softKey, NULL, 0 );
	menu->setItemSpacing(12);
	
	QPixmap * pm = new QPixmap();

	pm->load(ProgDir+ "/view_font.png");
	menu->insertItem ( tr("TXT_RID_OPTION_PREVIEW", "Preview"), NULL, pm, true, 0, 0 );
	pm->load(ProgDir+ "/set_fonts.png");
	menu->insertItem ( tr("TXT_RID_SOFTKEY_INSTALL", "Install"), NULL, pm, true, 1, 1 );
	pm->load(ProgDir+ "/about.png");
	menu->insertSeparator(2, 2); 
	menu->insertItem ( tr("TXT_RID_SOFTKEY_ABOUT_JAVA", "About").replace("Java",""), NULL, pm, true, 3, 3 );
	pm->load(ProgDir+ "/exit.png");
	menu->insertItem ( tr("TXT_RID_OPTION_EXIT", "Exit"), NULL, pm, true, 4, 4 );
	
	menu->connectItem ( 0, this, SLOT ( slot_preview() ) );
	menu->connectItem ( 1, this, SLOT ( slot_install() ) );
	menu->connectItem ( 3, this, SLOT ( slot_about() ) );
	menu->connectItem ( 4, qApp, SLOT ( quit() ) );	
	
	softKey->setText ( ZSoftKey::LEFT, tr("TXT_RID_SOFTKEY_OPTIONS", "Options"), ( ZSoftKey::TEXT_PRIORITY ) 0 );
	softKey->setText ( ZSoftKey::RIGHT, tr("TXT_RID_OPTION_EXIT", "Exit"), ( ZSoftKey::TEXT_PRIORITY ) 0 );
	softKey->setOptMenu ( ZSoftKey::LEFT, menu );
	softKey->setClickedSlot ( ZSoftKey::RIGHT, qApp, SLOT ( quit() ) );
	
	setSoftKey ( softKey );
}
开发者ID:OpenMagx,项目名称:open-magx-src,代码行数:49,代码来源:ZFonts.cpp


示例10: setMainWidgetTitle

SettingDlg::SettingDlg():MyBaseDlg()
{
    isCancel = true;
    isFullScreenMode = false;

    setMainWidgetTitle("App Setting");

    form0 = new ZFormContainer(this, 0, ZSkinService::clsZFormContainer);
    //listBox0 = new ZListBox("%C%M", this);
    form1 = new ZFormContainer(this, 0, ZSkinService::clsZFormContainer);
    form2 = new ZFormContainer(this, 0, ZSkinService::clsZFormContainer);
    form3 = new ZFormContainer(this, 0, ZSkinService::clsZFormContainer);
    form4 = new ZFormContainer(this, 0, ZSkinService::clsZFormContainer);

    tabWidget = new ZNavTabWidget(this);
    this->setContentWidget(tabWidget);
    tabWidget->stopNextWhenKeyRepeat(true);

    QPixmap imgTab;
    imgTab.load(getAppDir()+"/img/tab0.png");
    tabWidget->addTab(form0, QIconSet(imgTab), "");
    imgTab.load(getAppDir()+"/img/tab1.png");
    tabWidget->addTab(form1, QIconSet(imgTab), "");
    imgTab.load(getAppDir()+"/img/tab2.png");
    tabWidget->addTab(form2, QIconSet(imgTab), "");
    imgTab.load(getAppDir()+"/img/tab3.png");
    tabWidget->addTab(form3, QIconSet(imgTab), ""); ;
    imgTab.load(getAppDir()+"/img/tab4.png");
    tabWidget->addTab(form4, QIconSet(imgTab), "");

    ZSoftKey *softKey = new ZSoftKey ( NULL, this, this );
    softKey->setText(ZSoftKey::LEFT,  lng->tr("FT_SELECT"), (ZSoftKey::TEXT_PRIORITY)0);
    softKey->setText(ZSoftKey::RIGHT, lng->tr("FT_CANCEL"), (ZSoftKey::TEXT_PRIORITY)0);
    softKey->setClickedSlot(ZSoftKey::RIGHT, this, SLOT (reject()));
    softKey->setClickedSlot(ZSoftKey::LEFT, this, SLOT (accept()));
    setCSTWidget(softKey);

    imei = getIMEI();
    imsi = getIMSI();

    buildTab0();
    buildTab1();
    buildTab2();
    buildTab3();
    buildTab4();

    startTimer(300);
}
开发者ID:OpenMagx,项目名称:RokrToolsPro,代码行数:48,代码来源:settingDlg.cpp


示例11: setMainWidgetTitle

ZAboutDialog::ZAboutDialog()
    :MyBaseDlg()
{
  setMainWidgetTitle ( "zCleaner" );

  QString ProgDir = QString ( qApp->argv() [0] ) ;
  int i = ProgDir.findRev ( "/" );
  ProgDir.remove ( i+1, ProgDir.length() - i );
  QWidget *myWidget = new QWidget ( this );
  //myWidget->setGeometry(0,0,240,320);
  QVBoxLayout *myVBoxLayout = new QVBoxLayout ( myWidget, 0 );
  QHBoxLayout *myHBoxLayout = new QHBoxLayout;
  myHBoxLayout->setSpacing ( 4 );
  myHBoxLayout->setMargin ( 0 );

  QLabel *myLabel = new QLabel ( myWidget );
  myLabel->setPixmap ( QPixmap ( "folder.png" ) );
  myLabel->setScaledContents ( false );
  myHBoxLayout->addWidget ( myLabel );

  myLabel = new QLabel ( QString ( "<qt><img src=%1/img/zCleaner_usr.png><br>"
"<qt>zCleaner 0.3 by c_ro87<br>" "<qt>Base GUI zGui 0.7.4g by BeZ<br>"
                                   "<font size=\"-1\">zCleaner is a simple antivirus for Z6</font></qt>" ).arg(ProgDir), myWidget );
  myHBoxLayout->addWidget ( myLabel, 1 );
  myVBoxLayout->addLayout ( myHBoxLayout );

  myLabel = new QLabel ( QString ( "<qt><font size=\"-1\"><p>Copyright (C) 2008 c_ro87<br>"
                                   "<tt>&lt;[email protected]&gt;</tt><br></font></qt>" ),
                         myWidget );
  myVBoxLayout->addWidget ( myLabel );

  QSpacerItem* spacer = new QSpacerItem ( 8, 8, QSizePolicy::Minimum, QSizePolicy::Expanding );
  myVBoxLayout->addItem ( spacer );

  myLabel = new QLabel ( "www.modmymoto.com", myWidget );
  myVBoxLayout->addWidget ( myLabel );
  setContentWidget ( myWidget );

  ZSoftKey *softKey = new ZSoftKey ( NULL, this, this );
  softKey->setText ( ZSoftKey::LEFT, "OK", ( ZSoftKey::TEXT_PRIORITY ) 0 );
  softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( accept() ) );
  setCSTWidget ( softKey );
}
开发者ID:BGCX262,项目名称:zsoft-svn-to-git,代码行数:43,代码来源:ZAboutDlg.cpp


示例12: QWidget

//************************************************************************************************
//************************************** class ZFileSaveDialog ***********************************
//************************************************************************************************
ZFileSaveDialog::ZFileSaveDialog()
  :MyBaseDlg()
{
  QWidget *myWidget = new QWidget ( this );
  QVBoxLayout *myVBoxLayout = new QVBoxLayout ( myWidget, 0 );
  
  // label
  QLabel *myLabel = new QLabel ( QString ( "Filename to save:" ), myWidget );
  myVBoxLayout->addWidget ( myLabel, 0 );
  myLabel->setIndent ( 5 );
  myLabel->setAutoResize ( true );
    
  // zlineedit
  zmle = new ZMultiLineEdit(myWidget, true, 1, "ZMultiLineEdit");
  zmle->setEdited(false);
  zmle->setFixedHeight(myWidget->sizeHint().height());
  zmle->setInsertionMethod ( ( ZMultiLineEdit::InsertionMethod ) 3 );
  zmle->setFontPercent ( 0.7 );
  zmle->setSizePolicy ( QSizePolicy ( QSizePolicy::Expanding, QSizePolicy::Expanding ) );
  zmle->setCellHeight(22);

  
  myVBoxLayout->addWidget ( zmle, 1 );
  
  fb = new FileBrowser("*", QString ( "%I%M" ), myWidget, 0, ( ZSkinService::WidgetClsID ) 4);
  fb->setDir("/");
  QObject::connect(fb, SIGNAL(isFilePicked(bool)), SLOT(filePicked(bool)));
  myVBoxLayout->addWidget ( fb, 1 );
  
  
  setContentWidget ( myWidget );
  
  ZSoftKey *softKey = new ZSoftKey ( NULL, this, this );
  ZConfig IDini("/tmp/Z6ManagerLang", false);
  QString IDval = IDini.readEntry(QString("Z6MANAGER"), QString("MENU_SELECT"), "");
  softKey->setText ( ZSoftKey::LEFT, IDval, ( ZSoftKey::TEXT_PRIORITY ) 0 );
  IDval = IDini.readEntry(QString("Z6MANAGER"), QString("MENU_CANCEL"), "");
  softKey->setText ( ZSoftKey::RIGHT, IDval, ( ZSoftKey::TEXT_PRIORITY ) 0 );
  softKey->setClickedSlot ( ZSoftKey::RIGHT, this, SLOT ( reject() ) );
  softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( accept() ) );
  setCSTWidget ( softKey );
}
开发者ID:crutchwalkfactory,项目名称:motocakerteam,代码行数:45,代码来源:ZFileDlg.cpp


示例13: setMainWidgetTitle

ZAboutDialog::ZAboutDialog()
    :MyBaseDlg()
{

  setMainWidgetTitle ( "Z6 Manager" );

  QString ProgDir = QString ( qApp->argv() [0] ) ;
  int i = ProgDir.findRev ( "/" );
  ProgDir.remove ( i+1, ProgDir.length() - i );

  QWidget *myWidget = new QWidget ( this );
  //myWidget->setGeometry(0,0,240,320);
  QVBoxLayout *myVBoxLayout = new QVBoxLayout ( myWidget, 0 );
  QHBoxLayout *myHBoxLayout = new QHBoxLayout;
  myHBoxLayout->setSpacing ( 4 );
  myHBoxLayout->setMargin ( 10 );

  QLabel *myLabel = new QLabel ( myWidget );
  myLabel->setPixmap ( QPixmap ( "" ) );
  myLabel->setScaledContents ( false );
  myHBoxLayout->addWidget ( myLabel );

  myLabel = new QLabel ( QString ( "<qt><img src=%1/images/icon.png><br>"
                                   "<font size=\"+1\">Z6 Manager </font><font size=\"-1\">"
                                   "  v2.1<br><br>Motorola Z6 Linuxmod 2.1<br><br>developermoto.com/es<br>modmymoto.com<br>"
                                   "<br>(C) 2009. <br>CepiPerez / segnini75 / c_ro87"
                                   "</font></qt>" ).arg(ProgDir) , myWidget );
  myHBoxLayout->addWidget ( myLabel, 1 );
  myVBoxLayout->addLayout ( myHBoxLayout );

  QSpacerItem* spacer = new QSpacerItem ( 8, 8, QSizePolicy::Minimum, QSizePolicy::Expanding );
  myVBoxLayout->addItem ( spacer );

  //myLabel = new QLabel ( "Licensed under the GNU GPL.", myWidget );
  //myVBoxLayout->addWidget ( myLabel );
  setContentWidget ( myWidget );

  ZSoftKey *softKey = new ZSoftKey ( NULL, this, this );
  softKey->setText ( ZSoftKey::LEFT, "Aceptar", ( ZSoftKey::TEXT_PRIORITY ) 0 );
  softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( accept() ) );
  setCSTWidget ( softKey );
}
开发者ID:crutchwalkfactory,项目名称:motocakerteam,代码行数:42,代码来源:ZAboutDlg.cpp


示例14: QWidget

ZAboutDialog::ZAboutDialog()
    :MyBaseDlg()
{
  QWidget *myWidget = new QWidget ( this );
  //myWidget->setGeometry(0,0,240,320);
  QVBoxLayout *myVBoxLayout = new QVBoxLayout ( myWidget, 0 );
  QHBoxLayout *myHBoxLayout = new QHBoxLayout;
  myHBoxLayout->setSpacing ( 4 );
  myHBoxLayout->setMargin ( 0 );

  QLabel *myLabel = new QLabel ( myWidget );
  myLabel->setPixmap ( QPixmap ( "folder.png" ) );
  myLabel->setScaledContents ( false );
  myHBoxLayout->addWidget ( myLabel );

  myLabel = new QLabel ( QString ( "<qt>zAlarm 0.2<br>"
                                   "<font size=\"-1\">zAlarm alarm time changer</font></qt>" 
"<font size=\"-1\">Base GUI based on zGui 0.7.4g by BeZ </font></qt>"), myWidget );
  myHBoxLayout->addWidget ( myLabel, 1 );
  myVBoxLayout->addLayout ( myHBoxLayout );

  myLabel = new QLabel ( QString ( "<qt><font size=\"-1\"><p>Copyright (C) 2008 c_ro87<br>"
                                   "<tt>&lt;[email protected]&gt;</tt><br></font></qt>" ),
                         myWidget );
  myVBoxLayout->addWidget ( myLabel );

  QSpacerItem* spacer = new QSpacerItem ( 8, 8, QSizePolicy::Minimum, QSizePolicy::Expanding );
  myVBoxLayout->addItem ( spacer );

  myLabel = new QLabel ( "www.modmymoto.com", myWidget );
  myVBoxLayout->addWidget ( myLabel );
  setContentWidget ( myWidget );

  ZSoftKey *softKey = new ZSoftKey ( NULL, this, this );
  softKey->setText ( ZSoftKey::LEFT, "OK", ( ZSoftKey::TEXT_PRIORITY ) 0 );
  //softKey->setText ( ZSoftKey::RIGHT, "Reject", ( ZSoftKey::TEXT_PRIORITY ) 0 );
  //softKey->setClickedSlot ( ZSoftKey::RIGHT, this, SLOT ( reject() ) );
  softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( accept() ) );
  setCSTWidget ( softKey );
}
开发者ID:BGCX262,项目名称:zsoft-svn-to-git,代码行数:40,代码来源:ZAboutDlg.cpp


示例15: QString

MediaBrowser::MediaBrowser(MEDIA_TYPE type):ZPopup()
{
	isCancel = true;
	mType = type;
	
	mCurDir = QString("/mmc");
	mSelectedFile = QString::null;
	
	#ifdef ZN5
	#define setTitle setMainWidgetTitle
	#define insertChild setContentWidget
	#define softkey_rep
	#endif
	this->setTitle( lng->tr("FT_FILEPICKER") );
	
	ZFormContainer *form = new ZFormContainer(this);

	this->insertChild(form);	

	listBox = new ZListBox ( QString ( "%I%M" ), this, 0);
	listBox->enableMarquee(ZListBox::LISTITEM_REGION_A, true);
	listBox->enableMarquee(ZListBox::LISTITEM_REGION_B, true);	
	form->addChild(listBox);
	
	#ifdef softkey_rep
	ZSoftKey *softKey = new ZSoftKey("CST_2A", this, this);
	this->setSoftKey(softKey);
	#else
	ZSoftKey *softKey = this->getSoftKey();
	#endif
	softKey->setText(ZSoftKey::LEFT,  lng->tr("FT_SELECT"));
    softKey->setText(ZSoftKey::RIGHT, lng->tr("FT_CANCEL"));	
	softKey->setClickedSlot(ZSoftKey::RIGHT, this, SLOT( slotCancel() ));
	softKey->setClickedSlot(ZSoftKey::LEFT, this, SLOT ( slotOK() ));	

	connect(listBox, SIGNAL( selected(int) ), this, SLOT( obj_click(int) ) );

	QTimer::singleShot(100, this, SLOT( initList() ) );

}	
开发者ID:OpenMagx,项目名称:moto_magx_app_open_source,代码行数:40,代码来源:medaiBrowser.cpp


示例16: setMainWidgetTitle

ZUserInfo::ZUserInfo(std::string _id)
    :MyBaseDlg()
{
 	setMainWidgetTitle ( LNG_USERINFO );
	id = _id;
	dlgUserInfo = this;

	initInterface();

	ZSoftKey *softKey = new ZSoftKey ( NULL, this, this );
	softKey->setText ( ZSoftKey::LEFT, LNG_OK, ( ZSoftKey::TEXT_PRIORITY ) 0 );
	softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( menu_close() ) );
	// TODO: FIX - Add update button
	//softKey->setText ( ZSoftKey::RIGHT, LNG_UPD, ( ZSoftKey::TEXT_PRIORITY ) 0 );
	//softKey->setClickedSlot ( ZSoftKey::RIGHT, this, SLOT ( menu_update() ) );	
	setCSTWidget ( softKey );

	pthread_attr_t attr;
	pthread_attr_init(&attr);
	pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
	pthread_create(&thread, &attr, getInfo, (void*) &id );
	pthread_attr_destroy(&attr);
}
开发者ID:BGCX261,项目名称:zmessanger-hg-to-git,代码行数:23,代码来源:ZUserInfo.cpp


示例17: ZPopup

progressDlg::progressDlg(QString &title, QString &text, const char* cmd, bool isShowPopInfo, int dlgType)
			: ZPopup((ZPopup::POPUP_TYPE_E)dlgType)
{
	this->setTitle(title);
	this->setInstructText(text);
	this->setTitleIcon("info_pop.gif");
	
	popInfoState = isShowPopInfo;
	m_hideState = false;
	m_step = 0;
	ret = 255;
	m_dlgType = dlgType;
	if( m_dlgType == 0 ) 
		popInfoState = true;

	m_progressCmd = new progressCmd(cmd);
	
	m_md = new ZMeterModule(8, this);
	m_md->setAlignment(ZMeterModule::TOP);
	m_mt = m_md->getMeter();
	m_mt->setAutoResize(true);
	
	this->insertChild( (ZWidget*)m_md );
	
	if( m_dlgType == 0 ) {
		ZSoftKey *softKey = this->getSoftKey();
		softKey->setText(ZSoftKey::LEFT, tr("TXT_RID_SOFTKEY_HIDE", "Hide"));
		softKey->setClickedSlot( ZSoftKey::LEFT, this, SLOT ( slotHide() ) );
		softKey->disableClickedSlot( ZSoftKey::RIGHT);	
	}		
	
	timer = new QTimer(this);
	connect( timer, SIGNAL(timeout()), this, SLOT( slotTimerEvent()));
	timer->start(500);
	
	m_progressCmd->start();	
}
开发者ID:OpenMagx,项目名称:moto_magx_app_open_source,代码行数:37,代码来源:progressDlg.cpp


示例18: setMainWidgetTitle


//.........这里部分代码省略.........
	font.setBold ( true );
	a->setFont(font);
	a->setFixedWidth(SCREEN_WIDTH-80);
	a->setAlignment(ZLabel::AlignCenter);
	sv->addChild(a, 80,15);
	QString ver = QString::number(VER_MAJOR)+"."+QString::number(VER_MINOR);

	switch (VER_STATUS)
	{
		case 0: ver = ver+" PreAlpha"; break;
		case 1: ver = ver+" Alpha";    break;
		case 2: ver = ver+" Betta";    break;
		case 3: ver = ver+" RC";       break;
		case 4: ver = ver+" Stable";   break;
	}

	a = new ZLabel(QString("ver. ")+ver,this);
	a->setFixedWidth(SCREEN_WIDTH-80);
	a->setAlignment(ZLabel::AlignCenter);
	sv->addChild(a, 80,45);		
	
	ZSeparator * sep = new ZSeparator();
	sep->setLength(SCREEN_WIDTH-20);
	sv->addChild(sep, 10,90);	
	
	a = new ZLabel("Copyrigth "+LNG_COPYRIGHT+": Ant-ON, 2010",this);
	a->setAutoResize(true);
	a->setPreferredWidth(SCREEN_WIDTH-10);
	sv->addChild(a, 15,100);
	
	a = new ZLabel("e-mail: [email protected]",this);
	a->setAutoResize(true);
	a->setPreferredWidth(SCREEN_WIDTH-10);
	sv->addChild(a, 15,130);
	
	sep = new ZSeparator();
	sep->setLength(SCREEN_WIDTH-20);
	sv->addChild(sep, 10,190);			

	phoneInfo = new ZListBox( tabWidget );
	
	font.setPointSize ( 16 );
	phoneInfo->setItemFont (ZListBox::LISTITEM_REGION_A, ZSkinBase::StStandard, font );
	phoneInfo->setItemFont (ZListBox::LISTITEM_REGION_A, ZSkinBase::StHighlightSelected, font );	
	phoneInfo->setItemFont (ZListBox::LISTITEM_REGION_A, ZSkinBase::StSelected, font );	
	phoneInfo->setItemFont (ZListBox::LISTITEM_REGION_A, ZSkinBase::StHighlighted, font );	
	
	ZSettingItem* item;

	item = new ZSettingItem(phoneInfo, "%M");
	item->appendSubItem(0, "zIM "+model+" "+ver, false);
	phoneInfo->insertItem( item );

	item = new ZSettingItem(phoneInfo, "%M");
	item->appendSubItem(0, "Traffic", true);
    item->setSeparator("-",NULL);
	item->setSelectable(false);	
	phoneInfo->insertItem( item, -1, false );

	item = new ZSettingItem(phoneInfo, "%M");
	item->appendSubItem(0, "IN:", true);
	item->appendSubItem(0, QString::number((double)trafIN/1024, 'g', 2)+" KB" );
	phoneInfo->insertItem( item );
	
	item = new ZSettingItem(phoneInfo, "%M");
	item->appendSubItem(0, "OUT:", true);
	item->appendSubItem(0, QString::number((double)trafOUT/1024, 'g', 2)+" KB" );
	phoneInfo->insertItem( item );
	
	item = new ZSettingItem(phoneInfo, "%M");
	item->appendSubItem(0, "Build", true);
    item->setSeparator("-",NULL);
	item->setSelectable(false);	
	phoneInfo->insertItem( item, -1, false );

	item = new ZSettingItem(phoneInfo, "%M");
	item->appendSubItem(0, "Build number:", false);
	item->appendSubItem(0, QString::number( BUILD_NUMBER ), false );
	phoneInfo->insertItem( item );
	
	item = new ZSettingItem(phoneInfo, "%M");
	item->appendSubItem(0, "Buld date:", false);
	item->appendSubItem(0, QString( BUILD_DATE ), false );
	phoneInfo->insertItem( item );	
	
	phoneInfo->setCurrentItem(1);
	
	QPixmap pm;
	pm.load( ProgDir+ "/image/tab_about.png");
	tabWidget->addTab(sv, QIconSet(pm), "");	
	pm.load( ProgDir+ "/image/tab_othe_info.png");
	tabWidget->addTab(phoneInfo, QIconSet(pm), "");		

	setContentWidget ( tabWidget );  
	
	ZSoftKey *softKey = new ZSoftKey ( NULL, this, this );
	softKey->setText ( ZSoftKey::LEFT, LNG_OK, ( ZSoftKey::TEXT_PRIORITY ) 0 );
	softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( accept() ) );
	setCSTWidget ( softKey );
}
开发者ID:BGCX261,项目名称:zmessanger-hg-to-git,代码行数:101,代码来源:ZAboutDlg.cpp


示例19: setMainWidgetTitle


//.........这里部分代码省略.........
	optMaxNumLine = new ZOptionItem(Chat, ZOptionItem::EDIT_NUM);
	optMaxNumLine->setMaxMin(500, 3);
	optMaxNumLine->setNum( cfg.readNumEntry(QString("Chat"), QString("maxNumLines"), 40) );
	optMaxNumLine->setTitle( LNG_MAXNUMLINESCHAT );
	Chat->insertItem(optMaxNumLine);	
	
	optNoShowStatusBarInChat = new ZOptionItem(Chat, ZOptionItem::EDIT_BOOL_ONOFF);
	optNoShowStatusBarInChat->setTitle( LNG_NO_SHOW_STATUS_BAR_IN_CHAT );
	optNoShowStatusBarInChat->setNum( !cfg.readBoolEntry(QString("Chat"), QString("noShowStatusBarInChat"), false) );
	Chat->insertItem(optNoShowStatusBarInChat);	
	
	optSendByCenter = new ZOptionItem(Chat, ZOptionItem::EDIT_BOOL_YESNO);
	optSendByCenter->setTitle( LNG_SEND_BY_CENTER );
	optSendByCenter->setNum( cfg.readBoolEntry(QString("Chat"), QString("sendByCenter"), false) );
	Chat->insertItem(optSendByCenter);

	optSendTypeMes = new ZOptionItem(Chat, ZOptionItem::EDIT_BOOL_YESNO);
	optSendTypeMes->setTitle( LNG_SENDTYPEMES );
	optSendTypeMes->setNum( !cfg.readBoolEntry(QString("Chat"), QString("notSendTypeMes"), false) );
	Chat->insertItem(optSendTypeMes);
	
	//#####################################  5  ###########################################
	othe = new ZListBox( tabWidget );
	pm.load( ProgDir+ "/image/tab_othe.png");
	tabWidget->addTab(othe, QIconSet(pm), "");
	//#####################################################################################
	
	codec = new QStringList();
	codec->append( "KOI8-R" );
	codec->append( "KOI8-U" );
	codec->append( "ISO8859-2" );
	codec->append( "ISO8859-3" );
	codec->append( "ISO8859-4" );
	codec->append( "ISO8859-5" );
	codec->append( "ISO8859-6-I" );
	codec->append( "ISO8859-7" );
	codec->append( "ISO8859-8-I" );
	codec->append( "ISO8859-9" );
	codec->append( "ISO8859-10" );
	codec->append( "ISO8859-11" );		
	codec->append( "ISO8859-13" );
	codec->append( "ISO8859-14" );
	codec->append( "ISO8859-15" );
	codec->append( "PT154" );
	codec->append( "CP874" );
	codec->append( "CP1250" );
	codec->append( "CP1251" );
	codec->append( "CP1252" );
	codec->append( "CP1253" );
	codec->append( "CP1254" );
	codec->append( "CP1255" );
	codec->append( "CP1256" );	
	codec->append( "CP1257" );	
	codec->append( "CP1258" );

	sel=0, i=0;
	text = cfg.readEntry(QString("Message"), QString("CodePage"), "CP1251");
	for ( QStringList::Iterator it = codec->begin(); it != codec->end(); ++it )
		if ( *it == text )
		{
			sel=i;
			break;
		} else
			i++;
	optCodePage = new ZOptionItem(othe, ZOptionItem::EDIT_ONE_OF_LIST);
	optCodePage->setTitle( LNG_DEFCP );	
	optCodePage->setList( codec );
	optCodePage->setNum( sel );
	othe->insertItem(optCodePage);
	
	optXTrazRequest = new ZOptionItem(othe, ZOptionItem::EDIT_BOOL_YESNO);
	optXTrazRequest->setTitle( LNG_XSTATUSAUTOREQUEST );
	optXTrazRequest->setNum( !cfg.readBoolEntry(QString("Message"), QString("noAutoXTrazRequest"), true) );
	othe->insertItem(optXTrazRequest);
	
	optAutoMsgRequest = new ZOptionItem(othe, ZOptionItem::EDIT_BOOL_YESNO);
	optAutoMsgRequest->setTitle( LNG_STATUSAUTOREQUEST );
	optAutoMsgRequest->setNum( !cfg.readBoolEntry(QString("Message"), QString("noAutoMsgRequest"), true) );
	othe->insertItem(optAutoMsgRequest);
		
	optSaveStusWithExit = new ZOptionItem(othe, ZOptionItem::EDIT_BOOL_ONOFF);
	optSaveStusWithExit->setTitle( LNG_SAVE_STATUS_WITH_EXIT );
	optSaveStusWithExit->setNum( cfg.readBoolEntry(QString("Status"), QString("saveStausCanDisconect"), true) );
	othe->insertItem(optSaveStusWithExit);

	optEye = new ZOptionItem(othe, ZOptionItem::EDIT_BOOL_ONOFF);
	optEye->setTitle( LNG_EYE );
	optEye->setNum(cfg.readBoolEntry(QString("Othe"), QString("enabledEye"), true));
	othe->insertItem(optEye);
	//#####################################################################################
	
	net->setFocus(); // set focus to widget in first tab
	
	ZSoftKey *softKey = new ZSoftKey ( NULL, this, this );
	softKey->setText ( ZSoftKey::LEFT, LNG_OK, ( ZSoftKey::TEXT_PRIORITY ) 0 );
	softKey->setText ( ZSoftKey::RIGHT, LNG_CANCEL, ( ZSoftKey::TEXT_PRIORITY ) 0 );
	softKey->setClickedSlot ( ZSoftKey::RIGHT, this, SLOT ( reject() ) );
	softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( saveSetting() ) );
	setCSTWidget ( softKey );
}
开发者ID:BGCX261,项目名称:zmessanger-hg-to-git,代码行数:101,代码来源:ZSettings.cpp


示例20: setMainWidgetTitle


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ ZStreamR类代码示例发布时间:2022-05-31
下一篇:
C++ ZSList类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap