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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-07-24 00:40:51 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-07-24 00:40:51 +0400
commit062b1b88adc16cd580fb89c59839d7989a62e83e (patch)
tree0a7139bd88de867897439efd0e19d548dd439a29 /source/blender/editors/screen
parent580b52785464c1399f669e1a06c9b0b5b27c0be9 (diff)
2.5: Various
* Buttons header: made tab buttons bigger, remove view menu, replaced by RMB menu in main region. * Timeline header: tweak button placement and alignment, added a play reverse icon. * Window type chooser menu: removed audio and scripts windows, change console and logic icons. * Node space: disable the channel region until it is used.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/area.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 80ebdb77638..9ce124d9e4a 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -1056,7 +1056,7 @@ static char *windowtype_pup(void)
"|Video Sequence Editor %x8" //143
"|Timeline %x15" //163
- "|Audio Window %x11" //163
+ // "|Audio Window %x11" //163
"|Text Editor %x9" //179
"|%l" //192
@@ -1073,7 +1073,7 @@ static char *windowtype_pup(void)
"|%l" //293
- "|Scripts Window %x14"//313
+ // "|Scripts Window %x14"//313
"|Console %x18"
);
}
@@ -1085,7 +1085,7 @@ static void spacefunc(struct bContext *C, void *arg1, void *arg2)
}
/* returns offset for next button in header */
-int ED_area_header_standardbuttons(const bContext *C, uiBlock *block, int yco)
+int ED_area_header_switchbutton(const bContext *C, uiBlock *block, int yco)
{
ScrArea *sa= CTX_wm_area(C);
uiBut *but;
@@ -1098,9 +1098,18 @@ int ED_area_header_standardbuttons(const bContext *C, uiBlock *block, int yco)
"Click for menu of available types.");
uiButSetFunc(but, spacefunc, NULL, NULL);
- xco += XIC + 14;
+ return xco + XIC + 14;
+}
+
+int ED_area_header_standardbuttons(const bContext *C, uiBlock *block, int yco)
+{
+ ScrArea *sa= CTX_wm_area(C);
+ int xco= 8;
+ xco= ED_area_header_switchbutton(C, block, yco);
+
uiBlockSetEmboss(block, UI_EMBOSSN);
+
if (sa->flag & HEADER_NO_PULLDOWN) {
uiDefIconButBitS(block, TOG, HEADER_NO_PULLDOWN, 0,
ICON_DISCLOSURE_TRI_RIGHT,
@@ -1115,11 +1124,10 @@ int ED_area_header_standardbuttons(const bContext *C, uiBlock *block, int yco)
&(sa->flag), 0, 0, 0, 0,
"Hide pulldown menus");
}
- xco+=XIC;
-
+
uiBlockSetEmboss(block, UI_EMBOSS);
- return xco;
+ return xco + XIC;
}
/************************ standard UI regions ************************/