Giter Club home page Giter Club logo

cryham / ccc Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 1.0 887 KB

Crystal Color Center. Program for managing file types (extensions) and directory patterns for Double Commander and Total Commander. Using SFML and ImGui.

Home Page: https://cryham.tuxfamily.org/portfolio/2017-color-center/

License: GNU General Public License v3.0

CMake 1.87% C++ 82.32% C 15.81%
cplusplus tinyxml sfml cpp cmake imgui double-commander total-commander imgui-sfml cpp17

ccc's Introduction

ccc's People

Contributors

cryham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

acidburn0zzz

ccc's Issues

color.ini for dark Total Commander

When changing to dark mode the colors change and are not as attractive as they are in light mode.
Please make a color theme for dark mode.

TC 9.50 support

It seems TC change its color scheme in version 9.50
and ccc doesn't work in this TC beta version.
So will you add that support?

Build fails on Debian stable

Compiling from Master branch. Impressively long listing below:

$ make ccc
[  4%] Building C object CMakeFiles/ccc.dir/libs/nfd_gtk.c.o
In file included from /usr/include/gtk-2.0/gdk/gdkevents.h:34:0,
                 from /usr/include/gtk-2.0/gdk/gdkdisplay.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:33,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from /src/ccc/libs/nfd_gtk.c:12:

--- SKIPPED TO FIT IN THE GitHub's COMMENT LENGTH LIMIT ----

warning: parameter names (without types) in function declaration
   GtkTreeModel *GSEAL (child_model);
   ^~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:51:17: error: field ‘GSEAL’ declared as a function
   GtkTreeModel *GSEAL (child_model);
                 ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:52:3: warning: parameter names (without types) in function declaration
   gint GSEAL (zero_ref_count);
   ^~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:52:8: error: field ‘GSEAL’ declared as a function
   gint GSEAL (zero_ref_count);
        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:55:3: warning: parameter names (without types) in function declaration
   GList *GSEAL (sort_list);
   ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:55:10: error: field ‘GSEAL’ declared as a function
   GList *GSEAL (sort_list);
          ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:56:3: warning: parameter names (without types) in function declaration
   gint GSEAL (sort_column_id);
   ^~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:56:8: error: field ‘GSEAL’ declared as a function
   gint GSEAL (sort_column_id);
        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:57:3: warning: parameter names (without types) in function declaration
   GtkSortType GSEAL (order);
   ^~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:57:15: error: field ‘GSEAL’ declared as a function
   GtkSortType GSEAL (order);
               ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:60:3: warning: parameter names (without types) in function declaration
   GtkTreeIterCompareFunc GSEAL (default_sort_func);
   ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:60:26: error: field ‘GSEAL’ declared as a function
   GtkTreeIterCompareFunc GSEAL (default_sort_func);
                          ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:61:3: warning: parameter names (without types) in function declaration
   gpointer GSEAL (default_sort_data);
   ^~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:61:12: error: field ‘GSEAL’ declared as a function
   gpointer GSEAL (default_sort_data);
            ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:62:3: warning: parameter names (without types) in function declaration
   GDestroyNotify GSEAL (default_sort_destroy);
   ^~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:62:18: error: field ‘GSEAL’ declared as a function
   GDestroyNotify GSEAL (default_sort_destroy);
                  ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:65:3: warning: parameter names (without types) in function declaration
   guint GSEAL (changed_id);
   ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:65:9: error: field ‘GSEAL’ declared as a function
   guint GSEAL (changed_id);
         ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:66:3: warning: parameter names (without types) in function declaration
   guint GSEAL (inserted_id);
   ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:66:9: error: field ‘GSEAL’ declared as a function
   guint GSEAL (inserted_id);
         ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:67:3: warning: parameter names (without types) in function declaration
   guint GSEAL (has_child_toggled_id);
   ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:67:9: error: field ‘GSEAL’ declared as a function
   guint GSEAL (has_child_toggled_id);
         ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:68:3: warning: parameter names (without types) in function declaration
   guint GSEAL (deleted_id);
   ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:68:9: error: field ‘GSEAL’ declared as a function
   guint GSEAL (deleted_id);
         ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:69:3: warning: parameter names (without types) in function declaration
   guint GSEAL (reordered_id);
   ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:69:9: error: field ‘GSEAL’ declared as a function
   guint GSEAL (reordered_id);
         ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:49:8: error: duplicate member ‘GSEAL’
   gint GSEAL (stamp);
        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:50:9: error: duplicate member ‘GSEAL’
   guint GSEAL (child_flags);
         ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:51:17: error: duplicate member ‘GSEAL’
   GtkTreeModel *GSEAL (child_model);
                 ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:52:8: error: duplicate member ‘GSEAL’
   gint GSEAL (zero_ref_count);
        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:55:10: error: duplicate member ‘GSEAL’
   GList *GSEAL (sort_list);
          ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:56:8: error: duplicate member ‘GSEAL’
   gint GSEAL (sort_column_id);
        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:57:15: error: duplicate member ‘GSEAL’
   GtkSortType GSEAL (order);
               ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:60:26: error: duplicate member ‘GSEAL’
   GtkTreeIterCompareFunc GSEAL (default_sort_func);
                          ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:61:12: error: duplicate member ‘GSEAL’
   gpointer GSEAL (default_sort_data);
            ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:62:18: error: duplicate member ‘GSEAL’
   GDestroyNotify GSEAL (default_sort_destroy);
                  ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:65:9: error: duplicate member ‘GSEAL’
   guint GSEAL (changed_id);
         ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:66:9: error: duplicate member ‘GSEAL’
   guint GSEAL (inserted_id);
         ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:67:9: error: duplicate member ‘GSEAL’
   guint GSEAL (has_child_toggled_id);
         ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:68:9: error: duplicate member ‘GSEAL’
   guint GSEAL (deleted_id);
         ^~~~~
