My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
#ifndef _WithXMLMenu_h_
#define _WithXMLMenu_h_

#include "XMLMenuInterface.h"
#include "XMLMenuEditor.h"

NAMESPACE_UPP

// main XML menu template
template<class T> class WithXMLMenu : public T, public XMLMenuInterface
{
private:

// the available commands
XMLCommands commands;

// the configurable toolbars
XMLToolBars toolBars;

// the configurable menu bars
// the bar named 'Main' is the main menu
// others are context menus
XMLToolBars menuBars;

// the four corner XMLToolbarFrame frames
XMLToolBarFrame topFrame;
XMLToolBarFrame bottomFrame;
XMLToolBarFrame leftFrame;
XMLToolBarFrame rightFrame;

// the menu bars
ArrayMap<String, MenuBar> menuBarCtrls;

// toolbar controls storage area
ArrayMap<String, XMLToolBarCtrl> toolBarCtrls;

// flags stating allowed dock point and main menu bar
bool dockTop, dockBottom, dockLeft, dockRight;
bool mainMenu;

// refrash frames when menu/toolbars changed
// or docking points changed
void RefreshFrames(void);

// dragging flag
bool dragging;

// toolbar being dragged
Ptr<XMLToolBarCtrl> dragToolBar;

// pre-docking stuffs
Ptr<XMLToolBarFrame> preDockFrame;

// menu and toolbars setter callbacks
void SetMenuBar0(Bar &bar, int mnIdx, Array<XMLToolBarItem> const *items);
void SetMenuBar(Bar &bar, int mnIdx) { SetMenuBar0(bar, mnIdx, NULL); }

void SetToolBar0(Bar &bar, int tbIdx, Array<XMLToolBarItem> const *items);
void SetToolBar(Bar &bar, int tbIdx) { SetToolBar0(bar, tbIdx, NULL); }

// calls user command handler, passing command ID to it
void callUserHandler(String const &s) { UserCmdHandler(s); }

// docks/undocks/hide a toolbar
WithXMLMenu<T> &Reposition(XMLToolBarCtrl *tb, XMLToolBarState state, Point p);

// query a dock frame under screen point
XMLToolBarFrame *QueryDockFrame(Point p);

// frame mouse event, captures right click on docking frames
// allowing to activate 'customize' even without any toolbar displayed
Image FrameMouseEvent(int event, Point p, int zdelta, dword keyflags);

// child frame mouse event handler captures the click on toolbar's frames
virtual void ChildFrameMouseEvent(Ctrl *child, int event, Point p, int zdelta, dword keyflags);

// mouse events sent from floating toolbar
virtual void FloatingDraggedEvent(XMLToolBarCtrl &tb, Point p);

// run the menu editor
void runEditorCb(void) { XMLMenuEditor(this).RunAppModal(); }

// toggles bar visibility
void toggleBarCb(int iBar);

// right click context menu
void ContextMenu(Bar& bar);

// right click event sent from various controls
virtual void RightClickEvent(Point p) { MenuBar::Execute(THISBACK(ContextMenu)); }

// the drag loop
void DragLoop(Point startP);

// refresh menus and bars
void RefreshBarsDeep(void);
void RefreshBars(void);

// sync bars from ctrls
void SyncBars(void);

public:

typedef WithXMLMenu<T> CLASSNAME;

WithXMLMenu();
~WithXMLMenu();

// user commands handler
Callback1<String> UserCmdHandler;

// sets builtin commands
void SetCommands(Callback1<XMLCommands &> cmds);

// sets menu entries
void SetMenuBars(Callback1<XMLToolBars &> tb);

// sets toolbars entries
void SetToolBars(Callback1<XMLToolBars &> tb);

// gets/sets commands, menu and toolbars
virtual XMLCommands const &GetCommands(void) { return commands; }
virtual void SetCommands(XMLCommands &cmds) { commands = cmds; RefreshBars(); }
virtual XMLToolBars const &GetMenuBars(void) { return menuBars; }
virtual void SetMenuBars(XMLToolBars &tb) { menuBars = tb; RefreshBars(); }
virtual XMLToolBars const &GetToolBars(void) { SyncBars(); return toolBars; }
virtual void SetToolBars(XMLToolBars &tb) { toolBars = tb; RefreshBars(); }

// controls docking and main menu behaviour
WithXMLMenu<T> &DockTop(bool b = true) { dockTop = b; RefreshFrames(); return *this; }
WithXMLMenu<T> &NoDockTop(void) { return DockTop(false); }
WithXMLMenu<T> &DockBottom(bool b = true) { dockBottom = b; RefreshFrames(); return *this; }
WithXMLMenu<T> &NoDockBottom(void) { return DockBottom(false); }
WithXMLMenu<T> &DockLeft(bool b = true) { dockLeft = b; RefreshFrames(); return *this; }
WithXMLMenu<T> &NoDockLeft(void) { return DockLeft(false); }
WithXMLMenu<T> &DockRight(bool b = true) { dockRight = b; RefreshFrames(); return *this; }
WithXMLMenu<T> &NoDockRight(void) { return DockRight(false); }

WithXMLMenu<T> &MainMenu(bool b = true) { mainMenu = b; RefreshFrames(); return *this; }
WithXMLMenu<T> &NoMainMenu(void) { return MainMenu(false); }

// gets a context menu by name -- NULL if none
MenuBar *GetContextMenu(String const &name);

// xml support
void Xmlize(XmlIO xml);
};

