XenevaOS
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
main.cpp File Reference
#include <stdint.h>
#include <_xeneva.h>
#include <stdio.h>
#include <sys\_keproc.h>
#include <sys\_kefile.h>
#include <sys\iocodes.h>
#include <chitralekha.h>
#include <widgets\base.h>
#include <widgets\button.h>
#include <widgets\scrollpane.h>
#include <widgets\slider.h>
#include <widgets\progress.h>
#include <keycode.h>
#include <widgets\window.h>
#include <widgets\msgbox.h>
#include <widgets\view.h>
#include <string.h>
#include <widgets\menubar.h>
#include <stdlib.h>
#include <time.h>
#include <widgets\menu.h>
#include "partition.h"
Include dependency graph for main.cpp:

Classes

struct  _address_bar_
 

Typedefs

typedef struct _address_bar_ FileAddressBar
 

Functions

void DirListItemAction (ChListView *lv, ChListItem *li)
 
void DocumentItemActionHandler (ChListView *lv, ChListItem *li)
 
void ExtensionManagerSpawn (ChListItem *li)
 
void PathNavigateBack ()
 
void PathEnterForward ()
 
void FileAddressBarMouseEvent (ChWidget *wid, ChWindow *win, int x, int y, int button)
 
void FileAddressBarPaintHandler (ChWidget *wid, ChWindow *win)
 
void FileAddressBarRepaint (FileAddressBar *bar)
 
void FileAddressBarDestroy (ChWidget *wid, ChWindow *win)
 
FileAddressBarFileCreateAddressBar (int x, int y, int w, int h)
 
void FileHandleKeyEvent (char c)
 
void WindowHandleMessage (PostEvent *e)
 
bool VerifyDocExtension (char *filename, char *extension)
 
void PrintParentDir (char *pathname)
 
void RefreshFileView (int dirfd, ChListView *lview)
 
void BackButtonClicked (ChWidget *wid, ChWindow *win)
 
void AboutClicked (ChWidget *wid, ChWindow *win)
 
void ExitItemClicked (ChWidget *wid, ChWindow *win)
 
void M2_2Clicked (ChWidget *wid, ChWindow *win)
 
void EnterClicked (ChWidget *wid, ChWindow *win)
 
char * FileManagerGetCurrentPath ()
 
int main (int argc, char *argv[])
 

Variables

ChitralekhaAppapp
 
ChWindowmainWin
 
ChWindowwin2
 
jmp_buf jmp
 
ChPopupMenupm
 
ChListViewlv
 
ChIcondirico
 
ChIcondocico
 
char * path
 
char * history
 
FileAddressBaraddressbar
 

Typedef Documentation

◆ FileAddressBar

typedef struct _address_bar_ FileAddressBar

Function Documentation

◆ AboutClicked()

void AboutClicked ( ChWidget wid,
ChWindow win 
)

◆ BackButtonClicked()

void BackButtonClicked ( ChWidget wid,
ChWindow win 
)

◆ DirListItemAction()

void DirListItemAction ( ChListView lv,
ChListItem li 
)

◆ DocumentItemActionHandler()

void DocumentItemActionHandler ( ChListView lv,
ChListItem li 
)

◆ EnterClicked()

void EnterClicked ( ChWidget wid,
ChWindow win 
)

◆ ExitItemClicked()

void ExitItemClicked ( ChWidget wid,
ChWindow win 
)

◆ ExtensionManagerSpawn()

void ExtensionManagerSpawn ( ChListItem li)
extern

◆ FileAddressBarDestroy()

void FileAddressBarDestroy ( ChWidget wid,
ChWindow win 
)

◆ FileAddressBarMouseEvent()

void FileAddressBarMouseEvent ( ChWidget wid,
ChWindow win,
int  x,
int  y,
int  button 
)

◆ FileAddressBarPaintHandler()

void FileAddressBarPaintHandler ( ChWidget wid,
ChWindow win 
)

◆ FileAddressBarRepaint()

void FileAddressBarRepaint ( FileAddressBar bar)

◆ FileCreateAddressBar()

FileAddressBar * FileCreateAddressBar ( int  x,
int  y,
int  w,
int  h 
)

◆ FileHandleKeyEvent()

void FileHandleKeyEvent ( char  c)

◆ FileManagerGetCurrentPath()

char * FileManagerGetCurrentPath ( )

◆ M2_2Clicked()

void M2_2Clicked ( ChWidget wid,
ChWindow win 
)

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ PathEnterForward()

void PathEnterForward ( )

◆ PathNavigateBack()

void PathNavigateBack ( )

◆ PrintParentDir()

void PrintParentDir ( char *  pathname)

◆ RefreshFileView()

void RefreshFileView ( int  dirfd,
ChListView lview 
)

◆ VerifyDocExtension()

bool VerifyDocExtension ( char *  filename,
char *  extension 
)

BSD 2-Clause License

Copyright (c) 2024, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ WindowHandleMessage()

void WindowHandleMessage ( PostEvent e)

Variable Documentation

◆ addressbar

FileAddressBar* addressbar

◆ app

BSD 2-Clause License

Copyright (c) 2024, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ dirico

ChIcon* dirico

◆ docico

ChIcon* docico

◆ history

char* history

◆ jmp

jmp_buf jmp

◆ lv

◆ mainWin

ChWindow* mainWin

◆ path

char* path

◆ pm

◆ win2

ChWindow* win2