|
| ChatWindow () |
|
| ~ChatWindow () override |
| Destructor: used to write back values to the config file.
|
|
void | resetToDefaultSize () override |
| Reset the chat window and recorder window attached to it to their default positions.
|
|
ChatTab * | getFocused () const |
| Gets the focused tab.
|
|
void | clearTab () |
| Clear the current tab.
|
|
void | prevTab () |
| Switch to the previous tab in order.
|
|
void | nextTab () |
| Switch to the next tab in order.
|
|
void | action (const gcn::ActionEvent &event) override |
| Performs action.
|
|
bool | requestChatFocus () |
| Request focus for typing chat message.
|
|
bool | isInputFocused () const |
| Checks whether ChatWindow is Focused or not.
|
|
void | chatInput (const std::string &msg) |
| Passes the text to the current tab as input.
|
|
void | addInputText (const std::string &text) |
| Add the given text to the chat input.
|
|
void | addItemText (const std::string &item) |
| Called to add item to chat.
|
|
void | setVisible (bool visible) override |
| Override to reset mTmpVisible.
|
|
void | mousePressed (gcn::MouseEvent &event) override |
|
void | mouseDragged (gcn::MouseEvent &event) override |
|
void | event (Event::Channel channel, const Event &event) override |
|
void | scroll (int amount) |
| Scrolls the chat window.
|
|
void | setRecordingFile (const std::string &msg) |
| Sets the file being recorded to.
|
|
void | doPresent () |
|
void | whisper (const std::string &nick, const std::string &mes, Own own=BY_OTHER) |
|
ChatTab * | addWhisperTab (const std::string &nick, bool switchTo=false) |
|
| Window (const std::string &caption="Window", bool modal=false, Window *parent=nullptr) |
| Constructor.
|
|
| Window (SkinType skinType, const std::string &caption="Window", bool modal=false, Window *parent=nullptr) |
| Constructor that allows customizing the SkinType used by the window.
|
|
| ~Window () override |
| Destructor.
|
|
void | draw (gcn::Graphics *graphics) override |
| Draws the window contents.
|
|
void | drawFrame (gcn::Graphics *graphics) override |
| Draws the window frame.
|
|
void | setContentSize (int width, int height) |
| Sets the size of this window.
|
|
void | setMinimumContentSize (int width, int height) |
| Sets the minimum size of the window content.
|
|
void | setLocationRelativeTo (gcn::Widget *widget) |
| Sets the location relative to the given widget.
|
|
void | setResizable (bool resize) |
| Sets whether or not the window can be resized.
|
|
void | redraw () |
|
void | widgetResized (const gcn::Event &event) override |
| Called whenever the widget changes size.
|
|
void | widgetHidden (const gcn::Event &event) override |
| Called whenever the widget is hidden.
|
|
void | setCloseButton (bool flag) |
| Sets whether or not the window has a close button.
|
|
bool | isResizable () const |
| Returns whether the window can be resized.
|
|
void | setMinWidth (int width) |
| Sets the minimum width of the window.
|
|
int | getMinWidth () const |
|
void | setMinHeight (int height) |
| Sets the minimum height of the window.
|
|
int | getMinHeight () const |
|
void | setMaxWidth (int width) |
| Sets the maximum width of the window.
|
|
int | getMaxWidth () const |
|
void | setMaxHeight (int height) |
| Sets the minimum height of the window.
|
|
int | getMaxHeight () const |
|
void | setShowTitle (bool flag) |
| Sets flag to show a title or not.
|
|
void | setStickyButton (bool flag) |
| Sets whether or not the window has a sticky button.
|
|
void | setSticky (bool sticky) |
| Sets whether the window is sticky.
|
|
bool | isSticky () const |
| Returns whether the window is sticky.
|
|
void | setVisible (bool visible, bool forceSticky) |
| Overloads window setVisible by Guichan to allow sticky window handling, or not, if you force the sticky state.
|
|
bool | isDefaultVisible () const |
| Returns whether the window is visible by default.
|
|
void | setDefaultVisible (bool save) |
| Sets whether the window is visible by default.
|
|
bool | willSaveVisible () const |
| Returns whether the window will save it's visibility.
|
|
void | setSaveVisible (bool save) |
| Sets whether the window will save it's visibility.
|
|
Window * | getParentWindow () const |
| Returns the parent window.
|
|
void | scheduleDelete () |
| Schedule this window for deletion.
|
|
void | mousePressed (gcn::MouseEvent &event) override |
| Starts window resizing when appropriate.
|
|
void | mouseDragged (gcn::MouseEvent &event) override |
| Implements window resizing and makes sure the window is not dragged/resized outside of the screen.
|
|
void | mouseMoved (gcn::MouseEvent &event) override |
| Implements custom cursor image changing context, based on mouse relative position.
|
|
void | mouseReleased (gcn::MouseEvent &event) override |
| When the mouse button has been let go, this ensures that the mouse custom cursor is restored back to it's standard image.
|
|
void | mouseExited (gcn::MouseEvent &event) override |
| When the mouse leaves the window this ensures that the custom cursor is restored back to it's standard image.
|
|
void | setWindowName (const std::string &name) |
| Sets the name of the window.
|
|
const std::string & | getWindowName () const |
| Returns the name of the window.
|
|
void | loadWindowState () |
| Reads the position (and the size for resizable windows) in the configuration based on the given string.
|
|
void | saveWindowState () const |
| Saves the window state so that when the window is reloaded, it'll maintain its previous state and location.
|
|
void | setDefaultSize (int defaultX, int defaultY, int defaultWidth, int defaultHeight) |
| Set the default win pos and size.
|
|
void | setDefaultSize () |
| Set the default win pos and size to the current ones.
|
|
void | setDefaultSize (int defaultWidth, int defaultHeight, WindowAlignment alignment, int offsetx=0, int offsetY=0) |
| Set the default win pos and size.
|
|
void | adjustPositionAfterResize (int oldScreenWidth, int oldScreenHeight) |
| Adjusts the window position after the application window has been resized.
|
|
Layout & | getLayout () |
| Gets the layout handler for this window.
|
|
void | clearLayout () |
| Clears the window's layout (useful for redesigning the window).
|
|
void | reflowLayout (int w=0, int h=0) |
| Computes the position of the widgets according to the current layout.
|
|
LayoutCell & | place (int x, int y, gcn::Widget *, int w=1, int h=1) |
| Adds a widget to the window and sets it at given cell.
|
|
ContainerPlacer | getPlacer (int x, int y) |
| Returns a proxy for adding widgets in an inner table of the layout.
|
|
void | center () |
| Positions the window in the center of it's parent.
|
|
virtual void | close () |
| Overrideable functionality for when the window is to close.
|
|
const Skin & | getSkin () const |
| Returns the Skin used by this window.
|
|
virtual | ~EventListener () |
|
void | listen (Event::Channel channel) |
|
void | ignore (Event::Channel channel) |
|
The chat window.
Definition at line 70 of file chatwindow.h.