Diffstat (limited to 'kaddressbook/details/look_details.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/details/look_details.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kaddressbook/details/look_details.h b/kaddressbook/details/look_details.h index e8d50a9..b59d3a7 100644 --- a/kaddressbook/details/look_details.h +++ b/kaddressbook/details/look_details.h | |||
@@ -37,121 +37,121 @@ | |||
37 | 37 | ||
38 | class KABEntryPainter; | 38 | class KABEntryPainter; |
39 | class QComboBox; | 39 | class QComboBox; |
40 | 40 | ||
41 | /** | 41 | /** |
42 | This class implements the detailed view. | 42 | This class implements the detailed view. |
43 | Currently, there is no possibility to change the entry in this | 43 | Currently, there is no possibility to change the entry in this |
44 | view. | 44 | view. |
45 | */ | 45 | */ |
46 | 46 | ||
47 | class KABDetailedView : public KABBasicLook | 47 | class KABDetailedView : public KABBasicLook |
48 | { | 48 | { |
49 | Q_OBJECT | 49 | Q_OBJECT |
50 | 50 | ||
51 | public: | 51 | public: |
52 | /** | 52 | /** |
53 | Enum to select how the background is drawn. | 53 | Enum to select how the background is drawn. |
54 | */ | 54 | */ |
55 | enum BackgroundStyle | 55 | enum BackgroundStyle |
56 | { | 56 | { |
57 | None, | 57 | None, |
58 | Tiled, | 58 | Tiled, |
59 | Bordered | 59 | Bordered |
60 | }; | 60 | }; |
61 | 61 | ||
62 | /** | 62 | /** |
63 | The constructor. | 63 | The constructor. |
64 | */ | 64 | */ |
65 | KABDetailedView( QWidget *parent = 0, const char* name = 0 ); | 65 | KABDetailedView( QWidget *parent = 0, const char* name = 0 ); |
66 | 66 | ||
67 | /** | 67 | /** |
68 | The virtual destructor. | 68 | The virtual destructor. |
69 | */ | 69 | */ |
70 | virtual ~KABDetailedView(); | 70 | virtual ~KABDetailedView(); |
71 | 71 | ||
72 | /** | 72 | /** |
73 | Set the addressee. | 73 | Set the addressee. |
74 | */ | 74 | */ |
75 | void setAddressee( const KABC::Addressee& ); | 75 | void setAddressee( const KABC::Addressee& ); |
76 | 76 | ||
77 | /** | 77 | /** |
78 | Overloaded from KABBasicLook. | 78 | Overloaded from KABBasicLook. |
79 | */ | 79 | */ |
80 | void setReadOnly( bool ); | 80 | void setReadOnly( bool ); |
81 | 81 | ||
82 | /** | 82 | /** |
83 | Overloaded from KABBasicLook. | 83 | Overloaded from KABBasicLook. |
84 | */ | 84 | */ |
85 | void restoreSettings( KConfig* ); | 85 | void restoreSettings( KConfig* ); |
86 | 86 | ||
87 | public slots: | 87 | public slots: |
88 | void slotBorderedBGSelected( int index ); | 88 | void slotBorderedBGSelected( int index ); |
89 | void slotTiledBGSelected( int index ); | 89 | void slotTiledBGSelected( int index ); |
90 | 90 | ||
91 | protected: | 91 | protected: |
92 | void paintEvent( QPaintEvent* ); | 92 | void paintEvent( QPaintEvent* ); |
93 | void mousePressEvent( QMouseEvent* ); | 93 | void mousePressEvent( QMouseEvent* ); |
94 | void mouseMoveEvent( QMouseEvent* ); | 94 | void mouseMoveEvent( QMouseEvent* ); |
95 | 95 | ||
96 | /** | 96 | /** |
97 | A method to retrieve a background image according to the path | 97 | A method to retrieve a background image according to the path |
98 | stored in the entry. It is either loaded | 98 | stored in the entry. It is either loaded |
99 | from backgrounds, that acts as a cache, or from the file | 99 | from backgrounds, that acts as a cache, or from the file |
100 | and added to @see backgrounds. | 100 | and added to @see backgrounds. |
101 | */ | 101 | */ |
102 | bool getBackground( QString path, QPixmap& image ); | 102 | bool getBackground( QString path, QPixmap& image ); |
103 | 103 | ||
104 | private: | 104 | private: |
105 | QPtrList<QRect> mURLRects; | 105 | QPtrList<QRect> mURLRects; |
106 | QPtrList<QRect> mEmailRects; | 106 | QPtrList<QRect> mEmailRects; |
107 | QPtrList<QRect> mPhoneRects; | 107 | QPtrList<QRect> mPhoneRects; |
108 | KABEntryPainter *mPainter; | 108 | KABEntryPainter *mPainter; |
109 | 109 | ||
110 | QMap<QString, QPixmap> mBackgroundMap; | 110 | QMap<QString, QPixmap> mBackgroundMap; |
111 | QPixmap mCurrentBackground; | 111 | QPixmap mCurrentBackground; |
112 | 112 | ||
113 | BackgroundStyle mBackgroundStyle; | 113 | BackgroundStyle mBackgroundStyle; |
114 | 114 | ||
115 | bool mUseDefaultBGImage; | 115 | bool mUseDefaultBGImage; |
116 | bool mUseHeadLineBGColor; | 116 | bool mUseHeadLineBGColor; |
117 | 117 | ||
118 | QColor mDefaultBGColor; | 118 | QColor mDefaultBGColor; |
119 | QColor mHeadLineBGColor; | 119 | QColor mHeadLineBGColor; |
120 | QColor mHeadLineTextColor; | 120 | QColor mHeadLineTextColor; |
121 | 121 | ||
122 | QPixmap mDefaultBGImage; | 122 | QPixmap mDefaultBGImage; |
123 | 123 | ||
124 | KToggleAction *mActionShowAddresses; | 124 | KToggleAction *mActionShowAddresses; |
125 | KToggleAction *mActionShowEmails; | 125 | KToggleAction *mActionShowEmails; |
126 | KToggleAction *mActionShowPhones; | 126 | KToggleAction *mActionShowPhones; |
127 | KToggleAction *mActionShowURLs; | 127 | KToggleAction *mActionShowURLs; |
128 | 128 | ||
129 | const int mGrid; | 129 | const int mGrid; |
130 | QStringList mBorders; | 130 | QStringList mBorders; |
131 | QStringList mTiles; | 131 | QStringList mTiles; |
132 | 132 | ||
133 | QPopupMenu *mMenuBorderedBG; | 133 | Q3PopupMenu *mMenuBorderedBG; |
134 | QPopupMenu *mMenuTiledBG; | 134 | Q3PopupMenu *mMenuTiledBG; |
135 | 135 | ||
136 | static const QString mBorderedBGDir; | 136 | static const QString mBorderedBGDir; |
137 | static const QString mTiledBGDir; | 137 | static const QString mTiledBGDir; |
138 | }; | 138 | }; |
139 | 139 | ||
140 | class KABDetailedViewFactory : public KABLookFactory | 140 | class KABDetailedViewFactory : public KABLookFactory |
141 | { | 141 | { |
142 | public: | 142 | public: |
143 | KABDetailedViewFactory( QWidget *parent = 0, const char *name = 0 ) | 143 | KABDetailedViewFactory( QWidget *parent = 0, const char *name = 0 ) |
144 | : KABLookFactory( parent, name ) {} | 144 | : KABLookFactory( parent, name ) {} |
145 | 145 | ||
146 | KABBasicLook *create() | 146 | KABBasicLook *create() |
147 | { | 147 | { |
148 | return new KABDetailedView( mParent, mName ); | 148 | return new KABDetailedView( mParent, mName ); |
149 | } | 149 | } |
150 | 150 | ||
151 | QString description() | 151 | QString description() |
152 | { | 152 | { |
153 | return i18n( "Detailed Style: Display all details, no modifications." ); | 153 | return i18n( "Detailed Style: Display all details, no modifications." ); |
154 | } | 154 | } |
155 | }; | 155 | }; |
156 | 156 | ||
157 | #endif | 157 | #endif |