A few little cleanups, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -122,6 +122,7 @@ Source: "demo\data\*.txt"; DestDir: "{app}\wxPython\demo\data";
|
|||||||
Source: "demo\data\*.wav"; DestDir: "{app}\wxPython\demo\data"; Components: demo
|
Source: "demo\data\*.wav"; DestDir: "{app}\wxPython\demo\data"; Components: demo
|
||||||
Source: "demo\data\*.wdr"; DestDir: "{app}\wxPython\demo\data"; Components: demo
|
Source: "demo\data\*.wdr"; DestDir: "{app}\wxPython\demo\data"; Components: demo
|
||||||
Source: "demo\data\*.xrc"; DestDir: "{app}\wxPython\demo\data"; Components: demo
|
Source: "demo\data\*.xrc"; DestDir: "{app}\wxPython\demo\data"; Components: demo
|
||||||
|
Source: "demo\data\*.gif"; DestDir: "{app}\wxPython\demo\data"; Components: demo
|
||||||
|
|
||||||
Source: "demo\dllwidget\*.cpp"; DestDir: "{app}\wxPython\demo\dllwidget"; Components: demo
|
Source: "demo\dllwidget\*.cpp"; DestDir: "{app}\wxPython\demo\dllwidget"; Components: demo
|
||||||
Source: "demo\dllwidget\*.py"; DestDir: "{app}\wxPython\demo\dllwidget"; Components: demo
|
Source: "demo\dllwidget\*.py"; DestDir: "{app}\wxPython\demo\dllwidget"; Components: demo
|
||||||
|
@@ -854,6 +854,9 @@ public:
|
|||||||
// or output encoding is not supported.)
|
// or output encoding is not supported.)
|
||||||
bool Init(wxFontEncoding input_enc, wxFontEncoding output_enc, int method = wxCONVERT_STRICT);
|
bool Init(wxFontEncoding input_enc, wxFontEncoding output_enc, int method = wxCONVERT_STRICT);
|
||||||
|
|
||||||
|
|
||||||
|
// TODO: Need to do something about unicode mode...
|
||||||
|
|
||||||
// Convert input string according to settings passed to Init.
|
// Convert input string according to settings passed to Init.
|
||||||
// Note that you must call Init before using Convert!
|
// Note that you must call Init before using Convert!
|
||||||
wxString Convert(const wxString& input);
|
wxString Convert(const wxString& input);
|
||||||
@@ -868,6 +871,7 @@ public:
|
|||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Return equivalent(s) for given font that are used
|
// Return equivalent(s) for given font that are used
|
||||||
// under given platform. wxPLATFORM_CURRENT means the plaform
|
// under given platform. wxPLATFORM_CURRENT means the plaform
|
||||||
// this binary was compiled for
|
// this binary was compiled for
|
||||||
|
@@ -1058,18 +1058,18 @@ class Frame(wxFrame):
|
|||||||
# Create toolbar
|
# Create toolbar
|
||||||
tb = self.CreateToolBar(wxTB_HORIZONTAL | wxNO_BORDER | wxTB_FLAT)
|
tb = self.CreateToolBar(wxTB_HORIZONTAL | wxNO_BORDER | wxTB_FLAT)
|
||||||
tb.SetToolBitmapSize((24, 23))
|
tb.SetToolBitmapSize((24, 23))
|
||||||
tb.AddSimpleTool(wxID_NEW, '', images.getNewBitmap(), 'New', 'New file')
|
tb.AddSimpleTool(wxID_NEW, images.getNewBitmap(), 'New', 'New file')
|
||||||
tb.AddSimpleTool(wxID_OPEN, '', images.getOpenBitmap(), 'Open', 'Open file')
|
tb.AddSimpleTool(wxID_OPEN, images.getOpenBitmap(), 'Open', 'Open file')
|
||||||
tb.AddSimpleTool(wxID_SAVE, '', images.getSaveBitmap(), 'Save', 'Save file')
|
tb.AddSimpleTool(wxID_SAVE, images.getSaveBitmap(), 'Save', 'Save file')
|
||||||
tb.AddControl(wxStaticLine(tb, -1, size=(-1,23), style=wxLI_VERTICAL))
|
tb.AddControl(wxStaticLine(tb, -1, size=(-1,23), style=wxLI_VERTICAL))
|
||||||
tb.AddSimpleTool(wxID_CUT, '', images.getCutBitmap(), 'Cut', 'Cut')
|
tb.AddSimpleTool(wxID_CUT, images.getCutBitmap(), 'Cut', 'Cut')
|
||||||
tb.AddSimpleTool(wxID_COPY, '', images.getCopyBitmap(), 'Copy', 'Copy')
|
tb.AddSimpleTool(wxID_COPY, images.getCopyBitmap(), 'Copy', 'Copy')
|
||||||
tb.AddSimpleTool(wxID_PASTE, '', images.getPasteBitmap(), 'Paste', 'Paste')
|
tb.AddSimpleTool(wxID_PASTE, images.getPasteBitmap(), 'Paste', 'Paste')
|
||||||
tb.AddControl(wxStaticLine(tb, -1, size=(-1,23), style=wxLI_VERTICAL))
|
tb.AddControl(wxStaticLine(tb, -1, size=(-1,23), style=wxLI_VERTICAL))
|
||||||
tb.AddSimpleTool(self.ID_TEST, '', images.getTestBitmap(), 'Test', 'Test window')
|
tb.AddSimpleTool(self.ID_TEST, images.getTestBitmap(), 'Test', 'Test window')
|
||||||
tb.AddSimpleTool(self.ID_REFRESH, '', images.getRefreshBitmap(),
|
tb.AddSimpleTool(self.ID_REFRESH, images.getRefreshBitmap(),
|
||||||
'Refresh', 'Refresh view')
|
'Refresh', 'Refresh view')
|
||||||
tb.AddSimpleTool(self.ID_AUTO_REFRESH, '', images.getAutoRefreshBitmap(),
|
tb.AddSimpleTool(self.ID_AUTO_REFRESH, images.getAutoRefreshBitmap(),
|
||||||
'Auto-refresh', 'Toggle auto-refresh mode', true)
|
'Auto-refresh', 'Toggle auto-refresh mode', true)
|
||||||
if wxGetOsVersion()[0] == wxGTK:
|
if wxGetOsVersion()[0] == wxGTK:
|
||||||
tb.AddSeparator() # otherwise auto-refresh sticks in status line
|
tb.AddSeparator() # otherwise auto-refresh sticks in status line
|
||||||
@@ -1910,7 +1910,7 @@ class App(wxApp):
|
|||||||
wc.Flush()
|
wc.Flush()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
app = App(0)
|
app = App()
|
||||||
app.MainLoop()
|
app.MainLoop()
|
||||||
app.OnExit()
|
app.OnExit()
|
||||||
|
|
||||||
|
@@ -940,20 +940,20 @@ class ShellMenu:
|
|||||||
m = self.autocompMenu = wxMenu()
|
m = self.autocompMenu = wxMenu()
|
||||||
m.Append(ID_AUTOCOMP_SHOW, 'Show Auto Completion', \
|
m.Append(ID_AUTOCOMP_SHOW, 'Show Auto Completion', \
|
||||||
'Show auto completion during dot syntax', \
|
'Show auto completion during dot syntax', \
|
||||||
checkable=1)
|
kind=wxITEM_CHECK)
|
||||||
m.Append(ID_AUTOCOMP_INCLUDE_MAGIC, 'Include Magic Attributes', \
|
m.Append(ID_AUTOCOMP_INCLUDE_MAGIC, 'Include Magic Attributes', \
|
||||||
'Include attributes visible to __getattr__ and __setattr__', \
|
'Include attributes visible to __getattr__ and __setattr__', \
|
||||||
checkable=1)
|
kind=wxITEM_CHECK)
|
||||||
m.Append(ID_AUTOCOMP_INCLUDE_SINGLE, 'Include Single Underscores', \
|
m.Append(ID_AUTOCOMP_INCLUDE_SINGLE, 'Include Single Underscores', \
|
||||||
'Include attibutes prefixed by a single underscore', \
|
'Include attibutes prefixed by a single underscore', \
|
||||||
checkable=1)
|
kind=wxITEM_CHECK)
|
||||||
m.Append(ID_AUTOCOMP_INCLUDE_DOUBLE, 'Include Double Underscores', \
|
m.Append(ID_AUTOCOMP_INCLUDE_DOUBLE, 'Include Double Underscores', \
|
||||||
'Include attibutes prefixed by a double underscore', \
|
'Include attibutes prefixed by a double underscore', \
|
||||||
checkable=1)
|
kind=wxITEM_CHECK)
|
||||||
|
|
||||||
m = self.calltipsMenu = wxMenu()
|
m = self.calltipsMenu = wxMenu()
|
||||||
m.Append(ID_CALLTIPS_SHOW, 'Show Call Tips', \
|
m.Append(ID_CALLTIPS_SHOW, 'Show Call Tips', \
|
||||||
'Show call tips with argument specifications', checkable=1)
|
'Show call tips with argument specifications', kind=wxITEM_CHECK)
|
||||||
|
|
||||||
m = self.optionsMenu = wxMenu()
|
m = self.optionsMenu = wxMenu()
|
||||||
m.AppendMenu(ID_AUTOCOMP, '&Auto Completion', self.autocompMenu, \
|
m.AppendMenu(ID_AUTOCOMP, '&Auto Completion', self.autocompMenu, \
|
||||||
|
Reference in New Issue
Block a user