template<class T> WithXMLMenu<T>::WithXMLMenu() :
topFrame (TOOLBAR_TOP),
bottomFrame (TOOLBAR_BOTTOM),
leftFrame (TOOLBAR_LEFT),
rightFrame (TOOLBAR_RIGHT)
{
// allows, by default, docking on 4 corners and embeds
// main menu too
dockTop = dockBottom = dockLeft = dockRight = true;
mainMenu = true;

dragging = false;
dragToolBar = NULL;

preDockFrame = NULL;

RefreshFrames();

}

template<class T> WithXMLMenu<T>::~WithXMLMenu()
{
}

// refrash frames when menu/toolbars changed
// or docking points changed
template<class T> void WithXMLMenu<T>::RefreshFrames(void)
{
// removes all frames
T::RemoveFrame(topFrame);
T::RemoveFrame(bottomFrame);
T::RemoveFrame(leftFrame);
T::RemoveFrame(rightFrame);

// adds main menu
int iFrame = 0;
if(mainMenu)
{
int mainIdx = menuBarCtrls.Find("Main");
if(mainIdx >= 0)
{
MenuBar &bar = menuBarCtrls[mainIdx];
T::RemoveFrame(bar);
T::InsertFrame(iFrame++, bar);
}
}

// add docking frames
if(dockTop)
T::InsertFrame(iFrame++, topFrame);
if(dockBottom)
T::InsertFrame(iFrame++, bottomFrame);
if(dockLeft)
T::InsertFrame(iFrame++, leftFrame);
if(dockRight)
T::InsertFrame(iFrame, rightFrame);
}


// docks/undocks/hide a toolbar
template<class T> WithXMLMenu<T> &WithXMLMenu<T>::Reposition(XMLToolBarCtrl *tb, XMLToolBarState state, Point p)
{
switch(state)
{
case TOOLBAR_CLOSED :
tb->Close();
tb->toolBarPos = p;
break;

case TOOLBAR_FLOATING :
tb->Float(p);
break;

case TOOLBAR_TOP :
tb->Dock(topFrame, p);
break;

case TOOLBAR_BOTTOM :
tb->Dock(bottomFrame, p);
break;

case TOOLBAR_LEFT :
tb->Dock(leftFrame, p);
break;

case TOOLBAR_RIGHT :
tb->Dock(rightFrame, p);
break;

default:
NEVER();
}
return *this;
}

// query a dock frame under point
template<class T> XMLToolBarFrame *WithXMLMenu<T>::QueryDockFrame(Point p)
{
// reset point to be on control rect
if(dockTop && topFrame.Contains(p))
return &topFrame;
else if(dockBottom && bottomFrame.Contains(p))
return &bottomFrame;
else if(dockLeft && leftFrame.Contains(p))
return &leftFrame;
else if(dockRight && rightFrame.Contains(p))
return &rightFrame;
else
return NULL;
}

// frame mouse event, captures right click on docking frames
// allowing to activate 'customize' even without any toolbar displayed
template<class T> Image WithXMLMenu<T>::FrameMouseEvent(int event, Point p, int zdelta, dword keyflags)
{
// handles just left down events
if(event != Ctrl::RIGHTDOWN)
return T::FrameMouseEvent(event, p, zdelta, keyflags);

Ctrl::PostCallback(THISBACK1(RightClickEvent, p));
return T::FrameMouseEvent(event, p, zdelta, keyflags);
}

