Search in sources :

Example 1 with ChatViewerBot

use of com.glitchcog.fontificator.bot.ChatViewerBot in project ChatGameFontificator by GlitchCog.

the class ControlWindow method build.

/**
     * Called separately from construction.
     * 
     * @param logBox
     */
public void build(LogBox logBox) {
    constructAboutPopup();
    this.messageDialog = new MessageDialog(fProps, chatWindow, this, logBox);
    this.bot = new ChatViewerBot();
    this.bot.setUsername(fProps.getIrcConfig().getUsername());
    this.controlTabs = new ControlTabs(fProps, bot, messageDialog.getCensorPanel(), logBox);
    this.controlTabs.build(chatWindow, this);
    this.bot.setChatPanel(chatWindow.getChatPanel());
    setLayout(new GridLayout(1, 1));
    add(controlTabs);
    initMenus();
    // This wasn't built before the config was loaded into the chat control
    // tab, so set it here
    setAlwaysOnTopMenu(fProps.getChatConfig().isAlwaysOnTop());
    setRememberPositionMenu(fProps.getChatConfig().isRememberPosition());
    setAntiAliasMenu(fProps.getChatConfig().isAntiAlias());
    setupHelp();
    pack();
    setMinimumSize(getSize());
    setResizable(false);
}
Also used : GridLayout(java.awt.GridLayout) ControlTabs(com.glitchcog.fontificator.gui.controls.panel.ControlTabs) ChatViewerBot(com.glitchcog.fontificator.bot.ChatViewerBot) MessageDialog(com.glitchcog.fontificator.gui.controls.messages.MessageDialog)

Aggregations

ChatViewerBot (com.glitchcog.fontificator.bot.ChatViewerBot)1 MessageDialog (com.glitchcog.fontificator.gui.controls.messages.MessageDialog)1 ControlTabs (com.glitchcog.fontificator.gui.controls.panel.ControlTabs)1 GridLayout (java.awt.GridLayout)1