aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: This is a features test ...  (Read 3769 times)

BigBob

  • aMule project creator.
  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 140
    • http://bigbob.fun.free.fr
This is a features test ...
« on: January 10, 2004, 01:17:13 PM »

Hi,

It is  just a test of the new Forum to check some Features ...

Trying a quote insert :

Quote
HOW TO COMPILE WXWINDOWS
------------------------
Only GTK1 is supported. Don't try GTK2 anymore. wxWindows isn't ready for it.

For GTK1:
./configure  --prefix=/usr --disable-gtk2 --enable-timedate --enable-gui
--enable-protocol --enable-http --enable-ftp --enable-resources
--enable-prologio --disable-debug --enable-final --enable-timer --with-gtk
--disable-profile

Now Trying a code insert :

Code: [Select]
CamuleDlg::~CamuleDlg()
{
        printf("Shutting down aMule...\n");
        /* Razor 1a - Modif by MikaelB
           Save client size and position */

        // Create a config base for saving razor preferences
        wxConfigBase *config = wxConfigBase::Get();
        // If config haven't been created exit without saving
        if (config == NULL) {
                return;
        }
        // The section where to save in in file
        wxString section = "/Razor_Preferences/";

        // Main window location and size
        int x1,y1,x2,y2;
        GetPosition(&x1, &y1);
        GetSize(&x2,&y2);

        // Saving window size and position
        config->Write(_T(section+"MAIN_X_POS"), (long) x1);
        config->Write(_T(section+"MAIN_Y_POS"), (long) y1);
        config->Write(_T(section+"MAIN_X_SIZE"), (long) x2);
        config->Write(_T(section+"MAIN_Y_SIZE"), (long) y2);
 
        // Saving sash position of splitter in transfer window
        config->Write(_T(section+"SPLITTER_POS"), (long) split_pos);
        printf("split saved to : %u\n", split_pos);
         
        // Saving sash position of splitter in server window
        config->Write(_T(section+"SRV_SPLITTER_POS"), (long) srv_split_pos);
        printf("srv_split saved to : %u\n", srv_split_pos);

        config->Flush(true);

        /* End modif */


        theApp.OnlineSig(true);

        // TODO: We want to free the memory used by the webserver
        //       but currently it does wait in accept().
        // delete theApp.webserver;
        delete theApp.serverlist; theApp.serverlist = NULL;
        delete theApp.searchlist; theApp.searchlist = NULL;
        delete theApp.clientcredits; theApp.clientcredits = NULL;
        // Destroying CDownloadQueue calls destructor for CPartFile
        // calling CSharedFileList::SafeAddKFile occasally.
        delete theApp.downloadqueue; theApp.downloadqueue = NULL;
        delete theApp.sharedfiles; theApp.sharedfiles = NULL;
        delete theApp.knownfiles; theApp.knownfiles = NULL;
        delete theApp.uploadqueue; theApp.uploadqueue = NULL;
        delete theApp.clientlist; theApp.clientlist = NULL;
        delete theApp.friendlist; theApp.friendlist = NULL;
        delete theApp.glob_prefs; theApp.glob_prefs = NULL;
        delete theApp.serverconnect; theApp.serverconnect = NULL;
}

Look good :-)

A++
Logged
Creator of aMule & aStats projects

superstoned

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 80
Re: This is a features test ...
« Reply #1 on: January 10, 2004, 08:48:33 PM »

looks good indeed ;-)

pitty winXP makes the webpage so much uglier (compared to KDE/Konqueror with Plastik skin)...
Logged