Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Andreas Schnellbacher

Pages: [1] 2 3 ... 46
1
Sorry Remy, that won't help anything in our case, as Lars has already written.

The important info is which app has opened which file.

IMO, that some sort of notification might exist (without an expensive daemon), shows the work area feature of a WPS folder. Unfortunately it works not with all apps, but e.g. with IBM's E.EXE or Aaron's AE.EXE. I don't have an idea why. Of course it also can't work for non-WPS actions, as e.g. when using the file dialog.

And even if we would find out how that works, we're still missing a list of (multiple) last opened files per app: If the work area folder feature is related, it would just give the current ones per folder, not multiple ones per app.

2
As you can see, changes to files are logged and can be queried. But you will have to specify a set of paths to look for. I don't know if directories are supported recursively.
Yes, interesting. But the cited notify actions seem to handle only changes of files or dirs in a folder. I don't see anything that can be used to track opened files. Am I wrong?

3
Sounds like a very elegant way. But does this also work when you f.i. open a file from cmd line in an editor which writes this file afterwards. And do you get notifications when you f.i. open a pdf by double clicking in the email client which fires up qpdfview and when do 'Save as' in qpdfview?
... plus files opened via file dialog.

4
Applications / Re: Most Recently Opened Documents - Discussion
« on: May 03, 2021, 09:00:59 pm »
"most recent files" is a global function.
Do apps use that WPS function? (I assume that's also the one been used for reopening file objects on opening work area folders, which doesn't work for all apps.)

5
Applications / Re: Most Recently Opened Documents - Discussion
« on: May 03, 2021, 08:16:35 pm »
DosFileClose with compare of 'known' extensions and 'last write' compare
Interesting, but not all opened files are loaded into an app. Apps usually open many other files that are closed - either by the app or by the system on closing the app. And files can be opened and closed with the libc functions.

I suppose, without implementing this into an app, there won't be a chance.

6
Applications / Re: Most Recently Opened Documents - Discussion
« on: May 03, 2021, 07:55:26 pm »
[Most Recently Opened Documents]

Dariusz, the problem is not the WPS object, but the functionality.

in Windows, all apps write to the same huge registry. There exists the 'Recent File List' key that is used by many applications. I'm happy that in OS/2, all applications usually use their own ini file. But there's also no standardized way to save the recent files. Some even use text ini files. (Additionally, some apps have multiple file lists for different purposes). But to allow for such a system function, all applications must implement history or recent file lists first and the system has to know where these apps store it and how.

Even if you consider to include only apps with that feature, you have to know where the apps store this and how. The ini files could be found still easily, but the relevant ini apps and keys are app-dependent. So, no chance without a huge list with that information.

Start first with having such a feature implemented for the apps you regulary use.

7
Could you post the  6.03b version of the ETK here please?
Uploaded to Hobbes.

I forgot to mention that this one is from 1996-06-07.

8
I don't think that many have ever used OCL. Finding someone with experience wouldn't be easy.

9
I had problems with two of the four example's .exes, when another EPM was open. I've just tried it again and all four start now.
That was wrong: The .exe files of the 6.00c samples start. The .exe files from the 6.03b samples 2 and 4 start only if EPM 6.03b is not running. That ETK version comes from DevCon and a friendly guy sent it to me.

10
Utilities / Re: QT5 Runtime
« on: April 23, 2021, 09:30:58 pm »
I've jsut tried to install the new Tea version and it has worked. start tea opens the Qt 5 program.

  • I've first updated all installed packages with ANPM (BTW: ANPM has the advantage that it has a priority list that makes it know about when the system has to be rebooted, in this case that wasn't required.)
  • Then I've installed Qt5, because Ivan told that it needs it, following Neil's hint (yum install qt5)
  • At least I've installed tea with yum install tea.

That's how I've just did it. An easier method might exist. I've no experimental packages installed.

