SEAL Forum Index SEAL
The SEAL Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Thoughts
Goto page 1, 2  Next
 
Post new topic   Reply to topic    SEAL Forum Index -> To Do
View previous topic :: View next topic  
Author Message
_xduffy_
Administrator


Joined: 15 Mar 2002
Posts: 894
Location: Sweden

PostPosted: Thu Apr 04, 2002 4:24 pm    Post subject: Reply with quote

I have some thoughts on what maybe should be done with SEAL, feel free to disagree

* Internet support
Almost ready, needs gui, right?
* Code cleanup, for lesser bugs and better readability
I am willing to start some of this, when the new release comes... This is something that maybe should come as time goes...
* Full support for languages
Something that is happening right now! And Owen told me that he is looking into making more of the text in the lang files... great!
* Preemptive multitasking
Not easy at all, hard work. And do we want that? Sure, it would increase stability...
* Sockets
Are they ever gonna be finished? Is Pablo at all in the forum now a days?
* Wordprocessor
Well, maybe not Word, but still something more powefull than SmallDit
* More advanced SIMP
Is Julien working on SIMP? It is a quite nice program actually...
* Script interpreter
Is anyone working on one? Im writing my own one, sure it could be used for SEAL the day it's finished... but you see, I started this project 2 years ago, and i am not finished yet (a very slow paced project).
* C++ bindings for the SEAL api
Something that shouldn't be _that_ hard to do, Im quite interested in it myself actually.
* A graphical installer
Amos is writing one right now.
* Generally more programs...

More ToDo stuff? Maybe the things I've written isn't the onse with highest priority, but they are interesting, aren't they?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
orudge
Administrator


Joined: 07 Oct 2001
Posts: 1332
Location: United Kingdom

PostPosted: Fri Apr 05, 2002 7:24 am    Post subject: Reply with quote

Quote:

* Internet support
Almost ready, needs gui, right?


Not quite, it needs a lot of work (at least, if we're basing it off Callum's dialer). I believe Kostas is/was also working on Internet support.

Quote:
* Code cleanup, for lesser bugs and better readability
I am willing to start some of this, when the new release comes... This is something that maybe should come as time goes...


I will clean up more code in the future as I go.

Quote:
Something that is happening right now! And Owen told me that he is looking into making more of the text in the lang files... great!


When 2.00.11 is out, I will try and make more text translatable, yes.

Quote:
* Preemptive multitasking
Not easy at all, hard work. And do we want that? Sure, it would increase stability...


This would be good, but is as you say hard work.

Quote:
* Sockets
Are they ever gonna be finished? Is Pablo at all in the forum now a days?


I've not heard from Pablo (and neither has anyone else AFAIK) since his post about his e-mail client all those months ago...

Quote:
* Wordprocessor
Well, maybe not Word, but still something more powefull than SmallDit


Is anyone willing to volunteer to do this?

Quote:
* More advanced SIMP
Is Julien working on SIMP? It is a quite nice program actually...


