Exemplo n.º 1
0
GtkWidget* Dialog::addFloatEntry(GtkWidget* vbox, const char* name, const FloatImportCallback& importViewer, const FloatExportCallback& exportViewer)
{
  DialogEntryRow row(DialogEntryRow_new(name));
  AddFloatEntryData(*row.m_entry, importViewer, exportViewer);
  DialogVBox_packRow(GTK_VBOX(vbox), row.m_row);
  return row.m_row;
}
Exemplo n.º 2
0
// greebo: add an entry box connected to the given registryKey
GtkWidget* Dialog::addEntry (GtkWidget* vbox, const std::string& name, const std::string& registryKey)
{
	// Create a new row containing an input field
	DialogEntryRow row(DialogEntryRow_new(name));

	// Connect the registry key to the newly created input field
	_registryConnector.connectGtkObject(GTK_OBJECT(row.m_entry), registryKey);

	DialogVBox_packRow(GTK_VBOX(vbox), row.m_row);
	return row.m_row;
}