a qestion about modern editors

This is a discussion on a qestion about modern editors within the C++ Programming forums, part of the General Programming Boards category; hello all, to be more precise and informative im planning to use a gui designer and make my console application ...

  1. #1
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    493

    a qestion about modern editors

    hello all,
    to be more precise and informative im planning to use a gui designer and make my console application have a gui.
    needless to say some parts have to be replaced. one is the way the data is being entered .
    using files for input matters is obvious. but the catch here is ! i dont precisely understand how is it possible when im going to use a text box e.g as the mean to get input form user. and to what confuses me more,
    is the way new editors function!
    i cant figure out how the manage to understand when a user is done entering data , and put an end to the file! (assuming it is based on file ! ) and how they manage to sync data when user e.g. after one successful compilation
    enter new lines of code e.g. ( i mean i assume when the user enters his inputs , they use getline or stuff to get one line after another and tokenize it and then save it in an array e.g, but how is it possible , when the user enters new lines of codes before and maybe after the previously last line of the code he entered! how they save it in a memory! ? )

    and those editors, must have a buffer, where is it ! ? ( i mean should we seek a file somewhere that the editor is saving the codes in it!? or what! it just saves them in memory)

    can some one give me a comprehensive information on this?
    ========================

    i dont know what to google! if you give me the some advise on this i will be very thankful.

    tanx in advance
    Last edited by Masterx; 01-31-2009 at 07:36 PM.
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


  2. #2
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    493
    no help?
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    In a forum, no one is going to really give you "comprehensive information" on anything.

    If I'm reading the question right, which I doubt, then I would expect most text editors to be message-based -- you hit "b", that sends a message to the program that "b" was hit, and the program has to decide what to do about it. (It might put a "b" in your program; it might select a menu option, if one is dropped down; it might select a menu if the menu bar is 'lit up'; etc.)

  4. #4
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    4,262
    You aren't getting any help because your questions are vague.

    Different GUI designers will target a different GUI library.
    Different GUI libraries will use a different mechanism for processing input.
    Different GUI input widgets will store input differently.
    Different GUI text widgets will provide a different API for accessing that text.
    Different data structures should be used for different target texts.
    Different algorithms should be used to operate on those data structures for different performance characteristics.

    The problem is, your questions are too vague. It is very likely that you simply aren't capable yet of doing what you say you want to do.

    Soma

  5. #5
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    493
    Quote Originally Posted by tabstop View Post
    In a forum, no one is going to really give you "comprehensive information" on anything.

    If I'm reading the question right, which I doubt, then I would expect most text editors to be message-based -- you hit "b", that sends a message to the program that "b" was hit, and the program has to decide what to do about it. (It might put a "b" in your program; it might select a menu option, if one is dropped down; it might select a menu if the menu bar is 'lit up'; etc.)
    tanx , i appreciate that , comprehensive information could be a search keyword for me to google it! ( i really dont know what to google! editor? what ? really? which part of a gui should i search for ti get relavent information? )
    Quote Originally Posted by phantomotap View Post
    You aren't getting any help because your questions are vague.

    Different GUI designers will target a different GUI library.
    Different GUI libraries will use a different mechanism for processing input.
    Different GUI input widgets will store input differently.
    Different GUI text widgets will provide a different API for accessing that text.
    Different data structures should be used for different target texts.
    Different algorithms should be used to operate on those data structures for different performance characteristics.

    The problem is, your questions are too vague. It is very likely that you simply aren't capable yet of doing what you say you want to do.

    Soma
    thansk alot dear Soma. well i didnt know about these stuff , i tried to be more specific and informative , i just needed some overall information showing how a genric GUI designer works in this case,just to learn sth!
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


  6. #6
    Registered User
    Join Date
    Sep 2008
    Posts
    76
    I heard GTK is great GUI design API.It supports c++/C#/python programming languages.Most of
    C++ beginner use vc++ ,gcc and Code::blocks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. example from c programming "a modern approach"
    By convenientstore in forum C Programming
    Replies: 8
    Last Post: 06-15-2009, 03:08 AM
  2. Linux editors and compilers
    By Ripper1 in forum Linux Programming
    Replies: 17
    Last Post: 08-30-2003, 02:01 PM
  3. Resource Editors
    By golfinguy4 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 03-24-2002, 09:23 AM
  4. Resource Editors
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 03-24-2002, 06:38 AM
  5. other editors...
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-29-2001, 10:49 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21