Icons for the OTR contact menu and configuration form.

cusax-fix
Yana Stamcheva 16 years ago
parent 9574de952c
commit 45e152d9b1

@ -417,4 +417,6 @@ plugin.otr.PLAINTEXT_ICON_16x16=resources/images/plugin/otr/plaintext16x16.png
plugin.otr.PLAINTEXT_ICON_22x22=resources/images/plugin/otr/plaintext22x22.png
plugin.otr.FINISHED_ICON_16x16=resources/images/plugin/otr/finished16x16.png
plugin.otr.FINISHED_ICON_22x22=resources/images/plugin/otr/finished22x22.png
plugin.otr.HELP_ICON_15x15=resources/images/plugin/otr/help15x15.png
plugin.otr.HELP_ICON_15x15=resources/images/plugin/otr/help15x15.png
plugin.otr.MENU_ITEM_ICON_16x16=resources/images/plugin/otr/otr_menu_icon.png
plugin.otr.configform.ICON=resources/images/plugin/otr/otr_config_icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 B

@ -118,7 +118,8 @@ private void registerUI()
bundleContext.registerService(ConfigurationForm.class.getName(),
new LazyConfigurationForm(
"net.java.sip.communicator.plugin.otr.OtrConfigurationPanel",
getClass().getClassLoader(), "plugin.otr.configform.ICON",
getClass().getClassLoader(),
"plugin.otr.configform.ICON",
"plugin.otr.configform.TITLE", 30), null);
}

@ -240,7 +240,8 @@ public Object getValueAt(int row, int column)
case CONTACTNAME_INDEX:
return contact.getDisplayName();
case VERIFIED_INDEX:
return (OtrActivator.scOtrEngine.isContactVerified(contact)) ? "Yes"
return (OtrActivator.scOtrEngine.isContactVerified(contact))
? "Yes"
: "No";
case FINGERPRINT_INDEX:
return OtrActivator.scOtrEngine
@ -304,18 +305,16 @@ private void openContact(Contact contact)
private void initComponents()
{
this
.setBorder(BorderFactory
.createTitledBorder(
BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
OtrActivator.resourceService
.getI18NString("plugin.otr.configform.KNOWN_FINGERPRINTS")));
this.setBorder(BorderFactory.createTitledBorder(
BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
OtrActivator.resourceService
.getI18NString("plugin.otr.configform.KNOWN_FINGERPRINTS")));
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
contactsTable = new JTable();
contactsTable.setModel(new ContactsTableModel());
contactsTable
.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
contactsTable.setSelectionMode(
javax.swing.ListSelectionModel.SINGLE_SELECTION);
contactsTable.setCellSelectionEnabled(false);
contactsTable.setColumnSelectionAllowed(false);
contactsTable.setRowSelectionAllowed(true);

@ -30,6 +30,9 @@ public class OtrMetaContactMenu
public OtrMetaContactMenu(Container container)
{
this.setIcon(OtrActivator.resourceService
.getImage("plugin.otr.MENU_ITEM_ICON_16x16"));
this.container = container;
this.setText(OtrActivator.resourceService
.getI18NString("plugin.otr.menu.TITLE"));

Loading…
Cancel
Save