<peepsalot>
but the action is bound to TabManager which only ever grabs from editor
<InPhase>
Where is Ctrl-C getting picked up?
<InPhase>
Is this built-in?
<peepsalot>
what do you mean "picked up"? the shortcut is set right there in that QAction definition
<InPhase>
peepsalot: Go to the console, select something, and hit ctrl-C. It works fine.
<InPhase>
So this has a separate pathway.
<InPhase>
But possibly that goes straight to the console action built-ins.
<peepsalot>
ok, from console, yeah I'm guessing that QPlainTextEdit's built in is taking over somehow, but maybe that just doesn't work on Mac (the crux of #4060)
<InPhase>
Ah, I see.
<peepsalot>
I actually find if surprising that Ctrl-C works in Console on any platform, given the way that menu action is defined
<peepsalot>
from ChrisCoxArt in #4060: "Pressing command-c, even after targeting and selecting text in the console, still copies what is selected in the editor." on Mac I can only assume
<InPhase>
Excellent. So we need the shortcut in the console to do the same logic to get the keyboard part reenabled.
<InPhase>
I think it might come from the createStandardContextMenu items.
<InPhase>
I think Copy and Select All are brought in from QPlaintTextEdit by default in the standard context menu.
<InPhase>
Then we insert Clear above it, and append Save As below it.
<InPhase>
So the real problem is that Qt on mac does not by default either add this copy element, or it does not give it the standard mac shortcut...
rvt has quit [Ping timeout: 268 seconds]
<peepsalot>
the context menu is there for mac apparently, because they say "looks like we have to use the context (right click) menu to copy text in the console."
<peepsalot>
no idea if the shortcut keys are displayed within that context menu though, no screenshot
rvt has joined #openscad
GNUmoon2 has quit [Remote host closed the connection]
<InPhase>
peepsalot: That's a whole lot of conditions it checks before enabling the shortcut in that action menu.
<InPhase>
That macro is used below where it slaps the shortcut key in.
<InPhase>
Things like style hints,.. I'm not sure where to begin looking for all that. But any one of those conditions would turn it off.
<peepsalot>
how does qwidgettextcontrol relate to QPlainTextWidget?
<InPhase>
I thought that was in the tree.
<InPhase>
I was trying to go fast. Might have taken a wrong turn. Let me check.
<InPhase>
Yeah, I got it right.
<InPhase>
QPlainTextWidget uses a private QPlaintTextEditControl which inherits from QWidgetTextControl which is where that comes from.
<InPhase>
And creating that context menu passes the call down to that.
<InPhase>
And then our bug seems to pop out of this 1990s era macro because someone couldn't be bothered to write a function. :)
<peepsalot>
ah ok. but doesn't that only affect the display of the shortcut text, and not the registration of shortcut keys
<InPhase>
No, that's the key itself.
<InPhase>
The text is present either way.
<InPhase>
Line 2331: a = menu->addAction(tr("&Copy") + ACCEL_KEY(QKeySequence::Copy), this, SLOT(copy()));
<InPhase>
Or how does this work.
* InPhase
sighs at Qt.
<peepsalot>
yeah the first parameter is just for the text QString
<InPhase>
But it parses that string for keyboard shortcuts I think.
<InPhase>
The &C for example.
<InPhase>
I'm just trying to find verification it parses the right side as well.
<InPhase>
Hmph. Well that looks like it doesn't set the shortcut at all.
<InPhase>
I drove through the QAction and QMenu code.
<InPhase>
But... I mean... it's set here. So I don't know what's happening.
<InPhase>
Nope. Past my prime functioning hour for tonight. I could not spot how it actually establishes the shortcut as existing. Although if it is written competently it will use the same conditions to label the default shortcut as there as it would to enable it. I just can't find where that happens.
<teepee>
calculate y based on that angle and Z - Y
<Friithian>
ok, so, I need an equation from someone because I tried that and my mind just was not able to get it to work
<teepee>
let me try :)
<Friithian>
thank you!
<J1A8474>
that is why i use libs .. all that headache only once to make the lib
<Friithian>
well this is the headache making the lib :D
<J1A8474>
z/x = (z-y)/?
<J1A8474>
so (z-y)/(z/x) should be your x2
<J1A8474>
or x/z *(z-y)
<Friithian>
well, I have no idea if that math is right and I am doing the modeling wrong or that math is wrong. for reference I am trying to get that cylinder in the picture to be the same width as the blue square it is on
qeed has quit [Read error: Connection reset by peer]
qeed has joined #openscad
<Friithian>
so… looking at the equation now. I literally have that written on my scrap paper, just I had the numerator and denominator switched.
<J1A84>
if you doing it on both ends it should still work as height/base or base/height is both a constant.. however i also mix up these very often - so one solution strategy is just try the switcheroo without thinking too much and see if the design fits Ü
* J1A84
sucks at math
<Friithian>
I'm getting a minor in math so uh :D
<Friithian>
oh cool that customizer puts the comments you make next to a variable next to it
<J1A84>
only if directly above (not behind or with space)
<Friithian>
which is perfect
<Friithian>
damnit TPC doesn't get melted by MEK
teepee has quit [Remote host closed the connection]
<Friithian>
does openscad support multi-material/export seperately
<J1A84>
no but you can use lazy union
<J1A84>
meaning you can export multiple objects at top level
<J1A84>
you use the snapshot version and activate lazy union feature in preferences
<Friithian>
oh that means I finally need to build it from source
<J1A84>
everything at top level will not get a union then
<J1A84>
also loops will be separated (could need a union in intersections )
<J1A84>
you can just make modules for each material and then call the module in a loop
<J1A84>
at toplevel
<J1A84>
keep in mind this is a experimental feature
<Friithian>
I thrive on the bleeding edge
<J1A84>
an
<Friithian>
rip my poor laptop with 4 logical cores
<J1A84>
dual core sounds like 15years old
<Friithian>
Intel i7-6600U
<Friithian>
I have a 5900x in my desktop
<J1A84>
hm 7 .. seems they have done that longer than i thought
<J1A84>
7years old
<InPhase>
Friithian: I have 8 physical cores in my laptop, which means with OpenSCAD I get... the same performance as with a single core. ;)
<Friithian>
honestly I should just get a proper keyboard and mouse for my steam deck and do everything on it lol
<Friithian>
InPhase: but when building you can use all the cores
<InPhase>
Yes, that was radically improved when I upgraded to this laptop.
<InPhase>
Build times dropped to 2.5 minutes, until peepsalot started messing around with the memory improvements (I think it was that change), and now it's a little over 3 minutes.
<Friithian>
this was a cheap laptop I got for on the go, it's a thinkpad x1 carbon gen 4
<Friithian>
when I get back ohme I'll build with my 5900x, see how long that takes with 24 logical cores
<J1A84>
inPhase you don't have 8 OpenSCAD threads running.. one for each quadrant cube of the coordinate system
<InPhase>
J1A84: I do sometimes run two renders in parallel in different instances. :) But not often.
<Friithian>
does openscad have gpu accel for rendering?
<InPhase>
Not for any of the important bits.
<Friithian>
heck
ur5us has quit [Ping timeout: 255 seconds]
fling_ has joined #openscad
fling has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
fling_ is now known as fling
teepee has quit [Remote host closed the connection]
fling has quit [Remote host closed the connection]
fling has joined #openscad
teepee has joined #openscad
<peepsalot>
regarding Ctrl-C and Edit menu working between Editor and Console...
<peepsalot>
i'm thinking to connect the action trigger signal to a new function in MainWindow, which would check if focus is in either Console or Editor, and call the appropriate copy() method
<peepsalot>
does that sound like a proper way to deal with it?
<peepsalot>
i am now wondering if for example, sections of text within customizer parameter would also be copyable
<peepsalot>
it seems wrong to have to manually check focus, but i don't know how else to guarantee the correct thing is copied, while using a single/shared menu Action between widgets
<peepsalot>
teepee: did you see any of this discussion from last night?
<InPhase>
peepsalot: Is focus even still there after accessing the menu?
* peepsalot
shrugs
<InPhase>
peepsalot: You might need a handler for a signal whenever text is selected in either the editor or console, and then use that to toggle which was last used.
<InPhase>
There IS a setting somewhere for whether or not text is selected, I remember seeing it somewhere deep in the Qt code dive I was going through last night. I did not check to see if there is a signal for it.
<InPhase>
But that would need to cover both mouse and keyboard selection to be right.
<InPhase>
peepsalot: I think part two would be to not use that built-in context menu, and instead manually insert those entries so that both the keyboard shortcut and the edit menu are working right cross-platform.
<InPhase>
Ah, right there. selectionChanged signal.
<InPhase>
That'd be the one.
<InPhase>
I'm concerned those edits might let a selection stay active in both boxes at once. So it's really the last one selected that indicates user intent I think.
<peepsalot>
there's also the possibility that all my hunches were wrong and none of this will fix the issue on mac XD
<InPhase>
Yep!
<InPhase>
But I think you're on the right track.
<InPhase>
And I guess that issue has a captive audience of beta testers.
<peepsalot>
InPhase: why selectionChanged over copyAvaiable signal? i don't really see how they differ
<InPhase>
peepsalot: Oh. I misunderstood what that signal meant. I thought it was the status check that there is a selection available for copying. But I reread, and see it is precisely the thing needed, a signal that passes a true when you want to update the marker.
<peepsalot>
not sure if QScintilla has any comparable signal builtin though
<teepee>
oh, and even some sort of form, that's even better than just a template for people to edit
<teepee>
hmm, I'm not sure how to make the community page more obvious, but maybe the homepage needs fixing
<teepee>
I don't have a good idea how to do that with the current layout unfortunately, maybe getting rid of that side bar is a start
<J1A84>
so we can make a template " i just have a problem with my design " with default text .. "i have already asked on maililnist and chat but nobody could help me there" "i am willing to pay for this extra service"
<J1A84>
.. maybe we just rename "chat" in "support"
ccox has joined #openscad
<teepee>
J1A84: you mean on the community page? yeah, lets try that :)
Furor has joined #openscad
<J1A84>
or better instead of renaming we add a big support button that links into webchat
<teepee>
besides the download button on the homepage maybe?
Colere has quit [Ping timeout: 268 seconds]
<J1A84>
that would be very prominent
<J1A84>
i know a lot of people are reluctant to register with e-mail as they need for the mailing list - so chat is the lowest entry (i assume)
califax has quit [Read error: Connection reset by peer]
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
califax has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
<teepee>
argh, css
<J1A84>
maybe "get Support" else people think this is a link to support oSCAD
<J1A84>
or »Live Support«
<teepee>
Get Help?
<J1A84>
yeah short and precise
<teepee>
unfortunately I'm not getting it aligned like I want
<teepee>
so that may need to wait for a bit more time