diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-08-29 22:32:59 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-08-30 14:53:32 (GMT) |
commit | b9b535ffd46382c413504a1781400c1a554e04a8 (patch) | |
tree | 723b1e948930478e0324c374f74f1fabc88699ec /Swift/QtUI/QtChatTheme.h | |
parent | 5546afc2bbf8ab0fd49647150da7a5f3df01deaf (diff) | |
download | swift-contrib-b9b535ffd46382c413504a1781400c1a554e04a8.zip swift-contrib-b9b535ffd46382c413504a1781400c1a554e04a8.tar.bz2 |
Render the Chat view directly with DOM commands, not javascript.
Tested locally, but it's conceivable there will be regressions.
Diffstat (limited to 'Swift/QtUI/QtChatTheme.h')
-rw-r--r-- | Swift/QtUI/QtChatTheme.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTheme.h b/Swift/QtUI/QtChatTheme.h new file mode 100644 index 0000000..199c66d --- /dev/null +++ b/Swift/QtUI/QtChatTheme.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2010 Kevin Smith. + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <QString> +#include <QList> + +namespace Swift { + class QtChatTheme { + public: + QtChatTheme(const QString& themePath); + QString getHeader() {return fileContents_[Header];}; + QString getFooter() {return fileContents_[Footer];}; + QString getContent() {return fileContents_[Content];}; + QString getStatus() {return fileContents_[Status];}; + QString getTopic() {return fileContents_[Topic];}; + QString getFileTransferRequest() {return fileContents_[FileTransferRequest];}; + QString getIncomingContent() {return fileContents_[IncomingContent];}; + QString getIncomingNextContent() {return fileContents_[IncomingNextContent];}; + QString getIncomingContext() {return fileContents_[IncomingContext];}; + QString getIncomingNextContext() {return fileContents_[IncomingNextContext];}; + QString getOutgoingContent() {return fileContents_[OutgoingContent];}; + QString getOutgoingNextContent() {return fileContents_[OutgoingNextContent];}; + QString getOutgoingContext() {return fileContents_[OutgoingContext];}; + QString getOutgoingNextContext() {return fileContents_[OutgoingNextContext];}; + QString getTemplate() {return fileContents_[Template];} + QString getMainCSS() {return fileContents_[MainCSS];} + QString getBase(); + + private: + enum files {Header = 0, Footer, Content, Status, Topic, FileTransferRequest, IncomingContent, IncomingNextContent, IncomingContext, IncomingNextContext, OutgoingContent, OutgoingNextContent, OutgoingContext, OutgoingNextContext, Template, MainCSS, TemplateDefault, EndMarker}; + bool qrc_; + QList<QString> fileContents_; + QString themePath_; + }; +} |