#include "renderengine.h"
#include "resourcethread.h"
#include "samplescroll.h"
-#include "swindow.h"
+#include "shbtnprefs.h"
#include "statusbar.h"
+#include "swindow.h"
#include "theme.h"
#include "trackcanvas.h"
#include "trackscroll.h"
// the main window uses its own private colormap for video
MWindowGUI::MWindowGUI(MWindow *mwindow)
- : BC_Window(PROGRAM_NAME ": Program",
+ : BC_Window(_(PROGRAM_NAME ": Program"),
mwindow->session->mwindow_x,
mwindow->session->mwindow_y,
mwindow->session->mwindow_w,
if(debug) printf("MWindowGUI::create_objects %d\n", __LINE__);
- add_subwindow(mainmenu = new MainMenu(mwindow, this));
+ int x = get_w() - MainShBtns::calculate_w(0);
+ add_subwindow(mainmenu = new MainMenu(mwindow, this, x));
+ add_subwindow(mainshbtns = new MainShBtns(mwindow, x, 0));
+ mainshbtns->load(mwindow->preferences);
mwindow->theme->get_mwindow_sizes(this, get_w(), get_h());
mwindow->theme->draw_mwindow_bg(this);
mainmenu->create_objects();
FileSystem fs;
char filename[BCTEXTLEN], string[BCTEXTLEN];
fs.extract_name(filename, path);
- sprintf(string, PROGRAM_NAME ": %s", filename);
+ sprintf(string, _(PROGRAM_NAME ": %s"), filename);
set_title(string);
//printf("MWindowGUI::update_title %s\n", string);
flush();