I believe Julien is working on SIMP for Qube (or so I've heard), but not SIMP for SEAL...

Quote:
* Script interpreter
Is anyone working on one? Im writing my own one, sure it could be used for SEAL the day it's finished... but you see, I started this project 2 years ago, and i am not finished yet (a very slow paced project).


SealScript, by Kostas, has been around since the SEAL 1.x days, but has never been ported to SEAL 2.0.

Quote:
* C++ bindings for the SEAL api
Something that shouldn't be _that_ hard to do, Im quite interested in it myself actually.


SealAmp is mostly written in C++. So far, I've written a basic button class in C++, but the playlist control remained C (it was really just a copy of the listbox with a few extra features).

_________________
Owen Rudge
http://www.owenrudge.net/

Currently Playing (last time I was online, anyway):
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
_xduffy_
Administrator


Joined: 15 Mar 2002
Posts: 894
Location: Sweden

PostPosted: Fri Apr 05, 2002 8:27 am    Post subject: Reply with quote

Is the SEALAmp code ready for download? I thought about the button class... I have started some work on a window class... but if it was possible to work it into one library of C++ functions it would be great. I know you have a lot to do Owen, so I could take care of that. Even if SEALAmp isn't ready, maybe you can mail the Button code?

Writing a word processor is surely a great task... But it would be cool...

If SIMP is developed for QUBE maybe it's possible to port a newer version back to SEAL later on?

SealScript... did it ever work? I mean was there actually any code that did something?

[ This Message was edited by: _xduffy_ on 2002-04-05 07:31 ]
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
orudge
Administrator


Joined: 07 Oct 2001
Posts: 1332
Location: United Kingdom

PostPosted: Fri Apr 05, 2002 8:36 am    Post subject: Reply with quote

SealAmp is nowhere near ready, and won't be for ages.

SealScript did work, and was used for SIP.

I'm just going to watch TV so I'll post more later...

_________________
Owen Rudge
http://www.owenrudge.net/

Currently Playing (last time I was online, anyway):
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
_xduffy_
Administrator


Joined: 15 Mar 2002
Posts: 894
Location: Sweden

PostPosted: Fri Apr 05, 2002 8:40 am    Post subject: Reply with quote

Well, I actually asked for the button code... not for SEALAmp itself...

What is SIP? And is it possible to download SealScript somewhere?

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
orudge
Administrator


Joined: 07 Oct 2001
Posts: 1332
Location: United Kingdom

PostPosted: Fri Apr 05, 2002 9:06 am    Post subject: Reply with quote

Well, the button code is just a simple wrapper around the t_button object:

Code:
/*********************************************/
/* SealAmp                                   */
/* Version 0.1                               */
/*                                           */
/* Copyright (c) Owen Rudge 2001. All Rights */
/* Reserved.                                 */
/*********************************************/
/* C++ button class                          */
/*********************************************/

/*  This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

/* Revision History:

   18/11/2001 - Created button class (orudge)
   24/11/2001 - Added tooltip support (orudge)
*/

#include <allegro.h>
#include <stdlib.h>

extern "C" {
#include <seal.h>
#include <app.h>
#include <button.h>
}

extern "C" void __c_set_font(p_view obj, l_text name, l_int w, l_int h);

#include "cppbutton.h"

Button::Button(l_int x, l_int y, l_int w, l_int h, l_text caption, l_dword msg, l_int flags, p_object container)
{
   obj = button_init((p_button) malloc(sizeof(t_button)), rect_assign(x,y,x+w,y+h), caption, msg, flags);
   container->insert(container, OBJECT(obj));
}

Button::Button(l_int x, l_int y, l_int w, l_int h, l_text caption, l_dword msg, l_int flags)
{
   obj = button_init((p_button) malloc(sizeof(t_button)), rect_assign(x,y,x+w,y+h), caption, msg, flags);
}

Button::~Button()
{

}

void Button::Insert(p_object container)
{
   container->insert(container, OBJECT(obj));
}

void Button::SetCaption(l_text new_caption)
{
   obj->caption = _strdup(new_caption);
}

l_text Button::GetCaption()
{
   return(_strdup(obj->caption));
}

void Button::SetMessage(l_dword new_msg)
{
   obj->message = new_msg;
}

l_dword Button::GetMessage()
{
   return(obj->message);
}

void Button::SetFlags(l_int new_flags)
{
   obj->flags = new_flags;
}

l_int Button::GetFlags()
{
   return(obj->flags);
}

void Button::SetBounds(l_int x, l_int y, l_int w, l_int h)
{
   VIEW(obj)->bounds = rect_assign(x,y,x+w,y+h);
}

t_rect Button::GetBounds()
{
   return(VIEW(obj)->bounds);
}

void Button::SetFont(l_text name, l_int w, l_int h)
{
   __c_set_font(VIEW(obj), name, w, h);
}

p_button Button::GetButtonObject()
{
   return(obj);
}

void Button::SetTooltipText(l_text new_tip)
{
   VIEW(obj)->info_text = strdup(new_tip);
}


cppbutton.h:

Code:
/*********************************************/
/* SealAmp                                   */
/* Version 0.1                               */
/*                                           */
/* Copyright (c) Owen Rudge 2001. All Rights */
/* Reserved.                                 */
/*********************************************/
/* C++ button class                          */
/*********************************************/

#ifndef __BUTTON_H
   #define __BUTTON_H

class Button {
   public:
      // Constructors
      Button(l_int x, l_int y, l_int w, l_int h, l_text caption, l_dword msg, l_int flags, p_object container);
      Button(l_int x, l_int y, l_int w, l_int h, l_text caption, l_dword msg, l_int flags);

      // Destructor
      ~Button();

      // Inserts button into container
      void Insert(p_object container);

      // Sets the button caption
      void SetCaption(l_text new_caption);

      // Returns the button caption
      l_text GetCaption();

      // Sets the message identifier
      void SetMessage(l_dword new_msg);

      // Returns the message identifier
      l_dword GetMessage();

      // Sets the button's flags
      void SetFlags(l_int new_flags);

      // Returns the button's flags
      l_int GetFlags();

      // Sets the button's position and size
      void SetBounds(l_int x, l_int y, l_int w, l_int h);

      // Returns the button's position and size (as a t_rect)
      t_rect GetBounds();

      // Sets the button's font
      void SetFont(l_text name, l_int w, l_int h);

      // Returns the p_button object
      p_button GetButtonObject();

      // Sets the tooltip text for the button
      void SetTooltipText(l_text new_tip);

   private:
      p_button obj;
};

#endif


And cpp_c.c (I've snipped out the main comments and things unrelated to buttons):

Code:
#include <allegro.h>
#include <stdlib.h>
#include <seal.h>
#include <app.h>
#include <dialogs.h>
#include <button.h>

// gcc keeps complaining about ANSI C++ and void *, etc, so I did it this way
void __c_set_font(p_view obj, l_text name, l_int w, l_int h)
{
   obj->font = get_font_in_size(name, w, h);
}


I think SealScript might be available from http://sealsystem.sourceforge.net/files/. SIP stands for SEAL Installable Packages, and is an installation system for SEAL apps.

_________________
Owen Rudge
http://www.owenrudge.co.uk/

MSN Messenger: orudge@freeuk.com
ICQ: 125455765

[ This Message was edited by: orudge on 2002-04-05 08:09 ]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
_xduffy_
Administrator


Joined: 15 Mar 2002
Posts: 894
Location: Sweden

PostPosted: Fri Apr 05, 2002 10:52 am    Post subject: Reply with quote

Ok, ill take a closer look at the code... See what I can achieve
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Guest






PostPosted: Wed Apr 24, 2002 2:02 am    Post subject: Reply with quote

I have one more suggestion: why don't do an interactive DOS command window (something like Linux's xterm, or dos prompt in Win9x) ?

Back to top
Darragh McNally



Joined: 03 Apr 2002
Posts: 196
Location: Ireland

PostPosted: Wed Apr 24, 2002 10:49 am    Post subject: Reply with quote

It was tried before but I don't think it got far. There was a test console app before but I don't know if it was in the latest SEAL release.
Back to top
View user's profile Send private message
Amos Vryhof
Administrator


Joined: 15 Oct 2001
Posts: 540
Location: United States

PostPosted: Wed Apr 24, 2002 5:17 pm    Post subject: Reply with quote

Kostas sent me a console implimentation once. I unzipped it and it is just binaries.. Wonder if he still has the sources for enhancement and porting to Seal2.


_________________
Amos


[url=mailto:18238073@pager.icq.com]Msg@Home[/url]
[url=mailto:154644152@pager.icq.com]Msg@Work[/url]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
w_w_n_uk



Joined: 25 Oct 2001
Posts: 177
Location: England, Hemel Hempstead

PostPosted: Thu Apr 25, 2002 4:05 am    Post subject: Reply with quote

did it actualy work tho is the question as i spoke to owen and he said not posibal with out a dos vertual macheen

_________________
leon pegg
W_W_N_UK@YAHOO.CO.UK
When Hell is full, the dead will walk the earth...
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
orudge
Administrator


Joined: 07 Oct 2001
Posts: 1332
Location: United Kingdom

PostPosted: Thu Apr 25, 2002 9:39 am    Post subject: Reply with quote

The console test by Julien is still in 2.00.11 but is not compiled or built by default - see src/console.c.

_________________
Owen Rudge
http://www.owenrudge.net/

Currently Playing (last time I was online, anyway):
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Omega Infinity



Joined: 07 May 2002
Posts: 17
Location: Latin America

PostPosted: Sun May 12, 2002 12:19 am    Post subject: Reply with quote

well..... as I talked earlier....

-internet browser does not need a gui (necesarily).... just stick to the ol' good text one (for now)

-better start working on a ppp dialer..... no point on having a browser if you can't connect, OK?

-why not try a wordpad clone? (for now).... that would work as a busniess solution

- once that word clone is ready, why don't you try with an excel clone?

now you see?..... we could get a busniess solution (perfect to advertise SEAL) for low level PCs (the ones that are favorite in many corporations.....

then, you can think about other stuff.....

_________________
have you got any cool OS (not windows, and not linux)..... if you did, feel free to contact me by MSN messenger, OK?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
cheshire_cat



Joined: 14 Jan 2002
Posts: 149
Location: United Kingdom of Great Britain and NI

PostPosted: Sun May 12, 2002 10:51 am    Post subject: Reply with quote

*sigh*, why does nobody remember im doing a PPP dialer, ive announced it recently and a few months back, and yet, nooone remebers !
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
biggyp



Joined: 16 Oct 2001
Posts: 1473
Location: England, United Kingdom

PostPosted: Sun May 12, 2002 10:57 am    Post subject: Reply with quote

he's posted this lot in the general forum, i replied in detail, including a little about your PPP dialer, would be good to get a status update sometime though, and maybe a test release.

_________________
http://www.theopencd.org/ - OpenSource for the Masses

Gallery

Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    SEAL Forum Index -> To Do All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group