Holiday coding log :)
Nice formatted version (pictures soon): http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.66/Usability Short list of main changes: - Transparent region option (over main region), added code to blend in/out such panels. - Min size window now 640 x 480 - Fixed DPI for ui - lots of cleanup and changes everywhere. Icon image need correct size still, layer-in-use icon needs remake. - Macbook retina support, use command line --no-native-pixels to disable it - Timeline Marker label was drawing wrong - Trackpad and magic mouse: supports zoom (hold ctrl) - Fix for splash position: removed ghost function and made window size update after creation immediate - Fast undo buffer save now adds UI as well. Could be checked for regular file save even... Quit.blend and temp file saving use this now. - Dixed filename in window on reading quit.blend or temp saves, and they now add a warning in window title: "(Recovered)" - New Userpref option "Keep Session" - this always saves quit.blend, and loads on start. This allows keeping UI and data without actual saves, until you actually save. When you load startup.blend and quit, it recognises the quit.blend as a startup (no file name in header) - Added 3D view copy/paste buffers (selected objects). Shortcuts ctrl-c, ctrl-v (OSX, cmd-c, cmd-v). Coded partial file saving for it. Could be used for other purposes. Todo: use OS clipboards. - User preferences (themes, keymaps, user settings) now can be saved as a separate file. Old option is called "Save Startup File" the new one "Save User Settings". To visualise this difference, the 'save startup file' button has been removed from user preferences window. That option is available as CTRL+U and in File menu still. - OSX: fixed bug that stopped giving mouse events outside window. This also fixes "Continuous Grab" for OSX. (error since 2009)
This commit is contained in:
@@ -69,7 +69,6 @@
|
||||
#include "WM_api.h"
|
||||
#include "WM_types.h"
|
||||
#include "wm_subwindow.h"
|
||||
#include "wm_window.h"
|
||||
|
||||
#include "RNA_access.h"
|
||||
|
||||
@@ -298,9 +297,9 @@ static void ui_centered_bounds_block(const bContext *C, uiBlock *block)
|
||||
/* note: this is used for the splash where window bounds event has not been
|
||||
* updated by ghost, get the window bounds from ghost directly */
|
||||
|
||||
// wm_window_get_size(window, &xmax, &ymax);
|
||||
wm_window_get_size_ghost(window, &xmax, &ymax);
|
||||
|
||||
xmax = WM_window_pixels_x(window);
|
||||
ymax = WM_window_pixels_y(window);
|
||||
|
||||
ui_bounds_block(block);
|
||||
|
||||
width = BLI_rctf_size_x(&block->rect);
|
||||
@@ -326,7 +325,8 @@ static void ui_popup_bounds_block(const bContext *C, uiBlock *block, eBlockBound
|
||||
/* compute mouse position with user defined offset */
|
||||
ui_bounds_block(block);
|
||||
|
||||
wm_window_get_size(window, &xmax, &ymax);
|
||||
xmax = WM_window_pixels_x(window);
|
||||
ymax = WM_window_pixels_y(window);
|
||||
|
||||
oldwidth = BLI_rctf_size_x(&block->rect);
|
||||
oldheight = BLI_rctf_size_y(&block->rect);
|
||||
@@ -334,7 +334,7 @@ static void ui_popup_bounds_block(const bContext *C, uiBlock *block, eBlockBound
|
||||
/* first we ensure wide enough text bounds */
|
||||
if (bounds_calc == UI_BLOCK_BOUNDS_POPUP_MENU) {
|
||||
if (block->flag & UI_BLOCK_LOOP) {
|
||||
block->bounds = 50;
|
||||
block->bounds = 2.5f * UI_UNIT_X;
|
||||
ui_text_bounds_block(block, block->rect.xmin);
|
||||
}
|
||||
}
|
||||
@@ -983,7 +983,8 @@ void ui_fontscale(short *points, float aspect)
|
||||
float pointsf = *points;
|
||||
|
||||
/* for some reason scaling fonts goes too fast compared to widget size */
|
||||
aspect = sqrt(aspect);
|
||||
/* XXX not true anymore? (ton) */
|
||||
//aspect = sqrt(aspect);
|
||||
pointsf /= aspect;
|
||||
|
||||
if (aspect > 1.0f)
|
||||
@@ -1000,7 +1001,7 @@ static void ui_but_to_pixelrect(rcti *rect, const ARegion *ar, uiBlock *block, u
|
||||
|
||||
ui_block_to_window_fl(ar, block, &rectf.xmin, &rectf.ymin);
|
||||
ui_block_to_window_fl(ar, block, &rectf.xmax, &rectf.ymax);
|
||||
|
||||
|
||||
rectf.xmin -= ar->winrct.xmin;
|
||||
rectf.ymin -= ar->winrct.ymin;
|
||||
rectf.xmax -= ar->winrct.xmin;
|
||||
@@ -1015,7 +1016,7 @@ static void ui_but_to_pixelrect(rcti *rect, const ARegion *ar, uiBlock *block, u
|
||||
/* uses local copy of style, to scale things down, and allow widgets to change stuff */
|
||||
void uiDrawBlock(const bContext *C, uiBlock *block)
|
||||
{
|
||||
uiStyle style = *UI_GetStyle(); /* XXX pass on as arg */
|
||||
uiStyle style = *UI_GetStyleDraw(); /* XXX pass on as arg */
|
||||
ARegion *ar;
|
||||
uiBut *but;
|
||||
rcti rect;
|
||||
@@ -2650,7 +2651,7 @@ static uiBut *ui_def_but(uiBlock *block, int type, int retval, const char *str,
|
||||
|
||||
BLI_assert(width >= 0);
|
||||
BLI_assert(height >= 0);
|
||||
|
||||
|
||||
/* we could do some more error checks here */
|
||||
if ((type & BUTTYPE) == LABEL) {
|
||||
BLI_assert((poin != NULL || min != 0.0f || max != 0.0f || (a1 == 0.0f && a2 != 0.0f) || (a1 != 0.0f && a1 != 1.0f)) == FALSE);
|
||||
|
||||
Reference in New Issue
Block a user