#robotics Logs
Dec 07 2018
#robotics Calendar
12:02 AM rue_mohr: this is what happens when I use other peoples code...
12:06 AM rue_mohr: and ^^^ this is the amount of help I get from the other people
12:06 AM rue_mohr: I'm the only one in the world who likes coding
12:24 AM rue_mohr: which is interesting, cause it means that if, per some chance, another letter was added to a keyboard, or another button was put on a mouse, or something new was added as an input device that did not emulate a keyboard or mouse, motif could not handle it
12:25 AM rue_mohr: why does everything seem so damn short sited to me latley
12:25 AM rue_mohr: sighted
12:25 AM rue_mohr: whatever
12:29 AM rue_mohr: someoen to talk to would be nice
12:29 AM rue_mohr: nobody ever understands what your talking about dude
12:29 AM rue_mohr: you know, I'd almost settle for the normal dumb druller I get
12:30 AM rue_mohr: you need to learn to compromise more
12:30 AM rue_mohr: so, you gonna dig out YOUR eye with a spoon?
12:30 AM rue_mohr: mmm maybe later
12:31 AM rue_mohr: we need a new way of solving this
12:31 AM rue_mohr: callbacks aren't cutting it, not by normal mechanisms anyhow
12:31 AM rue_mohr: can we write our own gui now?
12:31 AM rue_mohr: this isn't supposed to be a life endevor!
12:31 AM rue_mohr: hmm
12:32 AM rue_mohr: I only wanted a quick hack, its been a month and a half!
12:32 AM rue_mohr: you realize the world is shrinking right?
12:32 AM rue_mohr: yea, i noticed
12:33 AM rue_mohr: so,, do we start the gui now?
12:33 AM rue_mohr: no! no!!!
12:33 AM rue_mohr: maybe later?
12:33 AM rue_mohr: yes, when we have all the time in the universe
12:33 AM rue_mohr: but what if we could get people to help
12:34 AM rue_mohr: can you get anyone to do anything???
12:34 AM rue_mohr: well, I'v not been successfull yet
12:34 AM rue_mohr: exactly, so I'm betting on NO
12:34 AM rue_mohr: oh, cmon, 5000 faulures doesn't mean defeat
12:35 AM rue_mohr: huh
12:35 AM rue_mohr: yea I just thought that too
12:35 AM rue_mohr: step, back, move over, try again...
12:35 AM rue_mohr: how?
12:35 AM rue_mohr: not sure
12:35 AM rue_mohr: then were bound to die on the windowsil
12:35 AM rue_mohr: I need to think
12:35 AM rue_mohr: why dont we just hack it
12:36 AM rue_mohr: I dont want to, but I dont think I can find a way
12:36 AM rue_mohr: its amazing they didn't make a provision for custom events
12:36 AM rue_mohr: it doesn't make sense tho, most of their events ARE custom
12:37 AM rue_mohr: I think were just calling the wrong thing
12:41 AM rue_mohr: will you let me make a ship now?
12:42 AM rue_mohr: cant go off in a million directions at once
12:42 AM rue_mohr: but
12:43 AM rue_mohr: XtAddCallback
12:43 AM rue_mohr: key words Xt
12:44 AM rue_mohr: so, its not part of motif
12:44 AM rue_mohr: but the widget isn't registered with a usable event for the callback
12:45 AM rue_mohr: what do I do
12:45 AM rue_mohr: what is the difference between an event handler and a callback
12:46 AM rue_mohr: why dont I have the event handler call the callback
12:46 AM rue_mohr: I still cant register it properly
12:46 AM rue_mohr: you would need to add it to the actions list
12:47 AM rue_mohr: yes, but for the instance
12:47 AM rue_mohr: can we get to instance vars?
12:47 AM rue_mohr: w->
12:47 AM rue_mohr: w->core.
12:49 AM rue_mohr: its not there
12:49 AM rue_mohr: its part of the class
12:49 AM rue_mohr: the actions cant be part of the class
12:50 AM rue_mohr: event table?
12:50 AM rue_mohr: thats too late tho
12:50 AM rue_mohr: so there are translations, events and actions
12:50 AM rue_mohr: somthing like that
12:51 AM rue_mohr: per widget, I see access to translations and event tables
12:52 AM rue_mohr: so, the problem is, I cant add a ... no this is all wrong
12:52 AM rue_mohr: who makes the callbacks
12:52 AM rue_mohr: their part of the struct for the widget class
12:53 AM rue_mohr: except the text class that dynamically defined it
12:55 AM rue_mohr: motif is all so broken
12:55 AM rue_mohr: they have so many things jabbed in that shouldn't exist
12:56 AM rue_mohr: a guy used a manager widget for an ok box, so added button pointers to the manager widget, WTF
12:57 AM rue_mohr: and you cant add a new event type
12:57 AM rue_mohr: and its 11, you ahve to stop playing now, your out of time
12:57 AM rue_mohr: is it all just a big pile of junk/
12:58 AM rue_mohr: ????
12:58 AM rue_mohr: maybe
12:58 AM rue_mohr: steppign WAY back
12:59 AM rue_mohr: so I have to track all my input field widgets individually and loop thru each one to update the text values from the struct
12:59 AM rue_mohr: and I need to know which field is ealted to which part of the struct
12:59 AM rue_mohr: which is why we wrote a hash table :)
12:59 AM rue_mohr: *sigh*
01:00 AM rue_mohr: can my user code tack attributes onto widgets?
01:00 AM rue_mohr: no, they have to be registered attributes
01:00 AM rue_mohr: damnit
01:01 AM rue_mohr: that or make an inherited class for each widget type you want to use with what you need added to it
01:01 AM rue_mohr: damnit
01:02 AM rue_mohr: so I need a table of widget pointers and struct offsets
01:02 AM rue_mohr: and sizes
01:02 AM rue_mohr: only if I'm trying to be safe
01:02 AM rue_mohr: we could do them all as strings
01:03 AM rue_mohr: well damnit
01:03 AM rue_mohr: without the callback, there is no way to register an identity
01:04 AM rue_mohr: what if we use expose, and skip fields with focus?
01:06 AM rue_mohr: becuase you cant add a param to it
01:07 AM rue_mohr: its worse than that jim
01:07 AM rue_mohr: you need to customize the code for setting the value of each widget based on what type of widget it is
01:08 AM rue_mohr: why dont I just use the widget ID to assign the id property
01:08 AM rue_mohr: then call your callback?
01:08 AM rue_mohr: messy isnt' it?
01:09 AM rue_mohr: ok, so, widget id, field id
01:10 AM rue_mohr: I loop thru all the child widgets of the manager and call the update with the looked up field id
01:10 AM rue_mohr: if I also pass the widget I can modify it
01:10 AM rue_mohr: and bingo, instant handler
01:10 AM rue_mohr: so we just have to write a bunch of damn code to handle that databse
01:11 AM rue_mohr: yea
01:11 AM rue_mohr: then we can call populate almost just like you have it
01:12 AM rue_mohr: and we need to do this on a function call
01:12 AM rue_mohr: we have the handle to the manager widget tho
01:12 AM rue_mohr: ok
01:12 AM rue_mohr: arg
01:12 AM rue_mohr: just *ARG*
09:31 PM durrf is now known as }{^_^}{
09:33 PM }{^_^}{ is now known as opabuse
09:33 PM opabuse is now known as raabhimself
09:35 PM raabhimself is now known as l|1Iil|Il
09:36 PM l|1Iil|Il is now known as durrf
09:37 PM durrf is now known as JaymesBeakerbott
10:06 PM Tom_itx is now known as Tom_L
10:22 PM patr0clus is now known as s3nd1v0g1us
11:14 PM patr0clus is now known as s3nd1v0g1us