Model Railroad System
2.2.2
|
A widget that is heavily extended from the BWidget MainFrame windget. More...
Public Member Functions | |
buttons_add (...) | |
Method to add a button to the button menu. More... | |
buttons_delete (index) | |
Method to delete a button from the button menu. More... | |
buttons_insert (index,...) | |
Method to insert a button to the button menu. More... | |
buttons_itemconfigure (index,...) | |
Method to configure a button in the button menu. More... | |
buttons_hide () | |
Method to hide the button menu. More... | |
buttons_show () | |
Method to show the button menu. More... | |
slideout_add (name) | |
Method to add a new slideout frame to the main window. More... | |
slideout_show (name) | |
Method to show (display) a slideout frame. More... | |
slideout_hide (name) | |
Method to hide a slideout frame. More... | |
slideout_getframe (name) | |
Method to get the frame of a slideout frame. More... | |
slideout_isshownp (name) | |
Method to test to see if the named slideout is being shown. More... | |
slideout_list () | |
Method to return a list of defined slideout frames. More... | |
slideout_reqwidth (name) | |
Method to return the requested width of the named slideout frame. More... | |
toolbar_add (name) | |
Method to add a toolbar to the main frame. More... | |
toolbar_show (name) | |
Method to show a toolbar. More... | |
toolbar_hide (name) | |
Method to hide a toolbar. More... | |
toolbar_setbuttonstate (name, state) | |
Method to set the state of the buttons in a toolbar. More... | |
toolbar_addbutton (name, bname,...) | |
Method to add a button to a toolbar. More... | |
toolbar_buttonconfigure (name, bname,...) | |
Method to configure a button on a toolbar. More... | |
toolbar_buttoncget (name, bname, option) | |
Method to get a configuration option of a button on a toolbar. More... | |
menu_activate (menuid, index) | |
Method to activate a menu on the main frame. More... | |
menu_add (menuid, entrytype,...) | |
Method to add a menu entry to a menu on the main frame. More... | |
menu_delete (menuid, index,...) | |
Method to delete an entry from a menu. More... | |
menu_entrycget (menuid, index, option) | |
Method to get an option value of a menu entry. More... | |
menu_entryconfigure (menuid, index,...) | |
Method to configure options of a menu entry. More... | |
menu_sethelpvar (menuid) | |
Method to set the bind the status line to the help variable of the menu. More... | |
menu_index (menuid, index) | |
Method to get the index of a menu entry. More... | |
menu_insert (menuid, index, entrytype,...) | |
Method to insert a menu entry to a menu on the main frame. More... | |
menu_invoke (menuid, index) | |
Method to invoke a menu entry. More... | |
menu_type (menuid, index) | |
Method to return the type of a menu entry. More... | |
showit (extraX=0) | |
Method to show the main window. More... | |
setstatus (statusmessage) | |
Method to set the status message. More... | |
setprogress (progressvalue) | |
Method to set the progress bar value. More... | |
mainwindow (name,...) | |
Constructor build a full featured main window. More... | |
Private Attributes | |
scrollwindow | |
ScrollWindow component. More... | |
wipmessage | |
Work-In-Progress message component. More... | |
buttons | |
Right button box. More... | |
panewindow | |
PaneWindow holding the main area and the right widgets (command buttons and the slideouts). More... | |
slideouts | |
Slideout map. More... | |
toolbars | |
Toolbar map. More... | |
numtoolbars | |
The number of toolbars. More... | |
progress | |
The value of the progreee bar. More... | |
status | |
Status value. More... | |
A widget that is heavily extended from the BWidget MainFrame windget.
This widget starts with a MainFrame, and adds a paned window with a scrolled window and a button menu, and zero or more slide out frames. also management methods for toolbars and for menus.
path | The widget path. |
... | Options:
|
MainWindow 1.0
mainwindow::mainwindow | ( | name | , |
... | |||
) |
Constructor build a full featured main window.
... | Option value list. |
mainwindow::buttons_add | ( | ... | ) |
Method to add a button to the button menu.
See the ButtonBox add method.
... | Arguments passed to the ButtonBox add method. |
mainwindow::buttons_delete | ( | index | ) |
Method to delete a button from the button menu.
See the ButtonBox delete method.
index | Passed to the ButtonBox delete method. |
mainwindow::buttons_hide | ( | ) |
Method to hide the button menu.
mainwindow::buttons_insert | ( | index | , |
... | |||
) |
Method to insert a button to the button menu.
See the ButtonBox insert method.
... | Arguments passed to the ButtonBox insert method. |
mainwindow::buttons_itemconfigure | ( | index | , |
... | |||
) |
Method to configure a button in the button menu.
See the ButtonBox itemconfigure method.
index | Argument passed to the ButtonBox itemconfigure method. |
... | Arguments passed to the ButtonBox itemconfigure method. |
mainwindow::buttons_show | ( | ) |
Method to show the button menu.
mainwindow::menu_activate | ( | menuid | , |
index | |||
) |
Method to activate a menu on the main frame.
menuid | Menu id. |
index | Menu item index. |
mainwindow::menu_add | ( | menuid | , |
entrytype | , | ||
... | |||
) |
Method to add a menu entry to a menu on the main frame.
menuid | Menu id. |
entrytype | The type of entry. |
... | The arguments to pass to the entry creation command. |
mainwindow::menu_delete | ( | menuid | , |
index | , | ||
... | |||
) |
Method to delete an entry from a menu.
menuid | Menu id. |
index | Menu item index. |
... | The arguments to pass to the menu delete command. |
mainwindow::menu_entrycget | ( | menuid | , |
index | , | ||
option | |||
) |
Method to get an option value of a menu entry.
menuid | Menu id. |
index | Menu item index. |
option | The option to fetch. |
mainwindow::menu_entryconfigure | ( | menuid | , |
index | , | ||
... | |||
) |
Method to configure options of a menu entry.
menuid | Menu id. |
index | Menu item index. |
... | The arguments to pass on to entryconfigure. |
mainwindow::menu_index | ( | menuid | , |
index | |||
) |
Method to get the index of a menu entry.
menuid | Menu id. |
index | The index of the menu entry. |
mainwindow::menu_insert | ( | menuid | , |
index | , | ||
entrytype | , | ||
... | |||
) |
Method to insert a menu entry to a menu on the main frame.
menuid | Menu id. |
index | The index to insert before. |
entrytype | The type of entry. |
... | The arguments to pass to the entry creation command. |
mainwindow::menu_invoke | ( | menuid | , |
index | |||
) |
Method to invoke a menu entry.
menuid | Menu id. |
index | The index to invoke. |
mainwindow::menu_sethelpvar | ( | menuid | ) |
Method to set the bind the status line to the help variable of the menu.
menuid | Menu id. |
mainwindow::menu_type | ( | menuid | , |
index | |||
) |
Method to return the type of a menu entry.
menuid | Menu id. |
index | The index to get the type of. |
mainwindow::setprogress | ( | progressvalue | ) |
Method to set the progress bar value.
progressvalue | The amount of the progress. |
mainwindow::setstatus | ( | statusmessage | ) |
Method to set the status message.
statusmessage | The status message to display. |
mainwindow::showit | ( | extraX | = 0 | ) |
Method to show the main window.
extraX | Extra width to add when computing the position to map the window at. Defaults to 0. |
mainwindow::slideout_add | ( | name | ) |
Method to add a new slideout frame to the main window.
A slide out frame is a frame that can be packed and unpacked as needed and is shown in the right pane of the pane window.
name | The name of the slideout frame. |
mainwindow::slideout_getframe | ( | name | ) |
Method to get the frame of a slideout frame.
name | The name of the slideout. |
mainwindow::slideout_hide | ( | name | ) |
Method to hide a slideout frame.
name | The name of the slideout. |
mainwindow::slideout_isshownp | ( | name | ) |
Method to test to see if the named slideout is being shown.
name | The name of the slideout. |
mainwindow::slideout_list | ( | ) |
Method to return a list of defined slideout frames.
mainwindow::slideout_reqwidth | ( | name | ) |
Method to return the requested width of the named slideout frame.
name | The name of the slideout. |
mainwindow::slideout_show | ( | name | ) |
Method to show (display) a slideout frame.
name | The name of the slideout. |
mainwindow::toolbar_add | ( | name | ) |
Method to add a toolbar to the main frame.
name | The name of the new toolbar. |
mainwindow::toolbar_addbutton | ( | name | , |
bname | , | ||
... | |||
) |
Method to add a button to a toolbar.
name | The name of the toolbar. |
bname | The name of the button. |
... | Button configuration options (passed to Button). |
mainwindow::toolbar_buttoncget | ( | name | , |
bname | , | ||
option | |||
) |
Method to get a configuration option of a button on a toolbar.
name | The name of the toolbar. |
bname | The name of the button. |
option | Button configuration option (passed to cget). |
mainwindow::toolbar_buttonconfigure | ( | name | , |
bname | , | ||
... | |||
) |
Method to configure a button on a toolbar.
name | The name of the toolbar. |
bname | The name of the button. |
... | Button configuration options (passed to configure). |
mainwindow::toolbar_hide | ( | name | ) |
Method to hide a toolbar.
name | The name of the toolbar. |
mainwindow::toolbar_setbuttonstate | ( | name | , |
state | |||
) |
Method to set the state of the buttons in a toolbar.
name | The name of the toolbar. |
mainwindow::toolbar_show | ( | name | ) |
Method to show a toolbar.
name | The name of the toolbar. |
|
private |
Right button box.
|
private |
The number of toolbars.
|
private |
PaneWindow holding the main area and the right widgets (command buttons and the slideouts).
|
private |
The value of the progreee bar.
|
private |
ScrollWindow component.
|
private |
Slideout map.
|
private |
Status value.
|
private |
Toolbar map.
|
private |
Work-In-Progress message component.