WIP: Add a GearsView class that contains a nice grey border and gears icon.
This commit is contained in:
parent
830c6e8d3c
commit
b5adb259c3
@ -28,6 +28,7 @@ Preference 3DRendering
|
|||||||
: be GL translation libcolumnlistview.a $(HAIKU_LOCALE_LIBS)
|
: be GL translation libcolumnlistview.a $(HAIKU_LOCALE_LIBS)
|
||||||
$(TARGET_LIBSUPC++)
|
$(TARGET_LIBSUPC++)
|
||||||
: 3DRendering.rdef
|
: 3DRendering.rdef
|
||||||
|
: Gears.rdef
|
||||||
;
|
;
|
||||||
|
|
||||||
DoCatalogs 3DRendering :
|
DoCatalogs 3DRendering :
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "CapabilitiesView.h"
|
#include "CapabilitiesView.h"
|
||||||
#include "ExtensionsView.h"
|
#include "ExtensionsView.h"
|
||||||
#include "InfoView.h"
|
#include "InfoView.h"
|
||||||
|
#include "GearsView.h"
|
||||||
|
|
||||||
|
|
||||||
#undef B_TRANSLATE_CONTEXT
|
#undef B_TRANSLATE_CONTEXT
|
||||||
@ -40,20 +41,20 @@ OpenGLView::OpenGLView()
|
|||||||
|
|
||||||
glView->LockGL();
|
glView->LockGL();
|
||||||
|
|
||||||
BMenu* menu = new BMenu(B_TRANSLATE("Automatic"));
|
BMenu* menu = new BMenu(B_TRANSLATE("Automatic"));
|
||||||
menu->SetRadioMode(true);
|
menu->SetRadioMode(true);
|
||||||
menu->SetLabelFromMarked(true);
|
menu->SetLabelFromMarked(true);
|
||||||
menu->AddItem(new BMenuItem(B_TRANSLATE("Automatic"),
|
menu->AddItem(new BMenuItem(B_TRANSLATE("Automatic"),
|
||||||
new BMessage(MENU_AUTO_MESSAGE)));
|
new BMessage(MENU_AUTO_MESSAGE)));
|
||||||
menu->AddSeparatorItem();
|
menu->AddSeparatorItem();
|
||||||
menu->AddItem(new BMenuItem(B_TRANSLATE("Software Rasterizer"),
|
menu->AddItem(new BMenuItem(B_TRANSLATE("Software Rasterizer"),
|
||||||
new BMessage(MENU_SWRAST_MESSAGE)));
|
new BMessage(MENU_SWRAST_MESSAGE)));
|
||||||
menu->AddItem(new BMenuItem(B_TRANSLATE("Gallium Software Pipe"),
|
menu->AddItem(new BMenuItem(B_TRANSLATE("Gallium Software Pipe"),
|
||||||
new BMessage(MENU_SWPIPE_MESSAGE)));
|
new BMessage(MENU_SWPIPE_MESSAGE)));
|
||||||
menu->AddItem(new BMenuItem(B_TRANSLATE("Gallium LLVM Pipe"),
|
menu->AddItem(new BMenuItem(B_TRANSLATE("Gallium LLVM Pipe"),
|
||||||
new BMessage(MENU_SWLLVM_MESSAGE)));
|
new BMessage(MENU_SWLLVM_MESSAGE)));
|
||||||
BMenuField* menuField = new BMenuField("renderer",
|
BMenuField* menuField = new BMenuField("renderer",
|
||||||
B_TRANSLATE("3D Rendering Engine:"), menu);
|
B_TRANSLATE("3D Rendering Engine:"), menu);
|
||||||
// TODO: Set current Renderer
|
// TODO: Set current Renderer
|
||||||
menuField->SetEnabled(false);
|
menuField->SetEnabled(false);
|
||||||
|
|
||||||
@ -69,9 +70,13 @@ OpenGLView::OpenGLView()
|
|||||||
.SetInsets(B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING,
|
.SetInsets(B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING,
|
||||||
B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING)
|
B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING)
|
||||||
.Add(menuField)
|
.Add(menuField)
|
||||||
.AddGroup(B_HORIZONTAL)
|
.AddGroup(B_HORIZONTAL, 0)
|
||||||
.Add(tabView)
|
.Add(new GearsView())
|
||||||
.SetInsets(0, B_USE_DEFAULT_SPACING, 0, 0);
|
.AddGroup(B_HORIZONTAL)
|
||||||
|
.Add(tabView)
|
||||||
|
.SetInsets(0, B_USE_DEFAULT_SPACING, 0, 0)
|
||||||
|
.End()
|
||||||
|
.End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user