// child frame mouse event handler captures the click on toolbar's frames
template<class T> void WithXMLMenu<T>::ChildFrameMouseEvent(Ctrl *child, int event, Point p, int zdelta, dword keyflags)
{
// allow context menu even on child frames
if(event == Ctrl::RIGHTDOWN)
{
Ctrl::PostCallback(THISBACK1(RightClickEvent, p));
return;
}

// handles just left down events
if(event != Ctrl::LEFTDOWN)
return;

// ignore re-entrant events
if(dragging)
return;

// reacts just to events related to XMLToolBar
dragToolBar = dynamic_cast<XMLToolBarCtrl *>(child);
if(!dragToolBar)
return;

// setup drag point for dragging the toolbar
Point dragPoint = p + dragToolBar->GetScreenRect().TopLeft();

// execute the drag loop
DragLoop(dragPoint);
}

// mouse events sent from floating toolbar
template<class T> void WithXMLMenu<T>::FloatingDraggedEvent(XMLToolBarCtrl &tb, Point p)
{
// ignore event if toolbar is not floating
// should not happen, but.....
if(!tb.GetIsFloating())
return;

// ignode re-entrant events
if(dragging)
return;

// setup drag toolbar
dragToolBar = &tb;

// run drag loop
DragLoop(p);
}

template<class T> void WithXMLMenu<T>::DragLoop(Point dragPoint)
{
// marks dragging active to avoid re-entrant events
dragging = true;

// check if dragtoolbar is valid -- interna error if not
ASSERT(dragToolBar);

// ignore mouse events on main control, when dragging
Ctrl::IgnoreMouse();

// popup-ize the toolbar
dragToolBar->Popup(dragPoint);

#ifdef PLATFORM_POSIX
// this is needed for X11, otherwise the GetMouseLeft() function
// may return false even if mouse is down after un-floating
Sleep(30);
dragToolBar->SetCapture();
#endif

// loop up to mouse button is released
Point ps;
do
{
Ctrl::ProcessEvents();
ps = GetMousePos();
Rect r = dragToolBar->GetRect();
r = r + ps - dragPoint;
dragPoint = ps;
dragToolBar->SetRect(r);

// query an eventual dock frame under mouse
if(preDockFrame)
preDockFrame->UnPreDock(*dragToolBar);
preDockFrame = QueryDockFrame(ps);
if(preDockFrame)
{
XMLToolBarState state = preDockFrame->GetToolBarState();
if(state == TOOLBAR_TOP || state == TOOLBAR_BOTTOM)
dragToolBar->PopHorz(ps);
else
dragToolBar->PopVert(ps);
preDockFrame->PreDock(*dragToolBar, ps);
}
else
dragToolBar->PopSquare(ps);
Ctrl::RefreshLayout();
}
while(GetMouseLeft());

#ifdef PLATFORM_POSIX
dragToolBar->ReleaseCapture();
#endif

// if dropped on a frame, dock there
if(preDockFrame)
{
dragToolBar->UnPreDock(*preDockFrame);
dragToolBar->DockAt(*preDockFrame, ps);
}
else
{
// otherwise float it
dragToolBar->Float(ps);
}

// re-accepts mouse events
Ctrl::NoIgnoreMouse();

// end dragging mode
dragging = false;
}

// menu and toolbars setter callbacks
template<class T> void WithXMLMenu<T>::SetMenuBar0(Bar &bar, int mnIdx, Array<XMLToolBarItem> const *items)
{
// get menu bar items
if(!items)
items = &menuBars[mnIdx].GetItems();

for(int i = 0; i < items->GetCount(); i++)
{
// get current item
XMLToolBarItem const &item = (*items)[i];

// submenu handling
if(item.IsSubMenu())
{
bar.Add(item.GetLabel(), item.GetIcon(), THISBACK2(SetMenuBar0, mnIdx, &item.GetSubMenu().GetItems()));
continue;
}

// get command id and find command
// if not found, just skip it
String id = item.GetId();
if(!commands.Has(id))
continue;

// get command from id
XMLCommand const &cmd = commands.Get(id);

// get callback from command
bool isCustom = cmd.GetIsCustom();
Callback handler;
if(isCustom)
{
String cmds = cmd.GetCommandString();
if(cmds == "")
cmds = id;
handler = THISBACK1(callUserHandler, cmds);
}
else
handler = cmd.GetCallback();

// get remaining item data
String label = item.GetLabel();
if(label == "")
label = id;
Image const &img = item.GetIcon();

Ctrl *ctrl = cmd.GetCtrl();
bool enabled = cmd.GetIsEnabled();

// adds to menu
if(ctrl)
{
if(cmd.GetCtrlSize() == Size(-1, -1))
bar.Add(enabled, *ctrl);
else
bar.Add(enabled, *ctrl, cmd.GetCtrlSize());
}
else
bar.Add(enabled, label, img, handler);
}
}

