Author Topic: class FileManager purpose  (Read 4199 times)

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
class FileManager purpose
« on: July 29, 2014, 03:58:29 am »
I am in the process of testing the addition of some file related functions, and am uncertain where I should add them.  Is FileManager supposed to handle only file loading/saving, or can I use it as a candidate location to work on?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: class FileManager purpose
« Reply #1 on: July 30, 2014, 07:03:55 am »
Depends on what you've in mind. If you address a single file only yes. If you mean to address functions for files belonging to a project or with relevance to a project, "projectfile" might be a better candidate.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: class FileManager purpose
« Reply #2 on: July 31, 2014, 01:27:12 am »
I am attempting to see if I can speed up search/replace in files by pre-indexing files.  The files involved in indexing would (most likely) consist of project files, loose/recently opened files, and files in recently searched directories.  Within the index, it would not keep track of where the files came from.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: class FileManager purpose
« Reply #3 on: July 31, 2014, 01:45:47 am »
Can you think about making this api reusable in the ThreadSearch plugin?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: class FileManager purpose
« Reply #4 on: July 31, 2014, 01:59:25 am »
Plugin friendly API is already in my plans :) .