88
80
extern int totipo_edit, totipo_sel;
83
static void do_ipo_editmenu_transformmenu(void *arg, int event)
87
case 0: /* grab/move */
96
static uiBlock *ipo_editmenu_transformmenu(void *arg_unused)
99
short yco= 0, menuwidth=120;
101
block= uiNewBlock(&curarea->uiblocks, "ipo_editmenu_transformmenu", UI_EMBOSSP, UI_HELV, G.curscreen->mainwin);
102
uiBlockSetButmFunc(block, do_ipo_editmenu_transformmenu, NULL);
104
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Grab/Move|G", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 0, "");
105
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Scale|S", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 1, "");
107
uiBlockSetDirection(block, UI_RIGHT);
108
uiTextBoundsBlock(block, 60);
91
113
static void do_ipo_editmenu_snapmenu(void *arg, int event)
370
392
uiBlockSetButmFunc(block, do_ipo_editmenu, NULL);
372
394
uiDefIconTextBut(block, BUTM, 1, ICON_MENU_PANEL, "Transform Properties|N", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 4, "");
396
uiDefIconTextBlockBut(block, ipo_editmenu_transformmenu, NULL, ICON_RIGHTARROW_THIN, "Transform", 0, yco-=20, 120, 19, "");
373
398
uiDefIconTextBlockBut(block, ipo_editmenu_snapmenu, NULL, ICON_RIGHTARROW_THIN, "Snap", 0, yco-=20, 120, 19, "");
375
400
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
591
616
strcat(string,tmpstr);
619
if(OBACT && give_current_texture(OBACT, OBACT->actcol)) {
620
sprintf(tmpstr,formatstring,"Texture",ID_TE, ICON_TEXTURE);
621
strcat(string,tmpstr);
595
625
if ELEM4(OBACT->type, OB_MESH, OB_CURVE, OB_SURF, OB_LATTICE) {
596
626
sprintf(tmpstr,formatstring,"Vertex",ID_KE, ICON_EDIT);
774
804
ei = get_editipo();
776
806
xmax= GetButStringLength("View");
777
uiDefBlockBut(block,ipo_viewmenu, NULL, "View", xco, -2, xmax-3, 24, "");
807
uiDefPulldownBut(block,ipo_viewmenu, NULL, "View", xco, -2, xmax-3, 24, "");
780
810
xmax= GetButStringLength("Select");
781
uiDefBlockBut(block,ipo_selectmenu, NULL, "Select", xco, -2, xmax-3, 24, "");
811
uiDefPulldownBut(block,ipo_selectmenu, NULL, "Select", xco, -2, xmax-3, 24, "");
784
814
if (G.sipo->showkey) {
785
815
xmax= GetButStringLength("Key");
786
uiDefBlockBut(block,ipo_editmenu, NULL, "Key", xco, -2, xmax-3, 24, "");
816
uiDefPulldownBut(block,ipo_editmenu, NULL, "Key", xco, -2, xmax-3, 24, "");
788
818
else if(ei != NULL && (ei->flag & IPO_EDIT)) {
789
819
xmax= GetButStringLength("Point");
790
uiDefBlockBut(block,ipo_editmenu, NULL, "Point", xco, -2, xmax-3, 24, "");
820
uiDefPulldownBut(block,ipo_editmenu, NULL, "Point", xco, -2, xmax-3, 24, "");
793
823
xmax= GetButStringLength("Curve");
794
uiDefBlockBut(block,ipo_editmenu, NULL, "Curve", xco, -2, xmax-3, 24, "");
824
uiDefPulldownBut(block,ipo_editmenu, NULL, "Curve", xco, -2, xmax-3, 24, "");
825
855
icon = ICON_CONSTRAINT;
826
856
else if (G.sipo->blocktype == ID_SEQ)
827
857
icon = ICON_SEQUENCE;
858
else if(G.sipo->blocktype == ID_TE)
829
uiDefIconTextButS(block, MENU, B_IPOMAIN, icon, ipo_modeselect_pup(), xco,0,100,20, &(G.sipo->blocktype), 0, 0, 0, 0, "Display IPO type");
861
uiDefIconTextButS(block, MENU, B_IPOMAIN, icon, ipo_modeselect_pup(), xco,0,100,20, &(G.sipo->blocktype), 0, 0, 0, 0, "Show IPO type");
833
865
if(G.sipo->blocktype==ID_MA) {
834
uiDefButS(block, NUM, B_IPOMAIN, "", xco+=XIC,0,XIC-4,YIC, &G.sipo->channel, 0.0, 7.0, 0, 0, "Displays Channel Number of the active Material texture. Click to change.");
866
uiDefButS(block, NUM, B_IPOMAIN, "", xco+=XIC,0,XIC-4,YIC, &G.sipo->channel, 0.0, MAX_MTEX-1.0, 0, 0, "Channel Number of the active Material texture.");
837
869
if(G.sipo->blocktype==ID_WO) {
838
uiDefButS(block, NUM, B_IPOMAIN, "", xco+=XIC,0,XIC-4,YIC, &G.sipo->channel, 0.0, 7.0, 0, 0, "Displays Channel Number of the active World texture. Click to change.");
870
uiDefButS(block, NUM, B_IPOMAIN, "", xco+=XIC,0,XIC-4,YIC, &G.sipo->channel, 0.0, MAX_MTEX-1.0, 0, 0, "Channel Number of the active World texture.");
842
874
if(G.sipo->blocktype==ID_LA) {
843
uiDefButS(block, NUM, B_IPOMAIN, "", xco+=XIC,0,XIC-4,YIC, &G.sipo->channel, 0.0, 7.0, 0, 0, "Displays Channel Number of the active Lamp texture. Click to change.");
875
uiDefButS(block, NUM, B_IPOMAIN, "", xco+=XIC,0,XIC-4,YIC, &G.sipo->channel, 0.0, MAX_MTEX-1.0, 0, 0, "Channel Number of the active Lamp texture. ");