setLayoutData(grid_data);
new ConnectButton(this);
new ToolItem(this,SWT.SEPARATOR);
final ToolItem servers_item = new ToolItem(this, SWT.CHECK);
servers_item.setText(Localizer._("mainwindow.toolbar.servers_item"));
servers_item.setSelection(true);
servers_item.setData(DATA_KEY, JMULE_TABS.SERVERLIST);
servers_item.setImage(SWTImageRepository.getImage("servers.png"));
button_list.add(servers_item);
servers_item.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent arg0) {
main_window.setTab(JMULE_TABS.SERVERLIST);
}
});
ToolItem kad_item = new ToolItem(this, SWT.CHECK);
kad_item.setText(Localizer._("mainwindow.toolbar.kad_item"));
kad_item.setData(DATA_KEY, JMULE_TABS.KAD);
kad_item.setImage(SWTImageRepository.getImage("kad.png"));
button_list.add(kad_item);
kad_item.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent arg0) {
main_window.setTab(JMULE_TABS.KAD);
}
});
final ToolItem transfers_item = new ToolItem(this, SWT.CHECK);
transfers_item.setText(Localizer._("mainwindow.toolbar.transfers_item"));
transfers_item.setData(DATA_KEY, JMULE_TABS.TRANSFERS);
transfers_item.setImage(SWTImageRepository.getImage("transfer.png"));
button_list.add(transfers_item);
transfers_item.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent arg0) {
main_window.setTab(JMULE_TABS.TRANSFERS);
}
});
final ToolItem search_item = new ToolItem(this, SWT.CHECK);
search_item.setText(Localizer._("mainwindow.toolbar.search_item"));
search_item.setData(DATA_KEY, JMULE_TABS.SEARCH);
search_item.setImage(SWTImageRepository.getImage("search.png"));
button_list.add(search_item);
search_item.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent arg0) {
main_window.setTab(JMULE_TABS.SEARCH);
}
});
final ToolItem shared_item = new ToolItem(this, SWT.CHECK);
shared_item.setText(Localizer._("mainwindow.toolbar.shared_item"));
shared_item.setData(DATA_KEY, JMULE_TABS.SHARED);
shared_item.setImage(SWTImageRepository.getImage("shared_files.png"));
button_list.add(shared_item);
shared_item.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent arg0) {
main_window.setTab(JMULE_TABS.SHARED);
}
});
final ToolItem statistics_item = new ToolItem(this, SWT.CHECK);
statistics_item.setText(Localizer._("mainwindow.toolbar.statistics_item"));
statistics_item.setData(DATA_KEY, JMULE_TABS.STATISTICS);
statistics_item.setImage(SWTImageRepository.getImage("statistics.png"));
button_list.add(statistics_item);
statistics_item.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent arg0) {
main_window.setTab(JMULE_TABS.STATISTICS);
}
});
final ToolItem logs_item = new ToolItem(this, SWT.CHECK);
logs_item.setText(Localizer._("mainwindow.toolbar.logs_item"));
logs_item.setData(DATA_KEY, JMULE_TABS.LOGS);
logs_item.setImage(SWTImageRepository.getImage("logs.png"));
button_list.add(logs_item);
logs_item.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent arg0) {
main_window.setTab(JMULE_TABS.LOGS);
}
});
}