2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Moved inline bot result structs from structs.cpp/h module.

Moved inline bot result layouts from layout.cpp/h module.
Over status prepared for inline bot file result icon.
Dependencies reduced, inline bots code moved to InlineBots namespace.
Build in Xcode and QtCreator broken.
This commit is contained in:
John Preston
2016-04-05 01:09:46 +04:00
parent a2fc7f6915
commit 3e2485678d
31 changed files with 2789 additions and 2167 deletions

View File

@@ -812,11 +812,11 @@ void MainWidget::ui_repaintHistoryItem(const HistoryItem *item) {
if (overview) overview->ui_repaintHistoryItem(item);
}
void MainWidget::ui_repaintInlineItem(const LayoutInlineItem *layout) {
void MainWidget::ui_repaintInlineItem(const InlineBots::Layout::ItemBase *layout) {
history.ui_repaintInlineItem(layout);
}
bool MainWidget::ui_isInlineItemVisible(const LayoutInlineItem *layout) {
bool MainWidget::ui_isInlineItemVisible(const InlineBots::Layout::ItemBase *layout) {
return history.ui_isInlineItemVisible(layout);
}
@@ -1895,7 +1895,7 @@ void MainWidget::documentLoadRetry() {
}
void MainWidget::inlineResultLoadProgress(FileLoader *loader) {
//InlineResult *result = App::inlineResultFromLoader(loader);
//InlineBots::Result *result = InlineBots::resultFromLoader(loader);
//if (!result) return;
//result->loaded();
@@ -1904,7 +1904,7 @@ void MainWidget::inlineResultLoadProgress(FileLoader *loader) {
}
void MainWidget::inlineResultLoadFailed(FileLoader *loader, bool started) {
//InlineResult *result = App::inlineResultFromLoader(loader);
//InlineBots::Result *result = InlineBots::resultFromLoader(loader);
//if (!result) return;
//result->loaded();