template<class T> void WithXMLMenu<T>::SetToolBar0(Bar &bar, int tbIdx, Array<XMLToolBarItem> const *items)
{
// get menu bar items
if(!items)
items = &toolBars[tbIdx].GetItems();

for(int i = 0; i < items->GetCount(); i++)
{
// get current item
XMLToolBarItem const &item = (*items)[i];

// submenu handling
if(item.IsSubMenu())
{
bar.Add(item.GetLabel(), item.GetIcon(), THISBACK2(SetToolBar0, tbIdx, &item.GetSubMenu().GetItems()));
continue;
}

// get command id and find command
// if not found, just skip it
String id = item.GetId();
if(!commands.Has(id))
continue;

// get command from id
XMLCommand const &cmd = commands.Get(id);

// get callback from command
bool isCustom = cmd.GetIsCustom();
Callback handler;
if(isCustom)
handler = THISBACK1(callUserHandler, cmd.GetCommandString());
else
handler = cmd.GetCallback();

// get remaining item data
String label = item.GetLabel();
if(label == "")
label = id;
Image const &img = item.GetIcon();

Ctrl *ctrl = cmd.GetCtrl();
bool enabled = cmd.GetIsEnabled();

// adds to menu
if(ctrl)
{
if(cmd.GetCtrlSize() == Size(-1, -1))
bar.Add(enabled, *ctrl);
else
bar.Add(enabled, *ctrl, cmd.GetCtrlSize());
}
else
bar.Add(enabled, label, img, handler);
}
}

// refresh menus and bars
template<class T> void WithXMLMenu<T>::RefreshBarsDeep(void)
{
// do a deep refresh, wiping all controls and recreating then
T::RemoveFrame(topFrame);
T::RemoveFrame(bottomFrame);
T::RemoveFrame(leftFrame);
T::RemoveFrame(rightFrame);
for(int iBar = 0; iBar < menuBarCtrls.GetCount(); iBar++)
T::RemoveFrame(menuBarCtrls[iBar]);

// refresh menus
menuBarCtrls.Clear();
for(int iBar = 0; iBar < menuBars.GetCount(); iBar++)
{
menuBarCtrls.Add(menuBars.GetKey(iBar), new MenuBar);

// workaround for main menu... without this one
// it appears as a popup menu
if(menuBars[iBar].GetName() == "Main")
T::AddFrame(menuBarCtrls[iBar]);

menuBarCtrls[iBar].Set(THISBACK1(SetMenuBar, iBar));
T::RemoveFrame(menuBarCtrls[iBar]);
}

// refresh toolbars
toolBarCtrls.Clear();
for(int iBar = 0; iBar < toolBars.GetCount(); iBar++)
{
XMLToolBar &toolBar = toolBars[iBar];
toolBarCtrls.Add(toolBars.GetKey(iBar), new XMLToolBarCtrl(this));
XMLToolBarCtrl &toolBarCtrl = toolBarCtrls.Top();
toolBarCtrls[iBar].Set(THISBACK1(SetToolBar, iBar));
Reposition(&toolBarCtrl, toolBar.GetState(), toolBar.GetPosition());
toolBarCtrls[iBar].SetPrevState(toolBar.GetPrevState());
}

// refresh frames
RefreshFrames();
}

template<class T> void WithXMLMenu<T>::RefreshBars(void)
{
// refactored logic for toolbar updates -- avoids unneeded
// screen redrawing and frame adding/removing

// we shall first find if controls were added or removed
// in that case we proceed the old way, recalculating all frames
Vector<String> const &ctrlNames = toolBarCtrls.GetKeys();
bool deepUpdate = false;
for(int iName = 0; iName < ctrlNames.GetCount(); iName++)
{
if(toolBars.Find(ctrlNames[iName]) < 0)
{
deepUpdate = true;
break;
}
}
if(!deepUpdate)
{
Vector<String> const &barNames = toolBars.GetKeys();
for(int iName = 0; iName < barNames.GetCount(); iName++)
{
if(toolBarCtrls.Find(barNames[iName]) < 0)
{
deepUpdate = true;
break;
}
}
}
if(!deepUpdate)
{
Vector<String> const &menuCtrlNames = menuBars.GetKeys();
for(int iName = 0; iName < menuCtrlNames.GetCount(); iName++)
{
if(menuBars.Find(menuCtrlNames[iName]) < 0)
{
deepUpdate = true;
break;
}
}
}
if(!deepUpdate)
{
Vector<String> const &menuNames = menuBars.GetKeys();
for(int iName = 0; iName < menuNames.GetCount(); iName++)
{
if(menuBarCtrls.Find(menuNames[iName]) < 0)
{
deepUpdate = true;
break;
}
}
}

if(deepUpdate)
RefreshBarsDeep();
else
{
// do a smart refresh, just update controls inside menus and toolbars
for(int iBar = 0; iBar < menuBars.GetCount(); iBar++)
menuBarCtrls[iBar].Set(THISBACK1(SetMenuBar, iBar));
for(int iBar = 0; iBar < toolBars.GetCount(); iBar++)
toolBarCtrls[iBar].Set(THISBACK1(SetToolBar, iBar));
}
}

