Commit Graph

612 Commits

Author SHA1 Message Date
Olly Betts
ecf85bf4cb Remove WXWIN_OS_DESCRIPTION.
This constant wasn't very useful as it contained the description of the OS on
the machine where the library was built, not the one on which the application
using it was running. It also wasn't used anywhere in wxWidgets and apparently
wasn't meant to be used outside of it.

Finally, putting the output of `uname -r` into it created problems with
creating reproducible builds as just a change in the kernel version changed
the build results.

Closes #17002.
2015-05-22 02:29:49 +02:00
Dimitri Schoolwerth
8f8d58d193 Use wx-prefixed macros throughout the repository.
Change {DECLARE,IMPLEMENT}_*CLASS and {DECLARE,BEGIN,END}_EVENT_TABLE
occurrences to use the wx-prefixed version of the macros.
2015-04-23 22:00:35 +04:00
Lauri Nurmi
8a2ccd9cf7 Fix spelling of occur* in random files. 2015-02-21 20:01:23 +02:00
Vadim Zeitlin
e146b6330d Fix a couple of typos in comments in wxX11 code.
Closes #16835.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-04 13:19:13 +00:00
Vadim Zeitlin
e8de8ae04f Remove unnecessary statement from wxX11 wxTextCtrl code.
We don't care about size_x variable value and should probably get rid of it
entirely, but for now at least don't update it unnecessarily.

Closes #16834.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-04 13:19:08 +00:00
Vadim Zeitlin
96d7b1d397 Don't declare unnecessary variable in wxUSE_NANOX wxX11 build.
Closes #16833.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-04 13:19:04 +00:00
Vadim Zeitlin
90639b8339 Send idle events from inside wxYield() in all ports, including wxMSW.
This means it can be now done in wxEventLoopBase itself and calls to
ProcessIdle() in the port-specific code are not needed any more, so remove
them.

This introduces a change in behaviour for wxMSW, where idle event handlers
were not invoked from inside wxYield() at all previously, and for wxOSX, where
only a single idle event is now generated from wxYield() instead of a stream
of them until no idle handler needs any more of them as before. But on the
bright side, the new behaviour seems to make most sense and is now the same in
all ports.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-12-05 22:17:23 +00:00
Jouk Jansen
3cb2392abc Correction on commit #78099
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-11-11 07:46:00 +00:00
Jouk Jansen
df5b5baab3 Implement wxNativeFontInfo::GetStrikethrough() for wxX11 without pango
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-11-07 15:14:19 +00:00
Jouk Jansen
fe443d5392 Fix for compilation of wxX11 without UTF
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-11-07 13:22:00 +00:00
Vadim Zeitlin
1b9caedbcd Detabify the new wxX11 clipboard sources.
No changes, just whitespace cleanup.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:45:15 +00:00
Vadim Zeitlin
01c1dde264 Avoid deprecated wxPen/wxBrush/wxFont API in wxX11 code.
Also simplify the code by relying on implicit constructors of wxPen and
wxBrush from wxColour.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:45:10 +00:00
Vadim Zeitlin
db2ecf57cc Avoid signed/unsigned comparison warnings.
Also declare the variable only used inside the loop in the loop statement
itself.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:45:01 +00:00
Vadim Zeitlin
367210aded Remove unused TRACE_CLIPBOARD variable from wxX11 wxClipboard code.
wxLogTrace() calls using this apparently were removed, so remove the trace
mask as well to avoid "unused variable" warnings about it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:44:59 +00:00
Vadim Zeitlin
7b3774444b remove unnecessary Clear() and wrong delete
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:44:28 +00:00
Vadim Zeitlin
5a6c061f37 use wxCharTypeBuffer replace unsigned char pointer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:44:25 +00:00
Vadim Zeitlin
b3c88024e8 delete variable on stack is wrong, remove it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:44:22 +00:00
Vadim Zeitlin
cae31c23f3 remove unnessary internal variables, parameters; use wxVector replace c++ array; enable implemented function parameter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:44:19 +00:00
Vadim Zeitlin
dea35139cd adjust codes according to comments of Catalin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:44:16 +00:00
Vadim Zeitlin
fc3b0de9cc add return to a case statment, make sure it is not fall through to other statment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:44:14 +00:00
Vadim Zeitlin
463df5a58a use cairo implement rotated text
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:44:08 +00:00
Vadim Zeitlin
51309ad50a make x11 dc could get cairo context, so the graphic module could use in x11. This use cairo xlib backend.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:44:06 +00:00
Vadim Zeitlin
3704547684 fix complilation error: narrowing conversions in xbm files under wxX11. For discussion, please see ticket 12575
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:44:01 +00:00
Vadim Zeitlin
24486d69a8 update wxBrush and wxPen style in x11/dcclient.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:43:53 +00:00
Vadim Zeitlin
b045f9506b Rewrite the wxX11 cliboard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:43:44 +00:00
Vadim Zeitlin
ad84d9f97d make wxKeyEvent could get unicode key under x11, add a x11 keysym--unicode char map tab
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:43:37 +00:00
Vadim Zeitlin
3873c4db75 improve the commit according the comments of Catalin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:43:33 +00:00
Vadim Zeitlin
f7beec1025 we must store the to be focused window before we kill focus on a window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:43:30 +00:00
Vadim Zeitlin
83c0fca8da Remove the dead code that copied from gtk1 port. And initial implementation of x11 clipboard support. It only support text for now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:43:27 +00:00
Vadim Zeitlin
d956d87f2e enable wxNEEDS_UTF8_FOR_TEXT_DATAOBJ flag for x11 TextDataObject, and add implementation of GetAllFormat function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:43:24 +00:00
Vadim Zeitlin
3d317ceb84 Modifiers down should not generate wxEVT_CHAR event, and reset keyboardState when recieve modifiers up.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:43:04 +00:00
Vadim Zeitlin
d9b73c6365 refine the implementation of SetFocus, clean up unused static variables
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:43:01 +00:00
Vadim Zeitlin
f6fdfe8ebc about focused window, replace static variables implementation by DoFindFocus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:42:58 +00:00
Vadim Zeitlin
cc3acf904b add GetLabel/SetLabel implementation to wxWindowX11, the function just store the label string, but do nothing with it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:42:33 +00:00
Vadim Zeitlin
db0d7e67a9 set enc to wxUnusedVar in unicode mode, remove the old ugly code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:42:03 +00:00
Vadim Zeitlin
08603120f4 in unicode, we did not need the font encoding parameter
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:42:00 +00:00
Vadim Zeitlin
df00ba55e0 adjust code to apply the wx coding guidelines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:41:57 +00:00
Vadim Zeitlin
96413683c5 free the data in deconstructor that created in constructor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:41:55 +00:00
Vadim Zeitlin
c973dd7be5 the font data have to stroe in m_nativeFontInfo, otherwise the constructor that use wxNavtiveFontInfo as parameter could not retrive the data in it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:41:51 +00:00
Vadim Zeitlin
d2573ed255 Add get/set strikeline support to wxFont/x11.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:41:48 +00:00
Vadim Zeitlin
ae1bc4fa82 make wxPalette under x11 could store/get uchar RGB value in palette and also could get the color number in palette.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:41:45 +00:00
Vadim Zeitlin
ec6777f17d Adjust code, to consistent with the coding style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:40:27 +00:00
Vadim Zeitlin
15908f0a43 If string are empty, DoGetTextExtent should not return descent by a random value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:40:18 +00:00
Vadim Zeitlin
51ca7cdcd0 Enable these wxRegion constructor for x11 port
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:40:08 +00:00
Vadim Zeitlin
a8b36e90eb The unit test will use WX_ASSERT_FAILS_WITH_ASSERT to check DoSetRegion(test/geometry/region.cpp:101) eventually, and the macro could handle exception, not true or false. Change it consistent with other port
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:40:05 +00:00
Vadim Zeitlin
fc8d46b34a wxColurRefData in x11 did not overwrite CreateRef function, so it should not use AllocExclusive(), use UnRef() instead, just like InitRGBA() function in wxGTK port did
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:39:59 +00:00
Vadim Zeitlin
58730bc356 Add wxEVT_SET_FOCUS and wxEVT_KILL_FOCUS event to wxX11
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:39:44 +00:00
Vadim Zeitlin
8e238e367e wxX11 wxFont miss the wxFont (const wxString &nativeInfoString) ctor, it will cause build tests failed. Added and fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-23 17:38:51 +00:00
Vadim Zeitlin
a380c1e46f Add public wxDegToRad() and wxRadToDeg() functions.
Define these functions just once in wx/math.h instead of duplicating them in a
dozen of places.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-05-17 12:29:15 +00:00
Paul Cornett
a0f10ec1d6 Implement access to a global toplevel GdkWindow in a way that does not require always having an extra GtkWindow.
And don't use "RootWindow" in the name, it is not a root window in the X11 sense.
Also add wxGetPangoContext() to get access to a PangoContext.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-05-05 15:53:27 +00:00