Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

New message view #116

Merged
merged 52 commits into from
May 31, 2014
Merged

New message view #116

merged 52 commits into from
May 31, 2014

Conversation

Schlumpf
Copy link
Contributor

Here comes the new message view.

Features:

  • Faster chat view widget (QGraphicsView based)
  • Search for text
  • Smiley support
  • Full text selecting and copying
  • Sending and displaying typing notifications
  • Marker line on last seen message
  • Custom time stamp format

Fixes:

screen

PS: This replaces the old push request #110 .

@Schlumpf
Copy link
Contributor Author

Bug fixed.
Because we haven't that much space I selected the most important options. Quassel's search checkbox isn't very useful, hide the search bar and you have the same effect. And I thought, that searching nicks isn't important. Normal chats have 2 contacts... Maybe filtering in logs will be more interesting here.

@nurupo
Copy link
Owner

nurupo commented Apr 28, 2014

Quassel's search checkbox isn't very useful, hide the search bar and you have the same effect.

Not sure what you mean. I was talking about the four checkboxes Quassel has on its search widget.

gdfgdfgf

Because we haven't that much space I selected the most important options.

The current default window size is quite minimal, we could increased it, or we could remove the text like "Regular messages only" from the buttons and use icons instead, though that's a bit cryptic, I like to know what a button does without a need to hover over it...

And I thought, that searching nicks isn't important. Normal chats have 2 contacts...

But there will be groupchats.

enum CutoffMode {
CutoffLeft,
CutoffRight
};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChatScene::CutoffMode doesn't seem to be used anywhere, should we keep it or remove it? What was it originally used for anyway?

@nurupo
Copy link
Owner

nurupo commented May 20, 2014

Are those // TODO MKO ... comments belong to you?

mSearchLineEdit = new QLineEdit(this);
mSearchLineEdit->setClearButtonEnabled(true);
mSearchLineEdit->setPlaceholderText(tr("Search"));
connect(mSearchLineEdit, &QLineEdit::textChanged, this, &ChatViewSearchWidget::setSearchString);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nurupo
Copy link
Owner

nurupo commented May 20, 2014

Also, some of files miss the license notice.

@msteinbeck msteinbeck mentioned this pull request May 20, 2014
Conflicts:
	src/messagedisplaywidget.cpp
@Schlumpf
Copy link
Contributor Author

ChatScene::CutoffMode doesn't seem to be used anywhere, should we keep it or remove it? What was it originally used for anyway?

I'll remove that. It described, how Quassel cuts long nick names. Maybe the mockup guy from #12 could make a proposal how to do in Tox.

Are those // TODO MKO ... comments belong to you?

Yes ;)

@nurupo
Copy link
Owner

nurupo commented May 21, 2014

Maybe the mockup guy from #12 could make a proposal how to do in Tox.

Will ask him how would he cut off too long nicknames. It makes more sense to me to do CutoffRight, though there are some languages that are written in right to left direction, maybe that would make more sense to their users (though it would make even more sense to mirror the whole message display in that case, and i don't think we are going that far as implementing that, heh).

@Schlumpf Schlumpf mentioned this pull request May 25, 2014
Schlumpf added 8 commits May 25, 2014 15:58
 - Add missing licence headers
 - Remove unused code in ChatScene
 - Add search delay timer for better performance
 - Prevent searching if searchbar is not visible
and comment out some currently unused message handling functions
and fix sending typing notification if input widget focus lost
@nurupo
Copy link
Owner

nurupo commented May 29, 2014

I see you also used a timer for typing notifications, nice. It's kind of an obvious thing, but apparently some people miss that, considering one conversation on an irc channel.

Btw, I saw you pinging me on the irc the other day, feel free to email me if I'm afk in irc.

@nurupo
Copy link
Owner

nurupo commented May 30, 2014

I selected a smiley :(, copied it and pasted into the input widget, but it pasted " :" instead.

snapshot6

If I select the :( smiley and a space after it, then it pastes " :(" (with a space in the beginning).

nurupo added a commit that referenced this pull request May 31, 2014
@nurupo nurupo merged commit 0b7a334 into nurupo:master May 31, 2014
@nurupo
Copy link
Owner

nurupo commented May 31, 2014

I didn't really read all the code, though I don't see why I shouldn't merge it and read&fix afterwards as I go, not to mention that it works well and I didn't notice any outstanding bugs.

Thanks for the work, hopefully that smiley bug would get fixed : )

@aviau
Copy link
Contributor

aviau commented Jun 1, 2014

Wohoo this got merged =) Good job @Schlumpf

@lance0
Copy link

lance0 commented Jun 1, 2014

Great work.

@nurupo
Copy link
Owner

nurupo commented Jun 1, 2014

Yep, smileys seem to be a bit buggy, will make a separate issue.

@Schlumpf Schlumpf mentioned this pull request Jun 4, 2014
@Schlumpf Schlumpf deleted the find branch June 4, 2014 08:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants