docs update

This commit is contained in:
ingvar1995 2016-03-16 19:06:15 +03:00
parent e28e625b42
commit f2ec40e8e3
5 changed files with 40 additions and 4 deletions

View file

@ -1 +1,27 @@
# toxygen # Toxygen
Toxygen is simple Tox client written on pure Python 2.7
### [How to install](/docs/install.md)
# Supported OS:
- Windows
- Linux
###Features
- [x] 1v1 messages
- [x] Contact aliases
- [x] Chat history
- [x] Name lookups (TOX DNS 4 support)
- [x] Profile import/export
- [x] Message splitting
- [x] Proxy support
- [ ] File transfers
- [ ] Avatars
- [ ] Multiprofile
- [ ] Multilingual
###Downloads
[Download last stable version](https://github.com/xveduk/toxygen/archive/master.zip)
###Docs
[Check /docs/ for more info](/docs/)

Binary file not shown.

10
docs/install.md Normal file
View file

@ -0,0 +1,10 @@
# HOW TO INSTALL TOXYGEN:
1. [Install Python 2.7 in your system](https://wiki.python.org/moin/BeginnersGuide/Download)
2. [Install PySide](https://pypi.python.org/pypi/PySide/1.2.4) *(PyQt4 support will be added later)*
3. [Download toxygen](https://github.com/xveduk/toxygen/archive/master.zip)
4. Unpack archive and run src/main.py
# Supported OS:
- Windows
- Linux

View file

@ -242,7 +242,7 @@ class NetworkSettings(CenteredWidget):
old_data = str(settings['ipv6_enabled']) + str(settings['udp_enabled']) + str(bool(settings['proxy_type'])) old_data = str(settings['ipv6_enabled']) + str(settings['udp_enabled']) + str(bool(settings['proxy_type']))
new_data = str(self.ipv.isChecked()) + str(self.udp.isChecked()) + str(self.proxy.isChecked()) new_data = str(self.ipv.isChecked()) + str(self.udp.isChecked()) + str(self.proxy.isChecked())
changed = old_data != new_data changed = old_data != new_data
if self.proxy.isChecked() and (self.proxyip.text() != settings['proxy_host'] or self.proxyport.text() != settings['proxy_port']): if self.proxy.isChecked() and (self.proxyip.text() != settings['proxy_host'] or self.proxyport.text() != unicode(settings['proxy_port'])):
changed = True changed = True
if changed: if changed:
settings['ipv6_enabled'] = self.ipv.isChecked() settings['ipv6_enabled'] = self.ipv.isChecked()

View file

@ -456,7 +456,7 @@ class Profile(Contact, Singleton):
""" """
while len(message) > TOX_MAX_MESSAGE_LENGTH: while len(message) > TOX_MAX_MESSAGE_LENGTH:
size = TOX_MAX_MESSAGE_LENGTH * 4 / 5 size = TOX_MAX_MESSAGE_LENGTH * 4 / 5
last_part = message[size:] last_part = message[size:TOX_MAX_MESSAGE_LENGTH]
if ' ' in last_part: if ' ' in last_part:
index = last_part.index(' ') index = last_part.index(' ')
elif ',' in last_part: elif ',' in last_part:
@ -465,7 +465,7 @@ class Profile(Contact, Singleton):
index = last_part.index('.') index = last_part.index('.')
else: else:
index = TOX_MAX_MESSAGE_LENGTH - size index = TOX_MAX_MESSAGE_LENGTH - size
index += size index += size + 1
self._tox.friend_send_message(number, message_type, message[:index]) self._tox.friend_send_message(number, message_type, message[:index])
message = message[index:] message = message[index:]
self._tox.friend_send_message(number, message_type, message) self._tox.friend_send_message(number, message_type, message)