summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rc/ResourceFileWriter.h
diff options
context:
space:
mode:
authorMarek Sokolowski <mnbvmar@gmail.com>2017-09-30 00:38:52 +0000
committerMarek Sokolowski <mnbvmar@gmail.com>2017-09-30 00:38:52 +0000
commit7f7745c03815507ddda56914e25bdb0751333571 (patch)
treea8daf25fff429e336cfdace4bc4cdec28b53f6d2 /llvm/tools/llvm-rc/ResourceFileWriter.h
parent17d0bb9611beb3e170caf9e1f4462c041265724b (diff)
downloadbcm5719-llvm-7f7745c03815507ddda56914e25bdb0751333571.tar.gz
bcm5719-llvm-7f7745c03815507ddda56914e25bdb0751333571.zip
[llvm-rc] Serialize DIALOG(EX) to .res files (serialization, pt 4).
This is now able to serialize DIALOG and DIALOGEX resources to .res files. It still can't parse dialog-specific CAPTION, FONT, and STYLE optional statement - these will be added in the following patch. A limited set of controls is included. However, more can be easily added by extending SupportedCtls map defined in ResourceScriptStmt.cpp. Differential Revision: https://reviews.llvm.org/D37862 llvm-svn: 314578
Diffstat (limited to 'llvm/tools/llvm-rc/ResourceFileWriter.h')
-rw-r--r--llvm/tools/llvm-rc/ResourceFileWriter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/tools/llvm-rc/ResourceFileWriter.h b/llvm/tools/llvm-rc/ResourceFileWriter.h
index ef736baa169..e9f9695cca6 100644
--- a/llvm/tools/llvm-rc/ResourceFileWriter.h
+++ b/llvm/tools/llvm-rc/ResourceFileWriter.h
@@ -31,6 +31,7 @@ public:
Error visitNullResource(const RCResource *) override;
Error visitAcceleratorsResource(const RCResource *) override;
+ Error visitDialogResource(const RCResource *) override;
Error visitHTMLResource(const RCResource *) override;
Error visitMenuResource(const RCResource *) override;
@@ -61,6 +62,10 @@ private:
bool IsLastItem);
Error writeAcceleratorsBody(const RCResource *);
+ // DialogResource
+ Error writeSingleDialogControl(const Control &, bool IsExtended);
+ Error writeDialogBody(const RCResource *);
+
// HTMLResource
Error writeHTMLBody(const RCResource *);
OpenPOWER on IntegriCloud