#include "qmotifstyle.h"
#include "qcdestyle.h"
#include "qmenu.h"
#include "qapplication.h"
#include "qpainter.h"
#include "qdrawutil.h"
#include "qpixmap.h"
#include "qpalette.h"
#include "qwidget.h"
#include "qpushbutton.h"
#include "qscrollbar.h"
#include "qtabbar.h"
#include "qtabwidget.h"
#include "qlistview.h"
#include "qsplitter.h"
#include "qslider.h"
#include "qcombobox.h"
#include "qlineedit.h"
#include "qprogressbar.h"
#include "qimage.h"
#include "qfocusframe.h"
#include "qdebug.h"
#include "qpainterpath.h"
#include "qmotifstyle_p.h"
#include "qdialogbuttonbox.h"
#include "qformlayout.h"
#include <limits.h>
#include <QtGui/qgraphicsproxywidget.h>
#include <QtGui/qgraphicsview.h>
#include "qx11info_x11.h"
Go to the source code of this file.
|
#define | CBOT *cols[colspec & 0xf] |
|
#define | CLEFT *cols[(colspec>>8) & 0xf] |
|
#define | CMID *cols[(colspec>>12) & 0xf] |
|
#define | CTOP *cols[(colspec>>4) & 0xf] |
|
#define | INTARRLEN(x) sizeof(x)/(sizeof(int)*2) |
|
|
static int | get_combo_extra_width (int h, int w, int *return_awh=0) |
|
static void | get_combo_parameters (const QRect &r, int &ew, int &awh, int &ax, int &ay, int &sh, int &dh, int &sy) |
|
static void | rot (QPolygon &a, int n) |
|
◆ CBOT
#define CBOT *cols[colspec & 0xf] |
◆ CLEFT
#define CLEFT *cols[(colspec>>8) & 0xf] |
◆ CMID
#define CMID *cols[(colspec>>12) & 0xf] |
◆ CTOP
#define CTOP *cols[(colspec>>4) & 0xf] |
◆ INTARRLEN
#define INTARRLEN |
( |
|
x | ) |
sizeof(x)/(sizeof(int)*2) |
◆ get_combo_extra_width()
static int get_combo_extra_width |
( |
int |
h, |
|
|
int |
w, |
|
|
int * |
return_awh = 0 |
|
) |
| |
|
static |
◆ get_combo_parameters()
static void get_combo_parameters |
( |
const QRect & |
r, |
|
|
int & |
ew, |
|
|
int & |
awh, |
|
|
int & |
ax, |
|
|
int & |
ay, |
|
|
int & |
sh, |
|
|
int & |
dh, |
|
|
int & |
sy |
|
) |
| |
|
static |
◆ rot()
Definition at line 349 of file qmotifstyle.cpp.
Referenced by QMotifStyle::drawPrimitive().
352 for (
int i = 0; i < (int)a.
size(); i++) {
354 case 1: r.
setPoint(i,-a[i].y(),a[i].x());
break;
355 case 2: r.setPoint(i,-a[i].x(),-a[i].y());
break;
356 case 3: r.setPoint(i,a[i].y(),-a[i].x());
break;
The QPolygon class provides a vector of points using integer precision.
void setPoint(int index, int x, int y)
Sets the point at the given index to the point specified by ({x}, {y}).
int size() const
Returns the number of items in the vector.
◆ critical_xpm
const char* const critical_xpm[] |
|
static |
◆ dock_window_close_xpm
const char* dock_window_close_xpm[] |
|
static |
Initial value:= {
"8 8 2 1",
"# c #000000",
". c None",
"##....##",
".##..##.",
"..####..",
"...##...",
"..####..",
".##..##.",
"##....##",
"........"}
Definition at line 2347 of file qmotifstyle.cpp.
◆ information_xpm
const char* const information_xpm[] |
|
static |
◆ motifArrowHMargin
const int motifArrowHMargin = 6 |
|
static |
◆ motifCheckMarkHMargin
const int motifCheckMarkHMargin = 2 |
|
static |
◆ motifCheckMarkSpace
const int motifCheckMarkSpace = 16 |
|
static |
◆ motifItemFrame
const int motifItemFrame = 2 |
|
static |
◆ motifItemHMargin
const int motifItemHMargin = 3 |
|
static |
◆ motifItemVMargin
const int motifItemVMargin = 2 |
|
static |
◆ motifSepHeight
const int motifSepHeight = 2 |
|
static |
◆ motifTabSpacing
const int motifTabSpacing = 12 |
|
static |
◆ qt_close_xpm
const char* const qt_close_xpm[] |
|
static |
Initial value:= {
"12 12 2 1",
" s None c None",
". c black",
" ",
" ",
" . . ",
" ... ... ",
" ...... ",
" .... ",
" .... ",
" ...... ",
" ... ... ",
" . . ",
" ",
" "}
Definition at line 2225 of file qmotifstyle.cpp.
◆ qt_maximize_xpm
const char* const qt_maximize_xpm[] |
|
static |
Initial value:= {
"12 12 2 1",
" s None c None",
". c black",
" ",
" ",
" ",
" . ",
" ... ",
" ..... ",
" ....... ",
" ......... ",
" ",
" ",
" ",
" "}
Definition at line 2242 of file qmotifstyle.cpp.
◆ qt_menu_xpm
const char* const qt_menu_xpm[] |
|
static |
Initial value:= {
"16 16 11 1",
" c #000000",
", c #336600",
". c #99CC00",
"X c #666600",
"o c #999933",
"+ c #333300",
"@ c #669900",
"# c #999900",
"$ c #336633",
"% c #666633",
"& c #99CC33",
"................",
"................",
".....#,++X#.....",
"....X X....",
"...X Xo#% X&..",
"..# o..&@o o..",
".., X..#+ @X X..",
"..+ o.o+ +o# +..",
"..+ #o+ +## +..",
".., %@ ++ +, X..",
"..# o@oo+ #..",
"...X X##$ o..",
"....X X..",
"....&oX++X#oX...",
"................",
"................"}
Definition at line 2194 of file qmotifstyle.cpp.
◆ qt_minimize_xpm
const char* const qt_minimize_xpm[] |
|
static |
Initial value:= {
"12 12 2 1",
" s None c None",
". c black",
" ",
" ",
" ",
" ",
" ......... ",
" ....... ",
" ..... ",
" ... ",
" . ",
" ",
" ",
" "}
Definition at line 2259 of file qmotifstyle.cpp.
◆ qt_normalizeup_xpm
const char* const qt_normalizeup_xpm[] |
|
static |
Initial value:= {
"12 12 2 1",
" s None c None",
". c black",
" ",
" ",
" ",
" ....... ",
" ...... ",
" ..... ",
" .... ",
" ... ",
" .. ",
" . ",
" ",
" "}
Definition at line 2295 of file qmotifstyle.cpp.
◆ qt_shade_xpm
const char* const qt_shade_xpm[] |
|
static |
Initial value:= {
"12 12 2 1", "# c #000000",
". c None",
"............",
"............",
".#########..",
".#########..",
"............",
"............",
"............",
"............",
"............",
"............",
"............",
"............"}
Definition at line 2312 of file qmotifstyle.cpp.
◆ qt_unshade_xpm
const char* const qt_unshade_xpm[] |
|
static |
Initial value:= {
"12 12 2 1",
"# c #000000",
". c None",
"............",
"............",
".#########..",
".#########..",
".#.......#..",
".#.......#..",
".#.......#..",
".#.......#..",
".#.......#..",
".#########..",
"............",
"............"}
Definition at line 2329 of file qmotifstyle.cpp.
◆ question_xpm
const char* const question_xpm[] |
|
static |
◆ warning_xpm
const char* const warning_xpm[] |
|
static |