17 #ifndef JACKPORTMANAGERGUI_H_ 18 #define JACKPORTMANAGERGUI_H_ 48 virtual void dragDataGet(GtkWidget *w, GtkSelectionData *selectionData, guint info);
68 void setPorts(vector<string> &portNames);
73 void setPorts(map<
string, map<
string, vector<string> > > &portNames);
155 void reSyncPortGui(
void);
165 virtual bool dragDataReceived(GtkWidget *w, GtkWidget *sourceWidget,
int info,
const unsigned char *selectionStoredData,
int length);
176 void drawConnections(
const map<GtkWidget*, vector<GtkWidget*> > &connections);
205 virtual void jackPortConnected(jack_port_id_t a, jack_port_id_t b,
int connect);
211 virtual void jackPortRegistered(jack_port_id_t port,
int reg);
218 virtual void jackPortRenamed(jack_port_id_t port,
const char *oldName,
const char *newName);
247 if (static_cast<JackPortMonitorGui*>(data)->autoConnectNetClients=
Buttons::getActive(widget))
251 enum {CONNECT_PORTS, DISCONNECT_PORTS};
255 virtual void reSyncPorts(
void);
259 virtual void reSyncConnections(
void);
263 void reDrawConnections();
298 JackPortMonitorGui(
string clientName_,
bool monitorPorts,
bool autoConnectNetClientsIn);
320 JackPortMonitorGui(
string clientName_,
string serverName,
bool monitorPorts,
bool autoConnectNetClientsIn);
324 #endif // JACKPORTMANAGERGUI_H_
GtkWidget * getPortWidget(string portName)
ClientIOGui outputPortGui
The output port gui.
TYPE current(void)
return a pointer to the current lug
void setupDrop(DragNDrop &dnd)
void renameClient(string clientName_)
void setPorts(vector< string > &portNames)
VBox outputPortBox
A box with all of the output half duplex GUIs stacked.
Buttons clientNameButton
Button representing all of the half duplex client ports.
virtual ~ClientIOGui()
Destructor.
void clearAllWidgetConnections(void)
static void autoConnectNetClientsPortsStatic(GtkWidget *widget, gpointer data)
static bool exposeEventStatic(GtkWidget *widget, GdkEvent *event, gpointer data)
void addWidgetConnections(GtkWidget *wid, GtkWidget *cWid)
string getClientName(void)
void reverseHBoxStacking()
VBox inputPortBox
A box with all of the input half duplex GUIs stacked.
GtkWidget * getClientWidget()
ClientIOGui inputPortGui
The input port gui.
void setupDrag(DragNDrop &dnd)
Buttons portButtons
The clients half duplex ports. either input or output.
virtual ~JackBaseWithPortNamesGui()
Destructor.
virtual void dragDataGet(GtkWidget *w, GtkSelectionData *selectionData, guint info)
map< GtkWidget *, vector< GtkWidget * > > inputWidgetConnections
Each of the port buttons map to connected port buttons.
string getWidgetsPortName(GtkWidget *wid)
static void connect1To1Static(GtkWidget *widget, gpointer data)
VBox portVBox
A holder for the port buttons.
string getFullPortName(GtkWidget *wid)
static gboolean reDrawConnectionsStatic(GtkWidget *widget, GdkEventConfigure *event, gpointer data)
virtual ~JackPortMonitorGui()
Destructor.
ConnectionSurface connectionSurface
Draws client port connections.
map< GtkWidget *, vector< GtkWidget * > > & getInputWidgetConn()