![]() |
gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
#include <JackPortMonitorGui.H>
Public Member Functions | |
| ClientIOGui () | |
| ClientIOGui (string clientName_) | |
| virtual | ~ClientIOGui () |
| Destructor. More... | |
| void | renameClient (string clientName_) |
| void | setPorts (vector< string > &portNames) |
| void | setPorts (map< string, map< string, vector< string > > > &portNames) |
| void | reverseHBoxStacking () |
| string | getClientName (void) |
| string | getFullPortName (GtkWidget *wid) |
| void | clearAllWidgetConnections (void) |
| void | addWidgetConnections (GtkWidget *wid, GtkWidget *cWid) |
| GtkWidget * | getPortWidget (string portName) |
| string | getWidgetsPortName (GtkWidget *wid) |
| map< GtkWidget *, vector< GtkWidget * > > & | getInputWidgetConn () |
| void | setupDrag (DragNDrop &dnd) |
| void | setupDrop (DragNDrop &dnd) |
| GtkWidget * | getClientWidget () |
Public Member Functions inherited from HBox | |
| HBox () | |
Public Member Functions inherited from Box | |
| Box (void) | |
| constructor More... | |
| Box & | operator<< (BoxIS bis) |
| destructor destroys the widget to neatly cleanup. More... | |
| Box & | operator<< (Box &b) |
| Box & | operator<< (int val) |
| Box & | operator<< (Box *b) |
| Box & | operator<< (Container &b) |
| Box & | operator<< (Container *b) |
| Box & | operator<< (GtkWidget *b) |
| Box & | operator<< (Widget *w) |
| Box & | operator<< (Widget &w) |
| Box & | operator<< (LinkList< GtkWidget *> &ll) |
| Box & | operator>> (GtkWidget *b) |
| Box & | operator>> (Container *b) |
| Box & | operator>> (Container &b) |
| Box & | operator= (const Box b) |
Public Member Functions inherited from BoxIS | |
| BoxIS (void) | |
| BoxIS (bool expandIn, bool fillIn) | |
| BoxIS (bool expandIn, bool fillIn, bool startIn) | |
| void | reset (void) |
| void | setDefaultStart (bool startIn) |
| void | setDefaultExpand (bool expandIn) |
| void | setDefaultFill (bool fillIn) |
| BoxIS & | operator= (BoxIS &bis) |
| BoxIS & | operator= (const BoxIS bis) |
| void | dump (void) |
Public Member Functions inherited from Container | |
| void | setBorder (unsigned int size) |
| unsigned int | getBorder (void) |
| Container & | operator<< (Container &c) |
| Container & | operator<< (Container *c) |
| Container & | operator<< (Widget &w) |
| Container & | operator<< (Widget *w) |
| Container & | operator<< (LinkList< GtkWidget *> &ll) |
| Container & | operator>> (GtkWidget *w) |
| Container & | operator>> (Container *c) |
| Container & | operator>> (Container &c) |
| Container & | operator>> (LinkList< GtkWidget *> &ll) |
| void | setChildrensSensitivity (bool sens) |
| bool | areAnyChildrensSensitive (void) |
| unsigned int | size () |
Public Member Functions inherited from Widget | |
| Widget () | |
| Construcotr. More... | |
| Widget (GtkWidget *w) | |
| virtual | ~Widget () |
| Destructor. More... | |
| GtkWidget * | ref (void) |
| void | unref (void) |
| GtkWidget * | show (void) |
| GtkWidget * | hide (void) |
| bool | getVisible (void) |
| GtkWidget * | getWidget (void) |
| bool | getSensitive (void) |
| void | setSensitive (bool sens) |
| void | getSize (int &width, int &height) |
| virtual void | setSize (int width, int height) |
| void | getLocationSize (int &x, int &y, int &width, int &height) |
| void | queueDraw () |
| GdkWindow * | getWindow () |
| void | connect (const char *event, GCallback callback, gpointer data) |
| void | connectAfter (const char *event, GCallback callback, gpointer data) |
| void | connectExposeEventCallback (GCallback callback, void *data) |
| void | connectExposeEventCallback (GtkWidget *w, GCallback callback, void *data) |
| void | connectConfigureEventCallback (GCallback callback, void *data) |
| void | connectConfigureEventCallback (GtkWidget *w, GCallback callback, void *data) |
| Widget & | operator<< (DragNDrop &dnd) |
| Widget & | operator>> (DragNDrop &dnd) |
Private Member Functions | |
| void | init () |
| virtual void | dragDataGet (GtkWidget *w, GtkSelectionData *selectionData, guint info) |
Private Attributes | |
| Buttons | clientNameButton |
| Button representing all of the half duplex client ports. More... | |
| VBox | portVBox |
| A holder for the port buttons. More... | |
| Buttons | portButtons |
| The clients half duplex ports. either input or output. More... | |
| map< GtkWidget *, vector< GtkWidget * > > | inputWidgetConnections |
| Each of the port buttons map to connected port buttons. More... | |
Additional Inherited Members | |
Public Types inherited from Box | |
| enum | { EXPAND =1, FILL =2, START =4, RESET =8, END =16, NOFILL =32, NOEXPAND =64 } |
Public Attributes inherited from BoxIS | |
| bool | expand |
| Set to expand the box contents. More... | |
| bool | fill |
| Set to fill the box. More... | |
| bool | start |
| Set to pack the start. More... | |
Protected Member Functions inherited from Box | |
| virtual void | pack (GtkWidget *obj) |
Protected Member Functions inherited from Widget | |
| virtual bool | checkDropValidity (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData) |
| virtual bool | dragDataReceived (GtkWidget *w, GtkWidget *sourceWidget, int info, const unsigned char *selectionStoredData, int length) |
| virtual void | dragLeave (GtkWidget *w, GtkWidget *sourceWidget) |
| virtual bool | dragMotion (GtkWidget *w, GtkWidget *sourceWidget, int x, int y) |
| virtual int | chooseTheTargetToUse (GtkWidget *w, GtkWidget *sourceWidget, DragNDrop &dnd) |
| virtual void | dragDataDelete (GtkWidget *w) |
| virtual void | dragBegin (GtkWidget *w) |
| virtual void | dragEnd (GtkWidget *w) |
Protected Attributes inherited from Widget | |
| GtkWidget * | widget |
| The container based widget. More... | |
Each client has a button for all ports, segmented into input and output ports. This class is a half duplex representation of the client. The client name is packed horizontally next to the vertically stacked port box. Dragging a client button or port button will send either the client's name or the client and port name using ':' as the delimiter name when dropped.
Definition at line 33 of file JackPortMonitorGui.H.
| ClientIOGui::ClientIOGui | ( | ) |
Construct a half duplex port Gui representation.
| clientName | The name of the client this half duplex lane. |
Definition at line 25 of file JackPortMonitorGui.C.
| ClientIOGui::ClientIOGui | ( | string | clientName_ | ) |
Construct a half duplex port Gui representation.
| clientName_ | The name of the client this half duplex lane. |
Definition at line 29 of file JackPortMonitorGui.C.
|
inlinevirtual |
Destructor.
Definition at line 61 of file JackPortMonitorGui.H.
| void ClientIOGui::addWidgetConnections | ( | GtkWidget * | wid, |
| GtkWidget * | cWid | ||
| ) |
Add a widget to the connection map for a specific port button widget.
| wid | The port widget whos connected widgets are of interest. |
| cWid | The widget which is connected to the port wid. |
Definition at line 78 of file JackPortMonitorGui.C.
| void ClientIOGui::clearAllWidgetConnections | ( | void | ) |
Clear the list of know widget connections.
Definition at line 74 of file JackPortMonitorGui.C.
|
privatevirtual |
When the drag widget is dropped, this is executed on the widget from where it drag started.
| w | the object which is the source of the drag. |
| selectionData | the data to send. |
| info | the info that has been registered with the target in the GtkTargetList. |
Reimplemented from Widget.
Definition at line 124 of file JackPortMonitorGui.C.
|
inline |
Get the client name this class represents.
Definition at line 80 of file JackPortMonitorGui.H.
|
inline |
Return the GtkWidget of the client.
Definition at line 130 of file JackPortMonitorGui.H.
| string ClientIOGui::getFullPortName | ( | GtkWidget * | wid | ) |
Given a widget, return the full port name "client:port".
| wid | The port widget to find and create the full port name for. |
Definition at line 64 of file JackPortMonitorGui.C.
|
inline |
Get the input widget connections.
Definition at line 115 of file JackPortMonitorGui.H.
| GtkWidget * ClientIOGui::getPortWidget | ( | string | portName | ) |
Find the port button widget which has the same name as the portName.
| portName | The port name to search for. |
Definition at line 85 of file JackPortMonitorGui.C.
| string ClientIOGui::getWidgetsPortName | ( | GtkWidget * | wid | ) |
Get the port name from the widget.
| wid | The port widget whos connected widgets are of interest. |
Definition at line 108 of file JackPortMonitorGui.C.
|
private |
Initialiser loads the vBox and shows the hBox.
Definition at line 20 of file JackPortMonitorGui.C.
| void ClientIOGui::renameClient | ( | string | clientName_ | ) |
Definition at line 34 of file JackPortMonitorGui.C.
| void ClientIOGui::reverseHBoxStacking | ( | ) |
Definition at line 57 of file JackPortMonitorGui.C.
| void ClientIOGui::setPorts | ( | vector< string > & | portNames | ) |
Create the widgets for each of the ports.
| portName | A vector of port names. |
Definition at line 41 of file JackPortMonitorGui.C.
| void ClientIOGui::setPorts | ( | map< string, map< string, vector< string > > > & | portNames | ) |
Create the widgets for each of the ports.
| portNames | Ports which are mapped to their connected ports. |
Definition at line 49 of file JackPortMonitorGui.C.
| void ClientIOGui::setupDrag | ( | DragNDrop & | dnd | ) |
Setup the drag connections for widgets.
| dnd | The drag and drop class. |
Definition at line 95 of file JackPortMonitorGui.C.
| void ClientIOGui::setupDrop | ( | DragNDrop & | dnd | ) |
Setup the drop connections for widgets.
| dnd | The drag and drop class. |
Definition at line 102 of file JackPortMonitorGui.C.
|
private |
Button representing all of the half duplex client ports.
Definition at line 34 of file JackPortMonitorGui.H.
|
private |
Each of the port buttons map to connected port buttons.
Definition at line 37 of file JackPortMonitorGui.H.
|
private |
The clients half duplex ports. either input or output.
Definition at line 36 of file JackPortMonitorGui.H.
|
private |
A holder for the port buttons.
Definition at line 35 of file JackPortMonitorGui.H.
|
GTK+ IOStream
Beta
|