Changeset 769 for trunk/src/gui/styles/qs60style_p.h
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/styles/qs60style_p.h
r651 r769 61 61 62 62 const int MAX_NON_CUSTOM_PIXELMETRICS = 92; 63 const int CUSTOMVALUESCOUNT = 4; 64 enum { 65 PM_Custom_FrameCornerWidth = MAX_NON_CUSTOM_PIXELMETRICS, 66 PM_Custom_FrameCornerHeight, 67 PM_Custom_BoldLineWidth, 68 PM_Custom_ThinLineWidth 69 }; 63 const int CUSTOMVALUESCOUNT = 5; 64 70 65 const int MAX_PIXELMETRICS = MAX_NON_CUSTOM_PIXELMETRICS + CUSTOMVALUESCOUNT; 71 66 … … 75 70 int major_version; 76 71 int minor_version; 77 bool mirroring; // TODO: (nice to have) Use Qt::LayoutDirection78 72 const char* layoutName; 79 73 } layoutHeader; … … 133 127 SP_QgnGrafBarFrameSideR, 134 128 SP_QgnGrafBarProgress, 129 SP_QgnGrafOrgBgGrid, 135 130 SP_QgnGrafScrollArrowDown, 136 131 SP_QgnGrafScrollArrowLeft, … … 299 294 SP_QsnFrButtonSideRInactive, 300 295 SP_QsnFrButtonCenterInactive, 296 SP_QsnFrGridCornerTlPressed, // Pressed table item 297 SP_QsnFrGridCornerTrPressed, 298 SP_QsnFrGridCornerBlPressed, 299 SP_QsnFrGridCornerBrPressed, 300 SP_QsnFrGridSideTPressed, 301 SP_QsnFrGridSideBPressed, 302 SP_QsnFrGridSideLPressed, 303 SP_QsnFrGridSideRPressed, 304 SP_QsnFrGridCenterPressed, 305 SP_QsnFrListCornerTlPressed, // Pressed list item 306 SP_QsnFrListCornerTrPressed, 307 SP_QsnFrListCornerBlPressed, 308 SP_QsnFrListCornerBrPressed, 309 SP_QsnFrListSideTPressed, 310 SP_QsnFrListSideBPressed, 311 SP_QsnFrListSideLPressed, 312 SP_QsnFrListSideRPressed, 313 SP_QsnFrListPressed, 301 314 }; 302 315 … … 354 367 int currentFrame() const {return m_currentData->m_currentFrame;} 355 368 356 void setFrameCount( const int &frameCount) {m_currentData->m_frames = frameCount;}357 void setInterval( const int &interval) {m_currentData->m_interval = interval;}369 void setFrameCount(int frameCount) {m_currentData->m_frames = frameCount;} 370 void setInterval(int interval) {m_currentData->m_interval = interval;} 358 371 void setAnimationObject(CAknBitmapAnimation* animation); 359 372 void setResourceBased(bool resourceBased) {m_currentData->m_resourceBased = resourceBased;} 360 void setTimerId( const int &timerId) {m_currentData->m_timerId = timerId;}361 void setCurrentFrame( const int ¤tFrame) {m_currentData->m_currentFrame = currentFrame;}373 void setTimerId(int timerId) {m_currentData->m_timerId = timerId;} 374 void setCurrentFrame(int currentFrame) {m_currentData->m_currentFrame = currentFrame;} 362 375 363 376 void resetToDefaults(); … … 417 430 SE_TabBarTabWestInactive, 418 431 SE_ListHighlight, 419 SE_ OptionsMenu,432 SE_PopupBackground, 420 433 SE_SettingsList, 421 434 SE_TableItem, … … 426 439 SE_ToolBarButtonPressed, 427 440 SE_PanelBackground, 428 SE_ScrollBarHandlePressedHorizontal, //only for 5.0+441 SE_ScrollBarHandlePressedHorizontal, 429 442 SE_ScrollBarHandlePressedVertical, 430 443 SE_ButtonInactive, 431 444 SE_Editor, 445 SE_DropArea, 446 SE_TableItemPressed, 447 SE_ListItemPressed, 432 448 }; 433 449 … … 437 453 SF_FrameLineEdit, 438 454 SF_ListHighlight, 439 SF_ OptionsMenu,455 SF_PopupBackground, 440 456 SF_SettingsList, 441 457 SF_TableItem, … … 447 463 SF_PanelBackground, 448 464 SF_ButtonInactive, 465 SF_TableItemPressed, 466 SF_ListItemPressed, 449 467 }; 450 468 … … 459 477 SF_ColorSkinned = 0x0040, // pixmap is colored with foreground pen color 460 478 SF_Animation = 0x0080, 479 SF_Mirrored_X_Axis = 0x0100, 480 SF_Mirrored_Y_Axis = 0x0200 461 481 }; 462 482 … … 501 521 static bool hasSliderGrooveGraphic(); 502 522 static bool isSingleClickUi(); 523 static bool isWidgetPressed(const QWidget *widget); 503 524 504 525 // calculates average color based on button skin graphics (minus borders). … … 542 563 //Checks that the current brush is transparent or has BrushStyle NoBrush, 543 564 //so that theme graphic background can be drawn. 544 static bool canDrawThemeBackground(const QBrush &backgroundBrush );565 static bool canDrawThemeBackground(const QBrush &backgroundBrush, const QWidget *widget); 545 566 546 567 static int currentAnimationFrame(QS60StyleEnums::SkinParts part); … … 596 617 597 618 QPointer<QFocusFrame> m_focusFrame; 619 static qint64 m_webPaletteKey; 620 621 static QPointer<QWidget> m_pressedWidget; 598 622 599 623 #ifdef Q_WS_S60
Note:
See TracChangeset
for help on using the changeset viewer.