/usr/include/gtk-2.0/gtk/gtktreemodelsort.h:69:9: error: duplicate member ‘GSEAL’
   guint GSEAL (reordered_id);
         ^~~~~
In file included from /usr/include/gtk-2.0/gtk/gtk.h:201:0,
                 from /src/ccc/libs/nfd_gtk.c:12:
/usr/include/gtk-2.0/gtk/gtktreeselection.h:55:3: warning: parameter names (without types) in function declaration
   GtkTreeView *GSEAL (tree_view);
   ^~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:55:16: error: field ‘GSEAL’ declared as a function
   GtkTreeView *GSEAL (tree_view);
                ^~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:56:3: warning: parameter names (without types) in function declaration
   GtkSelectionMode GSEAL (type);
   ^~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:56:20: error: field ‘GSEAL’ declared as a function
   GtkSelectionMode GSEAL (type);
                    ^~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:57:3: warning: parameter names (without types) in function declaration
   GtkTreeSelectionFunc GSEAL (user_func);
   ^~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:57:24: error: field ‘GSEAL’ declared as a function
   GtkTreeSelectionFunc GSEAL (user_func);
                        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:58:3: warning: parameter names (without types) in function declaration
   gpointer GSEAL (user_data);
   ^~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:58:12: error: field ‘GSEAL’ declared as a function
   gpointer GSEAL (user_data);
            ^~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:59:3: warning: parameter names (without types) in function declaration
   GDestroyNotify GSEAL (destroy);
   ^~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:59:18: error: field ‘GSEAL’ declared as a function
   GDestroyNotify GSEAL (destroy);
                  ^~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:56:20: error: duplicate member ‘GSEAL’
   GtkSelectionMode GSEAL (type);
                    ^~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:57:24: error: duplicate member ‘GSEAL’
   GtkTreeSelectionFunc GSEAL (user_func);
                        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:58:12: error: duplicate member ‘GSEAL’
   gpointer GSEAL (user_data);
            ^~~~~
/usr/include/gtk-2.0/gtk/gtktreeselection.h:59:18: error: duplicate member ‘GSEAL’
   GDestroyNotify GSEAL (destroy);
                  ^~~~~
In file included from /usr/include/gtk-2.0/gtk/gtk.h:203:0,
                 from /src/ccc/libs/nfd_gtk.c:12:
/usr/include/gtk-2.0/gtk/gtktreestore.h:50:3: warning: parameter names (without types) in function declaration
   gint GSEAL (stamp);
   ^~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:50:8: error: field ‘GSEAL’ declared as a function
   gint GSEAL (stamp);
        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:51:3: warning: parameter names (without types) in function declaration
   gpointer GSEAL (root);
   ^~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:51:12: error: field ‘GSEAL’ declared as a function
   gpointer GSEAL (root);
            ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:52:3: warning: parameter names (without types) in function declaration
   gpointer GSEAL (last);
   ^~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:52:12: error: field ‘GSEAL’ declared as a function
   gpointer GSEAL (last);
            ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:53:3: warning: parameter names (without types) in function declaration
   gint GSEAL (n_columns);
   ^~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:53:8: error: field ‘GSEAL’ declared as a function
   gint GSEAL (n_columns);
        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:54:3: warning: parameter names (without types) in function declaration
   gint GSEAL (sort_column_id);
   ^~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:54:8: error: field ‘GSEAL’ declared as a function
   gint GSEAL (sort_column_id);
        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:55:3: warning: parameter names (without types) in function declaration
   GList *GSEAL (sort_list);
   ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:55:10: error: field ‘GSEAL’ declared as a function
   GList *GSEAL (sort_list);
          ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:56:3: warning: parameter names (without types) in function declaration
   GtkSortType GSEAL (order);
   ^~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:56:15: error: field ‘GSEAL’ declared as a function
   GtkSortType GSEAL (order);
               ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:57:3: warning: parameter names (without types) in function declaration
   GType *GSEAL (column_headers);
   ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:57:10: error: field ‘GSEAL’ declared as a function
   GType *GSEAL (column_headers);
          ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:58:3: warning: parameter names (without types) in function declaration
   GtkTreeIterCompareFunc GSEAL (default_sort_func);
   ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:58:26: error: field ‘GSEAL’ declared as a function
   GtkTreeIterCompareFunc GSEAL (default_sort_func);
                          ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:59:3: warning: parameter names (without types) in function declaration
   gpointer GSEAL (default_sort_data);
   ^~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:59:12: error: field ‘GSEAL’ declared as a function
   gpointer GSEAL (default_sort_data);
            ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:60:3: warning: parameter names (without types) in function declaration
   GDestroyNotify GSEAL (default_sort_destroy);
   ^~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:60:18: error: field ‘GSEAL’ declared as a function
   GDestroyNotify GSEAL (default_sort_destroy);
                  ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:61:3: warning: parameter names (without types) in function declaration
   guint GSEAL (columns_dirty) : 1;
   ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:61:9: error: bit-field ‘GSEAL’ has invalid type
   guint GSEAL (columns_dirty) : 1;
         ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:51:12: error: duplicate member ‘GSEAL’
   gpointer GSEAL (root);
            ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:52:12: error: duplicate member ‘GSEAL’
   gpointer GSEAL (last);
            ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:53:8: error: duplicate member ‘GSEAL’
   gint GSEAL (n_columns);
        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:54:8: error: duplicate member ‘GSEAL’
   gint GSEAL (sort_column_id);
        ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:55:10: error: duplicate member ‘GSEAL’
   GList *GSEAL (sort_list);
          ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:56:15: error: duplicate member ‘GSEAL’
   GtkSortType GSEAL (order);
               ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:57:10: error: duplicate member ‘GSEAL’
   GType *GSEAL (column_headers);
          ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:58:26: error: duplicate member ‘GSEAL’
   GtkTreeIterCompareFunc GSEAL (default_sort_func);
                          ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:59:12: error: duplicate member ‘GSEAL’
   gpointer GSEAL (default_sort_data);
            ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:60:18: error: duplicate member ‘GSEAL’
   GDestroyNotify GSEAL (default_sort_destroy);
                  ^~~~~
/usr/include/gtk-2.0/gtk/gtktreestore.h:61:9: error: duplicate member ‘GSEAL’
   guint GSEAL (columns_dirty) : 1;
         ^~~~~
In file included from /usr/include/gtk-2.0/gtk/gtk.h:207:0,
                 from /src/ccc/libs/nfd_gtk.c:12:
/usr/include/gtk-2.0/gtk/gtkuimanager.h:62:3: warning: parameter names (without types) in function declaration
   GtkUIManagerPrivate *GSEAL (private_data);
   ^~~~~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkuimanager.h:62:24: error: field ‘GSEAL’ declared as a function
   GtkUIManagerPrivate *GSEAL (private_data);
                        ^~~~~
In file included from /usr/include/gtk-2.0/gtk/gtk.h:232:0,
                 from /src/ccc/libs/nfd_gtk.c:12:
/usr/include/gtk-2.0/gtk/gtkgamma.h:53:3: warning: parameter names (without types) in function declaration
   GtkWidget *GSEAL (table);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:53:14: error: field ‘GSEAL’ declared as a function
   GtkWidget *GSEAL (table);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:54:3: warning: parameter names (without types) in function declaration
   GtkWidget *GSEAL (curve);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:54:14: error: field ‘GSEAL’ declared as a function
   GtkWidget *GSEAL (curve);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:55:21: error: unknown type name ‘button’
   GtkWidget *GSEAL (button[5]); /* spline, linear, free, gamma, reset */
                     ^~~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:57:3: warning: parameter names (without types) in function declaration
   gfloat GSEAL (gamma);
   ^~~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:57:10: error: field ‘GSEAL’ declared as a function
   gfloat GSEAL (gamma);
          ^~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:58:3: warning: parameter names (without types) in function declaration
   GtkWidget *GSEAL (gamma_dialog);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:58:14: error: field ‘GSEAL’ declared as a function
   GtkWidget *GSEAL (gamma_dialog);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:59:3: warning: parameter names (without types) in function declaration
   GtkWidget *GSEAL (gamma_text);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:59:14: error: field ‘GSEAL’ declared as a function
   GtkWidget *GSEAL (gamma_text);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:54:14: error: duplicate member ‘GSEAL’
   GtkWidget *GSEAL (curve);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:57:10: error: duplicate member ‘GSEAL’
   gfloat GSEAL (gamma);
          ^~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:58:14: error: duplicate member ‘GSEAL’
   GtkWidget *GSEAL (gamma_dialog);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkgamma.h:59:14: error: duplicate member ‘GSEAL’
   GtkWidget *GSEAL (gamma_text);
              ^~~~~
In file included from /usr/include/gtk-2.0/gtk/gtk.h:233:0,
                 from /src/ccc/libs/nfd_gtk.c:12:
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:63:3: warning: parameter names (without types) in function declaration
   GtkWidget *GSEAL (axis_list);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:63:14: error: field ‘GSEAL’ declared as a function
   GtkWidget *GSEAL (axis_list);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:64:3: warning: parameter names (without types) in function declaration
   GtkWidget *GSEAL (axis_listbox);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:64:14: error: field ‘GSEAL’ declared as a function
   GtkWidget *GSEAL (axis_listbox);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:65:3: warning: parameter names (without types) in function declaration
   GtkWidget *GSEAL (mode_optionmenu);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:65:14: error: field ‘GSEAL’ declared as a function
   GtkWidget *GSEAL (mode_optionmenu);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:67:3: warning: parameter names (without types) in function declaration
   GtkWidget *GSEAL (close_button);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:67:14: error: field ‘GSEAL’ declared as a function
   GtkWidget *GSEAL (close_button);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:68:3: warning: parameter names (without types) in function declaration
   GtkWidget *GSEAL (save_button);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:68:14: error: field ‘GSEAL’ declared as a function
   GtkWidget *GSEAL (save_button);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:70:21: error: unknown type name ‘axis_items’
   GtkWidget *GSEAL (axis_items[GDK_AXIS_LAST]);
                     ^~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:71:3: warning: parameter names (without types) in function declaration
   GdkDevice *GSEAL (current_device);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:71:14: error: field ‘GSEAL’ declared as a function
   GdkDevice *GSEAL (current_device);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:73:3: warning: parameter names (without types) in function declaration
   GtkWidget *GSEAL (keys_list);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:73:14: error: field ‘GSEAL’ declared as a function
   GtkWidget *GSEAL (keys_list);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:74:3: warning: parameter names (without types) in function declaration
   GtkWidget *GSEAL (keys_listbox);
   ^~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:74:14: error: field ‘GSEAL’ declared as a function
   GtkWidget *GSEAL (keys_listbox);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:64:14: error: duplicate member ‘GSEAL’
   GtkWidget *GSEAL (axis_listbox);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:65:14: error: duplicate member ‘GSEAL’
   GtkWidget *GSEAL (mode_optionmenu);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:67:14: error: duplicate member ‘GSEAL’
   GtkWidget *GSEAL (close_button);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:68:14: error: duplicate member ‘GSEAL’
   GtkWidget *GSEAL (save_button);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:71:14: error: duplicate member ‘GSEAL’
   GdkDevice *GSEAL (current_device);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:73:14: error: duplicate member ‘GSEAL’
   GtkWidget *GSEAL (keys_list);
              ^~~~~
/usr/include/gtk-2.0/gtk/gtkinputdialog.h:74:14: error: duplicate member ‘GSEAL’
   GtkWidget *GSEAL (keys_listbox);
              ^~~~~
CMakeFiles/ccc.dir/build.make:114: recipe for target 'CMakeFiles/ccc.dir/libs/nfd_gtk.c.o' failed
make[3]: *** [CMakeFiles/ccc.dir/libs/nfd_gtk.c.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/ccc.dir/all' failed
make[2]: *** [CMakeFiles/ccc.dir/all] Error 2
CMakeFiles/Makefile2:84: recipe for target 'CMakeFiles/ccc.dir/rule' failed
make[1]: *** [CMakeFiles/ccc.dir/rule] Error 2
Makefile:118: recipe for target 'ccc' failed
make: *** [ccc] Error 2

Building on Linux

There seems to be several places in code that are MS Windows-specific. I have added missing declarations, just to check if an application can be built at all.

Please see lines with comments below:

App_Init.cpp:109

bool App::StartExe()
    bool er = int(ShellExecute(NULL, "open", s.c_str(), NULL, NULL, SW_SHOWDEFAULT)) <= 32;
#else
        system(s.c_str()); 
        bool er = false;  // Probably wrong, leaving for now
#endif
    status.Set(er ? "Start "+sDC+" error!" : "Started "+sDC+".", er ? 0.1f : 0.62f);
        status.Set(er ? "Start "+sDC+" error!" : "Started "+sDC+".", er ? 0.1f : 0.62f);
    return er;
}

Settings.cpp:66

void Settings::Default()
    strcpy(pathTCexe, "c:\\Program Files\\Total Commander\\totalcmd.exe");
#else
    char pathDC[256];  // Probably wrong, leaving for now
    strcpy(pathDC, "");
    strcpy(pathDCexe, "doublecmd");
#endif

And, as discussed in #2, App_Graph.cpp:3

#include "App.h"
#include "Util.h"
#include <math.h> // Added per https://github.com/cryham/ccc/issues/2
using namespace std;

Now application compiles, but linking fails as it seems to rely on Windows-specififc libraries (?). I have found some packaged with Wine, however ldd skips them as incompatible:

$ make
[  4%] Linking CXX executable ccc
/usr/bin/ld: cannot find -lopengl32
/usr/bin/ld: cannot find -lglu32
/usr/bin/ld: cannot find -lgdi32
collect2: error: ld returned 1 exit status
CMakeFiles/ccc.dir/build.make:371: recipe for target 'ccc' failed
make[2]: *** [ccc] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/ccc.dir/all' failed
make[1]: *** [CMakeFiles/ccc.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I am happy to collate all changes necessary into a pull request once linking is sorted.

App_Graph.cpp: error: ‘cosf’ was not declared in this scope

Subj:

> make
[  4%] Building CXX object CMakeFiles/ccc.dir/libs/imgui-SFML.cpp.o
[  9%] Building CXX object CMakeFiles/ccc.dir/libs/imgui.cpp.o
[ 14%] Building CXX object CMakeFiles/ccc.dir/libs/imgui_draw.cpp.o
[ 19%] Building C object CMakeFiles/ccc.dir/libs/nfd_common.c.o
[ 23%] Building C object CMakeFiles/ccc.dir/libs/nfd_gtk.c.o
[ 28%] Building CXX object CMakeFiles/ccc.dir/libs/nfd_win.cpp.o
[ 33%] Building CXX object CMakeFiles/ccc.dir/libs/tinyxml2.cpp.o
[ 38%] Building CXX object CMakeFiles/ccc.dir/source/AppDraw.cpp.o
/src/ccc/source/AppDraw.cpp: In member function ‘int AppDraw::Txt(int, int, bool)’:
/src/ccc/source/AppDraw.cpp:13:19: warning: ‘void sf::Text::setColor(const sf::Color&)’ is deprecated [-Wdeprecated-declarations]
  text.setColor(clr);
                   ^
In file included from /usr/include/SFML/Graphics.hpp:51:0,
                 from /src/ccc/source/AppDraw.h:3,
                 from /src/ccc/source/AppDraw.cpp:1:
/usr/include/SFML/Graphics/Text.hpp:177:26: note: declared here
     SFML_DEPRECATED void setColor(const Color& color);
                          ^~~~~~~~
[ 42%] Building CXX object CMakeFiles/ccc.dir/source/AppMain.cpp.o
[ 47%] Building CXX object CMakeFiles/ccc.dir/source/App_Graph.cpp.o
/src/ccc/source/App_Graph.cpp: In member function ‘void App::Graph()’:
/src/ccc/source/App_Graph.cpp:26:53: error: ‘cosf’ was not declared in this scope
  float a = 255.f * (0.75f + 0.25f * cosf(12.f * time));
                                                     ^
CMakeFiles/ccc.dir/build.make:179: recipe for target 'CMakeFiles/ccc.dir/source/App_Graph.cpp.o' failed
make[2]: *** [CMakeFiles/ccc.dir/source/App_Graph.cpp.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/ccc.dir/all' failed
make[1]: *** [CMakeFiles/ccc.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Export and Import throws error on Windows

Steps:

  1. Download Windows release (version 0.9).
  2. Extract and run.
  3. Press Export or Import.
  4. Choose Total Commander in drop-down.

Result:
'Export DC error' or 'Import DC error' is shown. Same if run as Administrator. Also note that error message text is likely incorrect as well (should be 'TC' and not 'DC).

Btw, thank you so much for this project!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.