}
public MenuBar(QWidget arg0, String arg1) {
//super(arg0, arg1);
QPopupMenu file = new QPopupMenu(arg0);
file.insertItem("E&xit", qApp(), SLOT("quit()"), new QKeySequence(CTRL
+ Key_Q));
QPopupMenu tools = new QPopupMenu(arg0);
tools.insertItem("Attach to Project", arg0, SLOT("attachToProject()"),
new QKeySequence(CTRL + Key_W));
tools.insertItem("Account manager", arg0, SLOT("accountManager()"), new QKeySequence(
CTRL + Key_A));
QPopupMenu activity = new QPopupMenu(arg0);
activity.insertItem("Run always", arg0, SLOT("runAlways()"));
activity.insertItem("Run based on preferences", arg0, SLOT("runBasedOnPreferences()"));
activity.insertItem("Suspend", arg0, SLOT("suspend()"));
activity.insertSeparator();
activity
.insertItem("Network activity always available", arg0, SLOT("networkAlwaysAvailable()"));
activity.insertItem("Network activity based on preferences", arg0,
SLOT("networkAuto()"));
activity.insertItem("Network activity suspended", arg0, SLOT("networkSuspend()"));
QPopupMenu advanced = new QPopupMenu(arg0);
advanced.insertItem("Options", arg0, SLOT("options()"));
advanced.insertItem("Select computer...", arg0, SLOT("selectComputer()"));
advanced.insertItem("Run CPU benchmark", arg0, SLOT("benchark()"));
advanced.insertItem("Retry communication", arg0, SLOT("retryCommunication()"));
QPopupMenu help = new QPopupMenu(arg0);
help.insertItem("JBoinc Manager", arg0, SLOT("jboincManager()"));
help.insertItem("JBoinc Website", arg0, SLOT("jboincWebsite()"));
help.insertItem("BOINC Website", arg0, SLOT("BOINCWebsite()"));
help.insertSeparator();
help.insertItem("About JBoinc Manager", arg0, SLOT("about()"));
help.insertItem("About &Qt", this, SLOT("aboutQt()"));
QMenuBar menu = new QMenuBar(arg0);
menu.insertItem("&File", file);
menu.insertItem("&Tools", tools);
menu.insertItem("&Activity", activity);