// sync bars from ctrls
template<class T> void WithXMLMenu<T>::SyncBars(void)
{
for(int i = 0; i < toolBars.GetCount(); i++)
{
XMLToolBarCtrl const &c = toolBarCtrls[i];
Point p = c.GetPosition();
XMLToolBarState state = c.GetState();
XMLToolBarState prevState = c.GetPrevState();
toolBars[i].SetPosition(p).SetState(state).SetPrevState(prevState);
}
}

// sets builtin commands
template<class T> void WithXMLMenu<T>::SetCommands(Callback1<XMLCommands &> cmds)
{
// setup commands
cmds(commands);

// refresh bars and frames
RefreshBars();
}

// sets menu entries
template<class T> void WithXMLMenu<T>::SetMenuBars(Callback1<XMLToolBars &> tb)
{
tb(menuBars);

// refresh toolbars
RefreshBars();
}

// sets toolbars entries
template<class T> void WithXMLMenu<T>::SetToolBars(Callback1<XMLToolBars &> tb)
{
tb(toolBars);

// refresh toolbars
RefreshBars();
}

// gets a context menu by name -- NULL if none
template<class T> MenuBar *WithXMLMenu<T>::GetContextMenu(String const &name)
{
return menuBarCtrls.FindPtr(name);
}

// xml support
template<class T> void WithXMLMenu<T>::Xmlize(XmlIO xml)
{
if(xml.IsStoring())
SyncBars();
xml
("commands" , commands)
("menubars" , menuBars)
("toolbars" , toolBars)
;
// here too, we use postcallback because we must
// wait that top window is opened before refreshing toolbars
// don't know if it's the right way, but.....
if(xml.IsLoading())
T::PostCallback(THISBACK(RefreshBarsDeep));
}

// toggles bar visibility
template<class T> void WithXMLMenu<T>::toggleBarCb(int iBar)
{
XMLToolBarCtrl &tb = toolBarCtrls[iBar];
if(tb.GetState() == TOOLBAR_CLOSED)
{
switch(tb.prevState)
{
case TOOLBAR_LEFT :
case TOOLBAR_RIGHT :
case TOOLBAR_TOP :
case TOOLBAR_BOTTOM :
case TOOLBAR_FLOATING :
Reposition(&tb, tb.prevState, tb.toolBarPos);
break;
default:
Reposition(&tb, TOOLBAR_FLOATING, tb.toolBarPos);
}
}
else
tb.CloseBar();
T::RefreshLayout();
}

// right click context menu
template<class T> void WithXMLMenu<T>::ContextMenu(Bar& bar)
{
// add customize command
bar.Add(t_("Customize"), THISBACK(runEditorCb));

// allow open/close bars
if(!toolBars.GetCount())
return;
bar.Separator();
for(int iBar = 0; iBar < toolBars.GetCount(); iBar++)
{
XMLToolBarCtrl &toolBarCtrl = toolBarCtrls[iBar];
String const &barName = toolBars.GetKey(iBar);
Bar::Item &item = bar.Add(barName, THISBACK1(toggleBarCb, iBar));
item.Check(toolBarCtrl.GetState() != TOOLBAR_CLOSED);
}
}

END_UPP_NAMESPACE

#endif

Change log

r4250 by micio on Dec 5, 2011   Diff
Bazaar/XMLMenu : on custom command send
command string instead of id
Go to: 
Project members, sign in to write a code review

Older revisions

r4242 by micio on Dec 4, 2011   Diff
Bazaar/XMLMenu : allow custom command
string on custom commands
Fixed a couple of bugs in editor
r4211 by micio on Nov 30, 2011   Diff
Bazaar/XMLMenu : refactored toolbars
refresh logic to avoid unneede
flickering
r4208 by micio on Nov 29, 2011   Diff
Bazaar/XMLMenu : allow XMLMenuize
controls with embedded frames
All revisions of this file

File info

Size: 19148 bytes, 732 lines
Powered by Google Project Hosting