all repos — fluxbox @ 23d0b998883bdd25254a3accc49cd515908e6fbe

custom fork of the fluxbox windowmanager

fixed so we can extend reconfigure
fluxgen fluxgen
commit

23d0b998883bdd25254a3accc49cd515908e6fbe

parent

2ed0befbad3370727a1ea2c122ed1da42e69af32

1 files changed, 5 insertions(+), 3 deletions(-)

jump to
M src/FbTk/Menu.hhsrc/FbTk/Menu.hh

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Menu.hh,v 1.17 2003/07/03 12:23:28 fluxgen Exp $ +// $Id: Menu.hh,v 1.18 2003/07/10 11:55:49 fluxgen Exp $ #ifndef FBTK_MENU_HH #define FBTK_MENU_HH

@@ -112,7 +112,7 @@ void keyPressEvent(XKeyEvent &ke);

//@} /// get input focus void grabInputFocus(); - void reconfigure(); + virtual void reconfigure(); /// set label string void setLabel(const char *labelstr); /// move menu to x,y

@@ -139,6 +139,8 @@ int screenNumber() const { return m_screen_num; }

Window window() const { return menu.window.window(); } FbWindow &fbwindow() { return menu.window; } const FbWindow &fbwindow() const { return menu.window; } + FbWindow &titleWindow() { return menu.title; } + FbWindow &frameWindow() { return menu.frame; } const std::string &label() const { return menu.label; } int x() const { return menu.x; } int y() const { return menu.y; }

@@ -150,6 +152,7 @@ unsigned int titleHeight() const { return menu.title_h; }

bool hasSubmenu(unsigned int index) const; bool isItemSelected(unsigned int index) const; bool isItemEnabled(unsigned int index) const; + const MenuTheme &theme() const { return m_theme; } static unsigned char alpha() { return s_alpha; } static Menu *focused() { return s_focused; } /// @return menuitem at index

@@ -180,7 +183,6 @@ typedef std::vector<MenuItem *> Menuitems;

const MenuTheme &m_theme; Display *m_display; const int m_screen_num; - Window m_prev_focused_window; Menu *m_parent; ImageControl &m_image_ctrl; Menuitems menuitems;