2015-01-27 17:09:28 -06:00
|
|
|
# -*- coding: utf-8 -*-
|
2019-06-06 11:52:23 -05:00
|
|
|
from __future__ import unicode_literals
|
2015-01-27 17:09:28 -06:00
|
|
|
import wx
|
|
|
|
import widgetUtils
|
2015-04-19 19:10:34 -04:00
|
|
|
import application
|
2015-06-11 16:09:46 -05:00
|
|
|
|
2015-01-27 17:09:28 -06:00
|
|
|
class autocompletionSettingsDialog(widgetUtils.BaseDialog):
|
|
|
|
def __init__(self):
|
2015-06-19 15:42:08 +02:00
|
|
|
super(autocompletionSettingsDialog, self).__init__(parent=None, id=-1, title=_(u"Autocomplete users' settings"))
|
2015-01-27 17:09:28 -06:00
|
|
|
panel = wx.Panel(self)
|
|
|
|
sizer = wx.BoxSizer(wx.VERTICAL)
|
|
|
|
self.followers_buffer = wx.CheckBox(panel, -1, _(u"Add users from followers buffer"))
|
|
|
|
self.friends_buffer = wx.CheckBox(panel, -1, _(u"Add users from friends buffer"))
|
|
|
|
sizer.Add(self.followers_buffer, 0, wx.ALL, 5)
|
|
|
|
sizer.Add(self.friends_buffer, 0, wx.ALL, 5)
|
2015-04-17 19:00:24 -04:00
|
|
|
self.viewList = wx.Button(panel, -1, _(u"Manage database..."))
|
2015-01-27 17:09:28 -06:00
|
|
|
sizer.Add(self.viewList, 0, wx.ALL, 5)
|
|
|
|
ok = wx.Button(panel, wx.ID_OK)
|
|
|
|
cancel = wx.Button(panel, wx.ID_CANCEL)
|
|
|
|
sizerBtn = wx.BoxSizer(wx.HORIZONTAL)
|
|
|
|
sizerBtn.Add(ok, 0, wx.ALL, 5)
|
|
|
|
sizer.Add(cancel, 0, wx.ALL, 5)
|
|
|
|
sizer.Add(sizerBtn, 0, wx.ALL, 5)
|
|
|
|
panel.SetSizer(sizer)
|
|
|
|
self.SetClientSize(sizer.CalcMin())
|
|
|
|
|
|
|
|
def show_success_dialog():
|
2015-06-26 08:27:43 -05:00
|
|
|
wx.MessageDialog(None, _(u"{0}'s database of users has been updated.").format(application.name,), _(u"Done"), wx.OK).ShowModal()
|