Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-01-06 21:52:18 +0300
committerTon Roosendaal <ton@blender.org>2009-01-06 21:52:18 +0300
commit02003021a6abff3b7afee5ccd390c6d7a7ae336b (patch)
tree7dbb16243795639783862ab8e3705d085ce9d264 /source/blender/windowmanager
parent1c933cdb782e3c81f9215bf2ed17cfa4e8a43b6a (diff)
2.5
Made ED_screen api calls: - ED_screen_full_newspace() - ED_screen_full_prevspace() Which now gets called by F1 operator, to move to full-screen-sized browser. For testing fun its default now. Might become user setting. Also have to check on opening a temp window for this (and for render).
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c38
1 files changed, 2 insertions, 36 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index a74e6c1d929..84b2a399392 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -328,43 +328,9 @@ static void WM_OT_open_recentfile(wmOperatorType *ot)
static int wm_mainfile_invoke(bContext *C, wmOperator *op, wmEvent *event)
{
- wmWindow *newwin, *win;
- bScreen *newsc, *sc;
- ScrArea *sa, *oldsa;
SpaceFile *sfile;
-
- rcti rect;
-
- win= CTX_wm_window(C);
- sc= CTX_wm_screen(C);
- oldsa= CTX_wm_area(C);
-
-#if 0 /* XXX experimental code for opening filebrowser in new window */
- /* poll() checks area context, but we don't accept full-area windows */
- if(sc->full != SCREENNORMAL)
- return OPERATOR_CANCELLED;
-
- /* adds window to WM */
- rect.xmin = 0;
- rect.ymin = 0;
- rect.xmax = win->sizex;
- rect.ymax = win->sizey;
- BLI_translate_rcti(&rect, win->posx, win->posy);
- newwin= WM_window_open(C, &rect);
-
- /* allocs new screen and adds to newly created window, using window size */
- newsc= screen_add(newwin, CTX_data_scene(C), sc->id.name+2);
- newwin->screen= newsc;
-
- /* create filebrowser */
- CTX_wm_window_set(C, newwin);
- CTX_wm_screen_set(C, newsc);
- sa= (ScrArea*)newsc->areabase.first;
- CTX_wm_area_set(C, sa);
- ED_area_newspace(C, sa, SPACE_FILE);
-#else
- ED_area_newspace(C, oldsa, SPACE_FILE);
-#endif
+
+ ED_screen_full_newspace(C, CTX_wm_area(C), SPACE_FILE);
/* settings for filebrowser */
sfile= (SpaceFile*)CTX_wm_space_data(C);