class IDEToolbar : ToolBar
{
- /* File options */
+ // File options
// New
ToolButton buttonNewFile { this, toolTip = $"New file", menuItemPtr = IDEItem(fileNewItem) };
// Open
ToolSeparator separator1 { this };
- /* Edit options */
+ // Edit options
// Cut
// Copy
// Paste
// ToolSeparator separator2 { this };
- /* Project options */
+ // Project options
// New project
ToolButton buttonNewProject { this, toolTip = $"New project", menuItemPtr = IDEItem(projectNewItem) };
// Open project
ToolSeparator separator3 { this };
- /* Build/Execution options */
+ // Build/Execution options
// Build
ToolButton buttonBuild { this, toolTip = $"Build project", menuItemPtr = IDEItem(projectBuildItem), disabled = true; };
// Re-link
ToolSeparator separator4 { this };
- /* Debug options */
+ // Debug options
// Start/Resume
ToolButton buttonDebugStartResume { this, toolTip = $"Start", menuItemPtr = IDEItem(debugStartResumeItem), disabled = true; };
// Restart
activeBitDepth.AddString("64 bit").tag = 64;
activeBitDepth.currentRow = row;
}
-
}
class IDEMainFrame : Window
}
else
{
+ app.driver = "OpenGL";
+/*
#if defined(__unix__) || defined(__APPLE__)
app.driver = (ideSettings.displayDriver && !strcmp(ideSettings.displayDriver, "OpenGL")) ? ideSettings.displayDriver : "X";
#else
app.driver = (ideSettings.displayDriver && !strcmp(ideSettings.displayDriver, "OpenGL")) ? ideSettings.displayDriver : "GDI";
#endif
+*/
ide.driverItems[ideSettings.displayDriver && !strcmp(ideSettings.displayDriver,"OpenGL")].checked = true;
}
};
}
+ // ideMainFrame.toolBar.autoCreate = false;
+
ideMainFrame.Create();
if(app.argFilesCount > 1)
ide.MenuWindowTileVert(null, 0);