ZAboutDialog::ZAboutDialog() :MyBaseDlg() { setMainWidgetTitle(LNG_ABOUT); myWidget = new ZWidget (); tabWidget = new ZNavTabWidget( myWidget ); connect(tabWidget,SIGNAL(currentChanged(QWidget* )),this,SLOT(slotPageChanged(QWidget* ))); sv = new ZScrollPanel(this); ZImage *img = new ZImage( this ); img->setPixmap ( QPixmap( ProgDir + "/zMessanger_usr.png" ) ); sv->addChild(img, 10,20); QString model; #if defined(EZX_Z6) model = "Z6"; #elif defined(EZX_ZN5) model = "ZN5"; #elif defined(EZX_U9) model = "U9"; #elif defined(EZX_E8) model = "E8"; #elif defined(EZX_EM30) model = "EM30"; #elif defined(EZX_EM35) model = "EM35"; #elif defined(EZX_VE66) model = "VE66"; #elif defined(EZX_V8) model = "V8"; #else model = ""; #endif ZLabel * a = new ZLabel("zMessanger "+model,this); QFont font ( a->font() ); 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 ); }
ZAboutDialog::ZAboutDialog() :MyBaseDlg() { setMainWidgetTitle( tr("TXT_RID_SOFTKEY_ABOUT_JAVA", "About").replace("Java","") ); ZScrollPanel * sv = new ZScrollPanel(this); this->setContentWidget ( sv ); ZImage *img = new ZImage( this ); img->setPixmap ( QPixmap ( QString(qApp->argv()[0])+"_big_usr.png" ) ); sv->addChild(img, 20,20); QFont font ( qApp->font() ); font.setBold(true); ZLabel * a = new ZLabel("zFonts",this); a->setFont( font ); a->setFixedWidth( SCREEN_WIDTH-70 ); a->setAlignment( ZLabel::AlignHCenter ); #if defined(EZX_E8) || defined(EZX_EM30) sv->addChild(a, 70,5); #else sv->addChild(a, 70,10); #endif a = new ZLabel(QString("ver: 0.1"),this); a->setFixedWidth( SCREEN_WIDTH-70 ); a->setAlignment( ZLabel::AlignHCenter ); #if defined(EZX_E8) || defined(EZX_EM30) sv->addChild(a, 70,28); #else sv->addChild(a, 70,35); #endif #ifdef EZX_E2 a = new ZLabel(QString("Platform: EZX-E2"),this); #else #ifdef EZX_V8 a = new ZLabel(QString("Platform: EZX-V8"),this); #else #ifdef EZX_Z6 a = new ZLabel(QString("Platform: EZX-Z6"),this); #else #ifdef EZX_Z6W a = new ZLabel(QString("Platform: EZX-Z6w"),this); #else #ifdef EZX_ZN5 a = new ZLabel(QString("Platform: EZX-ZN5"),this); #else #ifdef EZX_U9 a = new ZLabel(QString("Platform: EZX-U9"),this); #else #ifdef EZX_EM30 a = new ZLabel(QString("Platform: EZX-EM30"),this); #else #ifdef EZX_EM35 a = new ZLabel(QString("Platform: EZX-EM35"),this); #else #ifdef EZX_VE66 a = new ZLabel(QString("Platform: EZX-VE66"),this); #else #ifdef EZX_E8 a = new ZLabel(QString("Platform: EZX-E8"),this); #endif #endif #endif #endif #endif #endif #endif #endif #endif #endif a->setFixedWidth( SCREEN_WIDTH-70 ); a->setAlignment( ZLabel::AlignHCenter ); #if defined(EZX_E8) || defined(EZX_EM30) sv->addChild(a, 70,52); #else sv->addChild(a, 70,60); #endif ZSeparator * sep = new ZSeparator(); sep->setLength(SCREEN_WIDTH-20); #if defined(EZX_E8) || defined(EZX_EM30) sv->addChild(sep, 10,80); #else sv->addChild(sep, 10,100); #endif a = new ZLabel("Copyrigth ©: Ant-ON, 2011",this); a->setAutoResize(true); a->setPreferredWidth(SCREEN_WIDTH-5); #if defined(EZX_E8) || defined(EZX_EM30) sv->addChild(a, 10,85); #else sv->addChild(a, 10,110); #endif a = new ZLabel("e-mail: [email protected]",this); a->setAutoResize(true); a->setPreferredWidth(SCREEN_WIDTH-5); #if defined(EZX_E8) || defined(EZX_EM30) sv->addChild(a, 10,107); #else sv->addChild(a, 10,140); #endif a = new ZLabel("Special for PearlMod!",this); a->setAutoResize(true); a->setPreferredWidth(SCREEN_WIDTH-5); #if defined(EZX_E8) || defined(EZX_EM30) sv->addChild(a, 10,129); #else sv->addChild(a, 10,170); #endif a = new ZLabel("Thanks: BeZ",this); a->setAutoResize(true); a->setPreferredWidth(SCREEN_WIDTH-5); #if defined(EZX_E8) || defined(EZX_EM30) sv->addChild(a, 10,150); #else sv->addChild(a, 10,200); #endif sep = new ZSeparator(); sep->setLength(SCREEN_WIDTH-20); #if defined(EZX_E8) || defined(EZX_EM30) sv->addChild(sep, 10,173); #else sv->addChild(sep, 10,230); #endif ZSoftKey *softKey = new ZSoftKey ( NULL, this, this ); softKey->setText ( ZSoftKey::LEFT, tr("TXT_RID_SOFTKEY_OK","OK"), ( ZSoftKey::TEXT_PRIORITY ) 0 ); softKey->setClickedSlot ( ZSoftKey::LEFT, this, SLOT ( accept() ) ); setSoftKey( softKey ); }
void ExifDlg::MakeExifMap(ZImage & image) { image.GetExifList(m_exifList); }