11
Not sure if we are talking about the same thing.
Yes, we do. All ETK functions can be accessed from both C and E. As long as the NewEditWndClass is involved, the ETK is used. Prepending a command with the postme command (it's not a switch) resolves in the end into one or several posted (as the opposite to sent) ETK or other messages.

Using postme on file loading is most of the time necessary, because file loading takes a while and a command should be executed after a file has been loaded. (BTW: I remember that I had to use 3 cascaded postmes, e.g. for making the highlight circle stay. Of course, I try to minimize them.)

12
Utilities / Re: QT5 Runtime
« on: April 22, 2021, 11:07:09 pm »
Hasn't the contained chkdll32 worked for you? Here's what I get and you can see that I haven't tried it:
Code: [Select]
epm: C:\ > G:\DEV\BIN\CHKDLL32.EXE "I:\Download\connect\0_mozilla\qtwebtest5_4\simplebrowser.exe"
Loading DLL 'libcx0' --> G:\USR\LIB\LIBCX0.DLL.
Loading DLL 'libcn0' --> G:\USR\LIB\LIBCN0.DLL.
Loading DLL 'stdcpp6' --> G:\USR\LIB\STDCPP6.DLL.
Loading DLL 'Qt5Core' --> NOT loaded!
Unable to load DLL 'Qt5Core'.  DosLoadModule returned: 2
OS/2 reports 'QT5CORE' contributed to the failure.
Loading DLL 'Qt5Wdgt' --> NOT loaded!
Unable to load DLL 'Qt5Wdgt'.  DosLoadModule returned: 2
OS/2 reports 'QT5WDGT' contributed to the failure.
Loading DLL 'Qt5WebW' --> NOT loaded!
Unable to load DLL 'Qt5WebW'.  DosLoadModule returned: 2
OS/2 reports 'QT5WEBW' contributed to the failure.
Loading DLL 'Qt5Gui' --> NOT loaded!
Unable to load DLL 'Qt5Gui'.  DosLoadModule returned: 2
OS/2 reports 'QT5GUI' contributed to the failure.
Loading DLL 'Qt5Net' --> NOT loaded!
Unable to load DLL 'Qt5Net'.  DosLoadModule returned: 2
OS/2 reports 'QT5NET' contributed to the failure.
Loading DLL 'Qt5WebC' --> NOT loaded!
Unable to load DLL 'Qt5WebC'.  DosLoadModule returned: 2
OS/2 reports 'QT5WEBC' contributed to the failure.
Loading DLL 'gcc1' --> G:\USR\LIB\GCC1.DLL.

epm: C:\ >

So the list for simplebrowser.exe might be:
Code: [Select]
libcx0 libcn0 stdcpp6 Qt5Core Qt5Wdgt Qt5WebW Qt5Gui Qt5Net Qt5WebC

plus access to the experimental netlabs.org repository.

Anything more to add?

13
What I vaguely remember is that if you want to invoke a editor built-in command, you need to use the "post" window message
Yes, that's true. almost all ETK messages are posted. From the EPM code (NEPMD macros), these are the few ones that are sent:
Code: [Select]
Send_Config_Data
Set dialog title (ProofDlg)
Set current word being proofed (ProofDlg)
Disable buttons (ProofDlg)
Set default button (ProofDlg)
Set dialog prompt (ProofDlg)
Fill listbox (ProofDlg)
Set entry field (ProofDlg)
Disable everything (ProofDlg)
EPM_EDIT_LOGAPPEND
EPM_FRAME_STATUSLINE
EII_EDIT_REFRESHSTATUSLINE
EPM_FRAME_STATUSLINE
EPM_FRAME_MESSAGELINE
EPM_EDIT_LOGERROR
(SetMenuAttribute)
MM_SetItemText
MM_QueryItem
MM_SETDEFAULTITEMID
EPM_EDIT_KW_QUERYPARSE
EFRAMEM_ToggleControl
EPM_EDIT_CONTROLTOGGLE
EPM_Edit_Query_Help_Instance
HM_SET_HELP_LIBRARY_NAME
(RenderUndoInfo)

14
I've never tried to compile the examples myself. I had problems with two of the four example's .exes, when another EPM was open. I've just tried it again and all four start now.

We discussed to create our own GUI app at NEPMD. I thought that this approach was too complex, but at that time I had not even a compiler. Looking back, that seems to be not completely wrong. But alone the ETK functions have so many bugs, that I would start there first if I had the ETK source. For most of them, I've added workarounds and have now the skills to fix at least just a few of them, if the sources would have been released. The GUI would be another story, but must flaws are in the ETK. It would be much better to start with a supported and well-spread toolkit, e.g. Scintilla. Also Kate looks very promising. Of course that requires to change the compiler, too.


15
Utilities / Re: QT5 Runtime
« on: April 21, 2021, 11:34:28 pm »
Been there , done that no joy - I do not want or need umpteen *.h files
Not true. I just have 1 file in my tree:
   G:\usr\include\python2.7\pyconfig.h

or other junk which I know not what to do with,  I just want a simple runtime package like that for QT4.
.. and I just want to have a system I can work with.

Sorry Ivan, there's just one way that's officially supported. Go that or take the time to create your own distribution.

Pages: [1] 2 3 ... 46