Results 1 to 2 of 2

Thread: C++: Tidy MainWindow

  1. #1
    Join Date
    Mar 2008
    Location
    Ireland
    Beans
    838
    Distro
    Ubuntu 17.10 Artful Aardvark

    C++: Tidy MainWindow

    My question is more coding related in general but I am using C++ for my project. I guess I've been wondering lately at what point do you consider doing a tidy of a main file and start putting functions in another file? My main file is around 1300 lines long and its already a bit convoluted.

    Also with C++ what is the best way to tidy functions away but still call them in the main file?

    Thanks in advance to anyone who will advise.
    Projects - PhotoFlare Image Editor | Xwii | URT-2D | BHR
    Hardware - System 76 - Galago UltraPro

  2. #2
    Join Date
    Mar 2008
    Location
    Ireland
    Beans
    838
    Distro
    Ubuntu 17.10 Artful Aardvark

    Re: C++: Tidy MainWindow

    To expand upon this. Most functions are called from either Toolbars or Menus. Should I just bundle functions into menu files. Like FileMenu.cpp, EditMenu.cpp for example. Just looking for opinions on a good structure, I know I can throw things into a new source/header file(s).
    Projects - PhotoFlare Image Editor | Xwii | URT-2D | BHR
    Hardware - System 76 - Galago UltraPro

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •