Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

DragScroll plugin (was: new scintilla 2.0 was released)

<< < (3/5) > >>

Jenna:
If I see right neither the MouseSapcfg-files, nor the dragscrollevent-files are used.
The drgscroll-stuff is not icnluded in the cbp-file, and MouseSapcfg can be removed, also the include of dragscrollevent.h.

Seems to work fine here without them.

I'm just building vi automake to see what happens.

This is the Makefile.am I use:


--- Code: ---INCLUDES = $(WX_CXXFLAGS) \
$(WX_GTK2_CFLAGS) \
-I$(top_srcdir)/src/include \
-I$(top_srcdir)/src/include/wxscintilla/include

pluginlibdir = $(pkglibdir)/plugins

pluginlib_LTLIBRARIES = libMouseSap.la

libMouseSap_la_LDFLAGS = -module -version-info 0:1:0 -shared -no-undefined -avoid-version

libMouseSap_la_LIBADD = $(PLUGIN_WX_LIBS) ../../../sdk/libcodeblocks.la

libMouseSap_la_SOURCES = MouseSap.cpp

noinst_HEADERS = MouseSap.h

EXTRA_DIST = $(srcdir)/*.cbp \
manifest.xml

pkgdata_DATA = MouseSap.zip

CLEANFILES = $(pkgdata_DATA)

MouseSap.zip: manifest.xml
PWD=`pwd` cd $(srcdir) && zip $(PWD)/MouseSap.zip manifest.xml > /dev/null

--- End code ---

I think the cfg-files and the dragscrollevent-files can be safely removed from the project-files, the Makefiles and (if I am right) from svn.

Jenna:
Seems to work this way, I committed the changes and also removed the MouseSapcfg-files from the projects.
Replaced the global cb-variable on windows, it's not used in our svn-sources since several months.
I also added a hack to avoid a nameconflict between wxWidgets2.8 and newer glib-versions.

I tested it on debian 64-bit (with automake and C::B) and on w2k with C::B.

By the way:
I guess the *cfg-files and the dragscrollevent-files are there because the plugin was initially copied from the dragscroll-plugin.
You can see this, if you compare MouseSapcfg.cpp and dragscrollcfg.cpp .

MortenMacFly:
...my mistake:
The topic should have been named "MouseSap plugin", not DragScroll. Jens' post with the DragScrollEvent confused me a bit. :lol:

Pecan:

--- Quote from: jens on September 01, 2009, 07:45:01 am ---...
By the way:
I guess the *cfg-files and the dragscrollevent-files are there because the plugin was initially copied from the dragscroll-plugin.
You can see this, if you compare MouseSapcfg.cpp and dragscrollcfg.cpp .


--- End quote ---

Correct. I "dragged" DragScroll over to a new directory and hacked it up.

If someone would give me SVN permissions to modify MouseSap, I'd appreciate it.

MortenMacFly:

--- Quote from: Pecan on September 01, 2009, 01:49:31 pm ---If someone would give me SVN permissions to modify MouseSap, I'd appreciate it.

--- End quote ---
...Yiannis, please?!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version