[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Wed Apr 28 20:12:48 CEST 2004


addWindow should add a a new window with a KstTopLevelView in it, not a test 
view.  I really want to quit using testview asap, so we can get the command 
line stuff working so I can start making kst2dplot work.

the initialization should create a single KstViewWindow with a topLevelView in 
it.

As soon as this is done, let me know, and I will modify main() to create 
2dplots in it based on the command line, and then port kstplot to 2dplots 
starting from a good basis...

cbn

On April 28, 2004 11:45 am, George Staikos wrote:
> CVS commit by staikos:
>
> new window should create a new view
> -> remove the two testviews.  you can create them manually now
> -> sizes are set to 0 right now - must fix later
>
>
>   M +6 -14     kst.cpp   1.103
>   M +1 -0      kstui.rc   1.22
>
>
> --- kdeextragear-2/kst/kst/kst.cpp  #1.102:1.103
> @@ -172,9 +172,4 @@ KstApp::KstApp(QWidget *parent, const ch
>
>    checkFontPresent( "Symbol" );
> -
> -  KstViewWindow *vw = new KstViewWindow;
> -  addWindow(vw);
> -  vw = new KstViewWindow;
> -  addWindow(vw);
>  }
>
> @@ -698,13 +693,4 @@ bool KstApp::queryExit() {
>  }
>
> -void KstApp::slotFileNewWindow() {
> -  slotUpdateStatusMsg(i18n("Opening a new application window..."));
> -
> -  KstApp *new_window= new KstApp;
> -  new_window->show();
> -
> -  slotUpdateStatusMsg(i18n("Ready"));
> -}
> -
>  void KstApp::slotFileNew() {
>    slotUpdateStatusMsg(i18n("Creating new document..."));
> @@ -1032,4 +1018,10 @@ void KstApp::slotCopy() {
>  }
>
> +
> +void KstApp::slotFileNewWindow() {
> +  addWindow(new KstViewWindow);
> +}
> +
> +
>  #include "kst.moc"
>  // vim: ts=2 sw=2 et
>
> --- kdeextragear-2/kst/kst/kstui.rc  #1.21:1.22
> @@ -3,4 +3,5 @@
>  <MenuBar>
>    <Menu name="file"><text>&amp;File</text>
> +    <Action name="file_new_window"/>
>      <Action name="tmp_file_new"/>
>      <Action name="graphfiledialog_action"/>
>
>
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst



More information about the Kst mailing list