summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-01-19 17:14:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-01-19 20:59:42 +0000
commit253e439c347fae54e6c4731d432eef842a889c9d (patch)
tree5905a5c7dbbefdceb9fe062d1b0d9ebb25df5890 /vcl/inc
parente3dfe8905fc3d7ec1d0dd0fc20ac1189d2636e53 (diff)
implement custom images for radiobuttons via VclBuilder
Change-Id: I17e1956d0ff50e027c83ee7dbb85e3316bb88bd3
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/vcl/builder.hxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/vcl/inc/vcl/builder.hxx b/vcl/inc/vcl/builder.hxx
index 96f588095e88..3bc96420055f 100644
--- a/vcl/inc/vcl/builder.hxx
+++ b/vcl/inc/vcl/builder.hxx
@@ -81,7 +81,20 @@ private:
};
typedef StringPair RadioButtonGroupMap;
- typedef StringPair ButtonImageWidgetMap;
+
+ struct ButtonImageWidgetMap
+ {
+ OString m_sID;
+ OString m_sValue;
+ bool m_bRadio;
+ ButtonImageWidgetMap(const OString &rId, const OString &rValue, bool bRadio)
+ : m_sID(rId)
+ , m_sValue(rValue)
+ , m_bRadio(bRadio)
+ {
+ }
+ };
+
typedef StringPair TextBufferMap;
typedef StringPair WidgetAdjustmentMap;
typedef StringPair ButtonMenuMap;
@@ -242,7 +255,7 @@ private:
bool extractBuffer(const OString &id, stringmap &rVec);
bool extractSpinAdjustment(const OString &id, stringmap &rVec);
bool extractScrollAdjustment(const OString &id, stringmap &rVec);
- bool extractImage(const OString &id, stringmap &rMap);
+ bool extractButtonImage(const OString &id, stringmap &rMap, bool bRadio);
bool extractStock(const OString &id, stringmap &rMap);
void handleTranslations(xmlreader::XmlReader &reader);